0s autopkgtest [18:58:48]: starting date and time: 2025-09-04 18:58:48+0000 0s autopkgtest [18:58:48]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [18:58:48]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.u24p_pt5/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:build-essential --apt-upgrade glib2.0 --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=build-essential/12.12ubuntu2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-s390x-2.secgroup --name adt-questing-s390x-glib2.0-20250904-172803-juju-7f2275-prod-proposed-migration-environment-20-41c6da5a-6f73-4977-a243-a489171730c5 --image adt/ubuntu-questing-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-proposed-migration-s390x -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-questing-s390x-glib2.0-20250904-172803-juju-7f2275-prod-proposed-migration-environment-20-41c6da5a-6f73-4977-a243-a489171730c5 from image adt/ubuntu-questing-s390x-server-20250904.img (UUID 7ac7c447-3049-4f71-b62b-46468f662d6e)... 55s autopkgtest [18:59:43]: testbed dpkg architecture: s390x 55s autopkgtest [18:59:43]: testbed apt version: 3.1.5ubuntu1 55s autopkgtest [18:59:43]: @@@@@@@@@@@@@@@@@@@@ test bed setup 56s autopkgtest [18:59:44]: testbed release detected to be: None 56s autopkgtest [18:59:44]: updating testbed package index (apt update) 57s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [265 kB] 57s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 57s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 57s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 57s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [234 kB] 57s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/restricted Sources [3848 B] 57s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [59.4 kB] 57s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [14.1 kB] 57s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/main s390x Packages [95.4 kB] 57s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main s390x c-n-f Metadata [3688 B] 58s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/restricted s390x Packages [728 B] 58s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/restricted s390x c-n-f Metadata [120 B] 58s Get:13 http://ftpmaster.internal/ubuntu questing-proposed/universe s390x Packages [213 kB] 58s Get:14 http://ftpmaster.internal/ubuntu questing-proposed/universe s390x c-n-f Metadata [6332 B] 58s Get:15 http://ftpmaster.internal/ubuntu questing-proposed/multiverse s390x Packages [4208 B] 58s Get:16 http://ftpmaster.internal/ubuntu questing-proposed/multiverse s390x c-n-f Metadata [300 B] 58s Fetched 900 kB in 1s (742 kB/s) 59s Reading package lists... 60s autopkgtest [18:59:48]: upgrading testbed (apt dist-upgrade and autopurge) 60s Reading package lists... 60s Building dependency tree... 60s Reading state information... 60s Calculating upgrade... 60s The following packages will be upgraded: 60s bpftrace cron cron-daemon-common cryptsetup-bin dash libbrotli1 60s libcryptsetup12 60s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 60s Need to get 3001 kB of archives. 60s After this operation, 4096 B of additional disk space will be used. 60s Get:1 http://ftpmaster.internal/ubuntu questing/main s390x dash s390x 0.5.12-12ubuntu2 [100 kB] 60s Get:2 http://ftpmaster.internal/ubuntu questing/main s390x cron s390x 3.0pl1-196ubuntu2 [89.5 kB] 60s Get:3 http://ftpmaster.internal/ubuntu questing/main s390x libcryptsetup12 s390x 2:2.8.0-1ubuntu2 [273 kB] 61s Get:4 http://ftpmaster.internal/ubuntu questing/main s390x cron-daemon-common all 3.0pl1-196ubuntu2 [15.3 kB] 61s Get:5 http://ftpmaster.internal/ubuntu questing/main s390x bpftrace s390x 0.23.5-1ubuntu1 [1917 kB] 62s Get:6 http://ftpmaster.internal/ubuntu questing/main s390x cryptsetup-bin s390x 2:2.8.0-1ubuntu2 [227 kB] 62s Get:7 http://ftpmaster.internal/ubuntu questing/main s390x libbrotli1 s390x 1.1.0-2build5 [379 kB] 62s Preconfiguring packages ... 62s Fetched 3001 kB in 2s (1432 kB/s) 62s (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 ... 85685 files and directories currently installed.) 62s Preparing to unpack .../dash_0.5.12-12ubuntu2_s390x.deb ... 62s Unpacking dash (0.5.12-12ubuntu2) over (0.5.12-12ubuntu1) ... 62s Setting up dash (0.5.12-12ubuntu2) ... 62s (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 ... 85685 files and directories currently installed.) 62s Preparing to unpack .../0-cron_3.0pl1-196ubuntu2_s390x.deb ... 62s Unpacking cron (3.0pl1-196ubuntu2) over (3.0pl1-196ubuntu1) ... 62s Preparing to unpack .../1-libcryptsetup12_2%3a2.8.0-1ubuntu2_s390x.deb ... 62s Unpacking libcryptsetup12:s390x (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 63s Preparing to unpack .../2-cron-daemon-common_3.0pl1-196ubuntu2_all.deb ... 63s Unpacking cron-daemon-common (3.0pl1-196ubuntu2) over (3.0pl1-196ubuntu1) ... 63s Preparing to unpack .../3-bpftrace_0.23.5-1ubuntu1_s390x.deb ... 63s Unpacking bpftrace (0.23.5-1ubuntu1) over (0.23.2-1ubuntu2) ... 63s Preparing to unpack .../4-cryptsetup-bin_2%3a2.8.0-1ubuntu2_s390x.deb ... 63s Unpacking cryptsetup-bin (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 63s Preparing to unpack .../5-libbrotli1_1.1.0-2build5_s390x.deb ... 63s Unpacking libbrotli1:s390x (1.1.0-2build5) over (1.1.0-2build4) ... 63s Setting up bpftrace (0.23.5-1ubuntu1) ... 63s Setting up libbrotli1:s390x (1.1.0-2build5) ... 63s Setting up libcryptsetup12:s390x (2:2.8.0-1ubuntu2) ... 63s Setting up cron-daemon-common (3.0pl1-196ubuntu2) ... 63s Setting up cryptsetup-bin (2:2.8.0-1ubuntu2) ... 63s Setting up cron (3.0pl1-196ubuntu2) ... 63s Processing triggers for debianutils (5.23.2) ... 63s Processing triggers for libc-bin (2.42-0ubuntu1) ... 63s Processing triggers for man-db (2.13.1-1) ... 64s Reading package lists... 64s Building dependency tree... 64s Reading state information... 64s Solving dependencies... 64s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 65s autopkgtest [18:59:53]: rebooting testbed after setup commands that affected boot 85s autopkgtest [19:00:13]: testbed running kernel: Linux 6.16.0-16-generic #16-Ubuntu SMP Sun Aug 17 07:14:38 UTC 2025 87s autopkgtest [19:00:15]: @@@@@@@@@@@@@@@@@@@@ apt-source glib2.0 101s Get:1 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.85.3-1 (dsc) [4963 B] 101s Get:2 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.85.3-1 (tar) [661 kB] 101s Get:3 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.85.3-1 (tar) [5664 kB] 101s Get:4 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.85.3-1 (diff) [139 kB] 101s gpgv: Signature made Mon Aug 18 20:48:00 2025 UTC 101s gpgv: using RSA key 7A073AD1AE694FA25BFF62E5235C099D3EB33076 101s gpgv: Can't check signature: No public key 101s dpkg-source: warning: cannot verify inline signature for ./glib2.0_2.85.3-1.dsc: no acceptable signature found 102s autopkgtest [19:00:30]: testing package glib2.0 version 2.85.3-1 106s autopkgtest [19:00:34]: build not needed 127s autopkgtest [19:00:55]: test build: preparing testbed 128s Reading package lists... 128s Building dependency tree... 128s Reading state information... 128s Solving dependencies... 128s The following packages will be REMOVED: 128s coreutils-from-gnu 128s The following NEW packages will be installed: 128s build-essential coreutils-from-uutils cpp cpp-15 cpp-15-s390x-linux-gnu 128s cpp-s390x-linux-gnu g++ g++-15 g++-15-s390x-linux-gnu g++-s390x-linux-gnu 128s gcc gcc-15 gcc-15-s390x-linux-gnu gcc-s390x-linux-gnu libasan8 libblkid-dev 128s libcc1-0 libffi-dev libgcc-15-dev libgio-2.0-dev libgomp1 libisl23 libitm1 128s libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 128s libpcre2-posix3 libpkgconf3 libselinux1-dev libsepol-dev libstdc++-15-dev 128s libsysprof-capture-4-dev libubsan1 pkgconf pkgconf-bin rust-coreutils 128s uuid-dev zlib1g-dev 128s 0 upgraded, 40 newly installed, 1 to remove and 0 not upgraded. 128s Need to get 247 MB of archives. 128s After this operation, 912 MB of additional disk space will be used. 128s Get:1 http://ftpmaster.internal/ubuntu questing/main s390x rust-coreutils s390x 0.1.0+git20250813.4af2a84-0ubuntu2 [3182 kB] 132s Get:2 http://ftpmaster.internal/ubuntu questing/universe s390x coreutils-from-uutils all 0.0.0~ubuntu20 [6490 B] 132s Get:3 http://ftpmaster.internal/ubuntu questing/main s390x libisl23 s390x 0.27-1 [704 kB] 132s Get:4 http://ftpmaster.internal/ubuntu questing/main s390x libmpc3 s390x 1.3.1-1build3 [57.6 kB] 132s Get:5 http://ftpmaster.internal/ubuntu questing/main s390x cpp-15-s390x-linux-gnu s390x 15.2.0-2ubuntu1 [71.8 MB] 194s Get:6 http://ftpmaster.internal/ubuntu questing/main s390x cpp-15 s390x 15.2.0-2ubuntu1 [1026 B] 194s Get:7 http://ftpmaster.internal/ubuntu questing/main s390x cpp-s390x-linux-gnu s390x 4:15.1.0-1ubuntu1 [5582 B] 194s Get:8 http://ftpmaster.internal/ubuntu questing/main s390x cpp s390x 4:15.1.0-1ubuntu1 [22.4 kB] 194s Get:9 http://ftpmaster.internal/ubuntu questing/main s390x libcc1-0 s390x 15.2.0-2ubuntu1 [49.9 kB] 194s Get:10 http://ftpmaster.internal/ubuntu questing/main s390x libgomp1 s390x 15.2.0-2ubuntu1 [154 kB] 194s Get:11 http://ftpmaster.internal/ubuntu questing/main s390x libitm1 s390x 15.2.0-2ubuntu1 [31.1 kB] 194s Get:12 http://ftpmaster.internal/ubuntu questing/main s390x libasan8 s390x 15.2.0-2ubuntu1 [2971 kB] 197s Get:13 http://ftpmaster.internal/ubuntu questing/main s390x libubsan1 s390x 15.2.0-2ubuntu1 [1211 kB] 198s Get:14 http://ftpmaster.internal/ubuntu questing/main s390x libgcc-15-dev s390x 15.2.0-2ubuntu1 [1046 kB] 199s Get:15 http://ftpmaster.internal/ubuntu questing/main s390x gcc-15-s390x-linux-gnu s390x 15.2.0-2ubuntu1 [79.3 MB] 259s Get:16 http://ftpmaster.internal/ubuntu questing/main s390x gcc-15 s390x 15.2.0-2ubuntu1 [509 kB] 259s Get:17 http://ftpmaster.internal/ubuntu questing/main s390x gcc-s390x-linux-gnu s390x 4:15.1.0-1ubuntu1 [1210 B] 259s Get:18 http://ftpmaster.internal/ubuntu questing/main s390x gcc s390x 4:15.1.0-1ubuntu1 [5012 B] 259s Get:19 http://ftpmaster.internal/ubuntu questing/main s390x libstdc++-15-dev s390x 15.2.0-2ubuntu1 [2634 kB] 259s Get:20 http://ftpmaster.internal/ubuntu questing/main s390x g++-15-s390x-linux-gnu s390x 15.2.0-2ubuntu1 [77.6 MB] 317s Get:21 http://ftpmaster.internal/ubuntu questing/main s390x g++-15 s390x 15.2.0-2ubuntu1 [23.1 kB] 317s Get:22 http://ftpmaster.internal/ubuntu questing/main s390x g++-s390x-linux-gnu s390x 4:15.1.0-1ubuntu1 [960 B] 317s Get:23 http://ftpmaster.internal/ubuntu questing/main s390x g++ s390x 4:15.1.0-1ubuntu1 [1084 B] 317s Get:24 http://ftpmaster.internal/ubuntu questing-proposed/main s390x build-essential s390x 12.12ubuntu2 [5258 B] 317s Get:25 http://ftpmaster.internal/ubuntu questing/main s390x libffi-dev s390x 3.5.2-1 [60.4 kB] 317s Get:26 http://ftpmaster.internal/ubuntu questing/main s390x uuid-dev s390x 2.41-4ubuntu3 [55.6 kB] 317s Get:27 http://ftpmaster.internal/ubuntu questing/main s390x libblkid-dev s390x 2.41-4ubuntu3 [237 kB] 317s Get:28 http://ftpmaster.internal/ubuntu questing/main s390x libsepol-dev s390x 3.8.1-1 [415 kB] 317s Get:29 http://ftpmaster.internal/ubuntu questing/main s390x libpcre2-16-0 s390x 10.46-1 [260 kB] 318s Get:30 http://ftpmaster.internal/ubuntu questing/main s390x libpcre2-32-0 s390x 10.46-1 [245 kB] 318s Get:31 http://ftpmaster.internal/ubuntu questing/main s390x libpcre2-posix3 s390x 10.46-1 [7226 B] 318s Get:32 http://ftpmaster.internal/ubuntu questing/main s390x libpcre2-dev s390x 10.46-1 [900 kB] 319s Get:33 http://ftpmaster.internal/ubuntu questing/main s390x libselinux1-dev s390x 3.8.1-1 [178 kB] 319s Get:34 http://ftpmaster.internal/ubuntu questing/main s390x libmount-dev s390x 2.41-4ubuntu3 [36.2 kB] 319s Get:35 http://ftpmaster.internal/ubuntu questing/main s390x libsysprof-capture-4-dev s390x 48.0-2 [52.0 kB] 319s Get:36 http://ftpmaster.internal/ubuntu questing/main s390x libpkgconf3 s390x 1.8.1-4 [31.2 kB] 319s Get:37 http://ftpmaster.internal/ubuntu questing/main s390x pkgconf-bin s390x 1.8.1-4 [21.5 kB] 319s Get:38 http://ftpmaster.internal/ubuntu questing/main s390x pkgconf s390x 1.8.1-4 [16.7 kB] 319s Get:39 http://ftpmaster.internal/ubuntu questing/main s390x zlib1g-dev s390x 1:1.3.dfsg+really1.3.1-1ubuntu1 [898 kB] 319s Get:40 http://ftpmaster.internal/ubuntu questing/main s390x libgio-2.0-dev s390x 2.85.3-1 [1830 kB] 321s Fetched 247 MB in 3min 13s (1279 kB/s) 321s Selecting previously unselected package rust-coreutils. 321s (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 ... 85685 files and directories currently installed.) 321s Preparing to unpack .../rust-coreutils_0.1.0+git20250813.4af2a84-0ubuntu2_s390x.deb ... 321s Unpacking rust-coreutils (0.1.0+git20250813.4af2a84-0ubuntu2) ... 321s Setting up rust-coreutils (0.1.0+git20250813.4af2a84-0ubuntu2) ... 321s dpkg: coreutils-from-gnu: dependency problems, but removing anyway as you requested: 321s coreutils depends on coreutils-from-gnu | coreutils-from-uutils; however: 321s Package coreutils-from-gnu is to be removed. 321s Package coreutils-from-uutils is not installed. 321s 321s (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 ... 86418 files and directories currently installed.) 321s Removing coreutils-from-gnu (0.0.0~ubuntu20) ... 321s Adding 'diversion of /usr/bin/[ to /usr/bin/[.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/arch to /usr/bin/arch.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/b2sum to /usr/bin/b2sum.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/base32 to /usr/bin/base32.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/base64 to /usr/bin/base64.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/basename to /usr/bin/basename.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/basenc to /usr/bin/basenc.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/cat to /usr/bin/cat.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/chcon to /usr/bin/chcon.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/chgrp to /usr/bin/chgrp.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/chmod to /usr/bin/chmod.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/chown to /usr/bin/chown.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/cksum to /usr/bin/cksum.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/comm to /usr/bin/comm.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/cp to /usr/bin/cp.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/csplit to /usr/bin/csplit.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/cut to /usr/bin/cut.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/date to /usr/bin/date.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/dd to /usr/bin/dd.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/df to /usr/bin/df.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/dir to /usr/bin/dir.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/dircolors to /usr/bin/dircolors.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/dirname to /usr/bin/dirname.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/du to /usr/bin/du.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/echo to /usr/bin/echo.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/env to /usr/bin/env.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/expand to /usr/bin/expand.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/expr to /usr/bin/expr.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/factor to /usr/bin/factor.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/false to /usr/bin/false.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/fmt to /usr/bin/fmt.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/fold to /usr/bin/fold.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/groups to /usr/bin/groups.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/head to /usr/bin/head.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/hostid to /usr/bin/hostid.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/id to /usr/bin/id.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/install to /usr/bin/install.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/join to /usr/bin/join.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/link to /usr/bin/link.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/ln to /usr/bin/ln.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/logname to /usr/bin/logname.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/ls to /usr/bin/ls.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/md5sum to /usr/bin/md5sum.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/mkdir to /usr/bin/mkdir.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/mkfifo to /usr/bin/mkfifo.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/mknod to /usr/bin/mknod.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/mktemp to /usr/bin/mktemp.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/mv to /usr/bin/mv.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/nice to /usr/bin/nice.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/nl to /usr/bin/nl.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/nohup to /usr/bin/nohup.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/nproc to /usr/bin/nproc.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/numfmt to /usr/bin/numfmt.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/od to /usr/bin/od.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/paste to /usr/bin/paste.remove-bak by coreutils-switch' 321s Adding 'diversion of /usr/bin/pathchk to /usr/bin/pathchk.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/pinky to /usr/bin/pinky.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/pr to /usr/bin/pr.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/printenv to /usr/bin/printenv.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/printf to /usr/bin/printf.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/ptx to /usr/bin/ptx.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/pwd to /usr/bin/pwd.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/readlink to /usr/bin/readlink.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/realpath to /usr/bin/realpath.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/rm to /usr/bin/rm.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/rmdir to /usr/bin/rmdir.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/runcon to /usr/bin/runcon.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/seq to /usr/bin/seq.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/sha1sum to /usr/bin/sha1sum.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/sha224sum to /usr/bin/sha224sum.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/sha256sum to /usr/bin/sha256sum.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/sha384sum to /usr/bin/sha384sum.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/sha512sum to /usr/bin/sha512sum.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/shred to /usr/bin/shred.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/shuf to /usr/bin/shuf.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/sleep to /usr/bin/sleep.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/sort to /usr/bin/sort.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/split to /usr/bin/split.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/stat to /usr/bin/stat.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/stdbuf to /usr/bin/stdbuf.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/stty to /usr/bin/stty.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/sum to /usr/bin/sum.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/sync to /usr/bin/sync.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/tac to /usr/bin/tac.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/tail to /usr/bin/tail.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/tee to /usr/bin/tee.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/test to /usr/bin/test.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/timeout to /usr/bin/timeout.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/touch to /usr/bin/touch.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/tr to /usr/bin/tr.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/true to /usr/bin/true.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/truncate to /usr/bin/truncate.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/tsort to /usr/bin/tsort.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/tty to /usr/bin/tty.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/uname to /usr/bin/uname.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/unexpand to /usr/bin/unexpand.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/uniq to /usr/bin/uniq.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/unlink to /usr/bin/unlink.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/users to /usr/bin/users.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/vdir to /usr/bin/vdir.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/wc to /usr/bin/wc.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/who to /usr/bin/who.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/whoami to /usr/bin/whoami.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/bin/yes to /usr/bin/yes.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/sbin/chroot to /usr/sbin/chroot.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/arch.1.gz to /usr/share/man/man1/arch.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/b2sum.1.gz to /usr/share/man/man1/b2sum.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/base32.1.gz to /usr/share/man/man1/base32.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/base64.1.gz to /usr/share/man/man1/base64.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/basename.1.gz to /usr/share/man/man1/basename.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/basenc.1.gz to /usr/share/man/man1/basenc.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/cat.1.gz to /usr/share/man/man1/cat.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/chcon.1.gz to /usr/share/man/man1/chcon.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/chgrp.1.gz to /usr/share/man/man1/chgrp.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/chmod.1.gz to /usr/share/man/man1/chmod.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/chown.1.gz to /usr/share/man/man1/chown.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/cksum.1.gz to /usr/share/man/man1/cksum.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/comm.1.gz to /usr/share/man/man1/comm.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/cp.1.gz to /usr/share/man/man1/cp.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/csplit.1.gz to /usr/share/man/man1/csplit.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/cut.1.gz to /usr/share/man/man1/cut.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/date.1.gz to /usr/share/man/man1/date.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/dd.1.gz to /usr/share/man/man1/dd.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/df.1.gz to /usr/share/man/man1/df.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/dir.1.gz to /usr/share/man/man1/dir.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/dircolors.1.gz to /usr/share/man/man1/dircolors.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/dirname.1.gz to /usr/share/man/man1/dirname.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/du.1.gz to /usr/share/man/man1/du.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/echo.1.gz to /usr/share/man/man1/echo.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/env.1.gz to /usr/share/man/man1/env.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/expand.1.gz to /usr/share/man/man1/expand.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/expr.1.gz to /usr/share/man/man1/expr.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/factor.1.gz to /usr/share/man/man1/factor.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/false.1.gz to /usr/share/man/man1/false.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/fmt.1.gz to /usr/share/man/man1/fmt.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/fold.1.gz to /usr/share/man/man1/fold.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/groups.1.gz to /usr/share/man/man1/groups.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/head.1.gz to /usr/share/man/man1/head.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/hostid.1.gz to /usr/share/man/man1/hostid.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/id.1.gz to /usr/share/man/man1/id.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/install.1.gz to /usr/share/man/man1/install.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/join.1.gz to /usr/share/man/man1/join.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/link.1.gz to /usr/share/man/man1/link.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/ln.1.gz to /usr/share/man/man1/ln.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/logname.1.gz to /usr/share/man/man1/logname.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/ls.1.gz to /usr/share/man/man1/ls.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/md5sum.1.gz to /usr/share/man/man1/md5sum.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/mkdir.1.gz to /usr/share/man/man1/mkdir.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/mkfifo.1.gz to /usr/share/man/man1/mkfifo.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/mknod.1.gz to /usr/share/man/man1/mknod.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/mktemp.1.gz to /usr/share/man/man1/mktemp.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/mv.1.gz to /usr/share/man/man1/mv.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/nice.1.gz to /usr/share/man/man1/nice.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/nl.1.gz to /usr/share/man/man1/nl.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/nohup.1.gz to /usr/share/man/man1/nohup.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/nproc.1.gz to /usr/share/man/man1/nproc.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/numfmt.1.gz to /usr/share/man/man1/numfmt.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/od.1.gz to /usr/share/man/man1/od.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/paste.1.gz to /usr/share/man/man1/paste.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/pathchk.1.gz to /usr/share/man/man1/pathchk.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/pinky.1.gz to /usr/share/man/man1/pinky.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/pr.1.gz to /usr/share/man/man1/pr.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/printenv.1.gz to /usr/share/man/man1/printenv.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/printf.1.gz to /usr/share/man/man1/printf.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/ptx.1.gz to /usr/share/man/man1/ptx.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/pwd.1.gz to /usr/share/man/man1/pwd.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/readlink.1.gz to /usr/share/man/man1/readlink.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/realpath.1.gz to /usr/share/man/man1/realpath.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/rm.1.gz to /usr/share/man/man1/rm.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/rmdir.1.gz to /usr/share/man/man1/rmdir.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/runcon.1.gz to /usr/share/man/man1/runcon.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/seq.1.gz to /usr/share/man/man1/seq.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/sha1sum.1.gz to /usr/share/man/man1/sha1sum.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/sha224sum.1.gz to /usr/share/man/man1/sha224sum.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/sha256sum.1.gz to /usr/share/man/man1/sha256sum.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/sha384sum.1.gz to /usr/share/man/man1/sha384sum.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/sha512sum.1.gz to /usr/share/man/man1/sha512sum.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/shred.1.gz to /usr/share/man/man1/shred.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/shuf.1.gz to /usr/share/man/man1/shuf.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/sleep.1.gz to /usr/share/man/man1/sleep.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/sort.1.gz to /usr/share/man/man1/sort.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/split.1.gz to /usr/share/man/man1/split.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/stat.1.gz to /usr/share/man/man1/stat.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/stdbuf.1.gz to /usr/share/man/man1/stdbuf.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/stty.1.gz to /usr/share/man/man1/stty.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/sum.1.gz to /usr/share/man/man1/sum.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/sync.1.gz to /usr/share/man/man1/sync.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/tac.1.gz to /usr/share/man/man1/tac.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/tail.1.gz to /usr/share/man/man1/tail.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/tee.1.gz to /usr/share/man/man1/tee.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/test.1.gz to /usr/share/man/man1/test.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/timeout.1.gz to /usr/share/man/man1/timeout.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/touch.1.gz to /usr/share/man/man1/touch.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/tr.1.gz to /usr/share/man/man1/tr.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/true.1.gz to /usr/share/man/man1/true.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/truncate.1.gz to /usr/share/man/man1/truncate.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/tsort.1.gz to /usr/share/man/man1/tsort.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/tty.1.gz to /usr/share/man/man1/tty.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/uname.1.gz to /usr/share/man/man1/uname.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/unexpand.1.gz to /usr/share/man/man1/unexpand.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/uniq.1.gz to /usr/share/man/man1/uniq.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/unlink.1.gz to /usr/share/man/man1/unlink.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/users.1.gz to /usr/share/man/man1/users.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/vdir.1.gz to /usr/share/man/man1/vdir.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/wc.1.gz to /usr/share/man/man1/wc.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/who.1.gz to /usr/share/man/man1/who.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/whoami.1.gz to /usr/share/man/man1/whoami.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/yes.1.gz to /usr/share/man/man1/yes.1.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man8/chroot.8.gz to /usr/share/man/man8/chroot.8.gz.remove-bak by coreutils-switch' 322s Adding 'diversion of /usr/share/man/man1/[.1.gz to /usr/share/man/man1/[.1.gz.remove-bak by coreutils-switch' 322s Selecting previously unselected package coreutils-from-uutils. 322s (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 ... 86627 files and directories currently installed.) 322s Preparing to unpack .../coreutils-from-uutils_0.0.0~ubuntu20_all.deb ... 322s Removing 'diversion of /usr/bin/[ to /usr/bin/[.remove-bak by coreutils-switch' 322s Removing 'diversion of /usr/bin/arch to /usr/bin/arch.remove-bak by coreutils-switch' 322s Removing 'diversion of /usr/bin/b2sum to /usr/bin/b2sum.remove-bak by coreutils-switch' 322s No diversion 'diversion of /usr/bin/b3sum to /usr/bin/b3sum.remove-bak by coreutils-switch', none removed. 322s Removing 'diversion of /usr/bin/base32 to /usr/bin/base32.remove-bak by coreutils-switch' 322s Removing 'diversion of /usr/bin/base64 to /usr/bin/base64.remove-bak by coreutils-switch' 322s Removing 'diversion of /usr/bin/basename to /usr/bin/basename.remove-bak by coreutils-switch' 322s Removing 'diversion of /usr/bin/basenc to /usr/bin/basenc.remove-bak by coreutils-switch' 322s Removing 'diversion of /usr/bin/cat to /usr/bin/cat.remove-bak by coreutils-switch' 322s Removing 'diversion of /usr/bin/chcon to /usr/bin/chcon.remove-bak by coreutils-switch' 322s Removing 'diversion of /usr/bin/chgrp to /usr/bin/chgrp.remove-bak by coreutils-switch' 322s Removing 'diversion of /usr/bin/chmod to /usr/bin/chmod.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/chown to /usr/bin/chown.remove-bak by coreutils-switch' 323s No diversion 'diversion of /usr/bin/chroot to /usr/bin/chroot.remove-bak by coreutils-switch', none removed. 323s Removing 'diversion of /usr/bin/cksum to /usr/bin/cksum.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/comm to /usr/bin/comm.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/cp to /usr/bin/cp.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/csplit to /usr/bin/csplit.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/cut to /usr/bin/cut.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/date to /usr/bin/date.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/dd to /usr/bin/dd.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/df to /usr/bin/df.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/dir to /usr/bin/dir.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/dircolors to /usr/bin/dircolors.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/dirname to /usr/bin/dirname.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/du to /usr/bin/du.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/echo to /usr/bin/echo.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/env to /usr/bin/env.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/expand to /usr/bin/expand.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/expr to /usr/bin/expr.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/factor to /usr/bin/factor.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/false to /usr/bin/false.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/fmt to /usr/bin/fmt.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/fold to /usr/bin/fold.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/groups to /usr/bin/groups.remove-bak by coreutils-switch' 323s No diversion 'diversion of /usr/bin/hashsum to /usr/bin/hashsum.remove-bak by coreutils-switch', none removed. 323s Removing 'diversion of /usr/bin/head to /usr/bin/head.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/hostid to /usr/bin/hostid.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/id to /usr/bin/id.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/install to /usr/bin/install.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/join to /usr/bin/join.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/link to /usr/bin/link.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/ln to /usr/bin/ln.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/logname to /usr/bin/logname.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/ls to /usr/bin/ls.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/md5sum to /usr/bin/md5sum.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/mkdir to /usr/bin/mkdir.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/mkfifo to /usr/bin/mkfifo.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/mknod to /usr/bin/mknod.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/mktemp to /usr/bin/mktemp.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/mv to /usr/bin/mv.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/nice to /usr/bin/nice.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/nl to /usr/bin/nl.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/nohup to /usr/bin/nohup.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/nproc to /usr/bin/nproc.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/numfmt to /usr/bin/numfmt.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/od to /usr/bin/od.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/paste to /usr/bin/paste.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/pathchk to /usr/bin/pathchk.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/pinky to /usr/bin/pinky.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/pr to /usr/bin/pr.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/printenv to /usr/bin/printenv.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/printf to /usr/bin/printf.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/ptx to /usr/bin/ptx.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/pwd to /usr/bin/pwd.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/readlink to /usr/bin/readlink.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/realpath to /usr/bin/realpath.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/rm to /usr/bin/rm.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/rmdir to /usr/bin/rmdir.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/runcon to /usr/bin/runcon.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/seq to /usr/bin/seq.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/sha1sum to /usr/bin/sha1sum.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/sha224sum to /usr/bin/sha224sum.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/sha256sum to /usr/bin/sha256sum.remove-bak by coreutils-switch' 323s No diversion 'diversion of /usr/bin/sha3-224sum to /usr/bin/sha3-224sum.remove-bak by coreutils-switch', none removed. 323s No diversion 'diversion of /usr/bin/sha3-256sum to /usr/bin/sha3-256sum.remove-bak by coreutils-switch', none removed. 323s No diversion 'diversion of /usr/bin/sha3-384sum to /usr/bin/sha3-384sum.remove-bak by coreutils-switch', none removed. 323s No diversion 'diversion of /usr/bin/sha3-512sum to /usr/bin/sha3-512sum.remove-bak by coreutils-switch', none removed. 323s Removing 'diversion of /usr/bin/sha384sum to /usr/bin/sha384sum.remove-bak by coreutils-switch' 323s No diversion 'diversion of /usr/bin/sha3sum to /usr/bin/sha3sum.remove-bak by coreutils-switch', none removed. 323s Removing 'diversion of /usr/bin/sha512sum to /usr/bin/sha512sum.remove-bak by coreutils-switch' 323s No diversion 'diversion of /usr/bin/shake128sum to /usr/bin/shake128sum.remove-bak by coreutils-switch', none removed. 323s No diversion 'diversion of /usr/bin/shake256sum to /usr/bin/shake256sum.remove-bak by coreutils-switch', none removed. 323s Removing 'diversion of /usr/bin/shred to /usr/bin/shred.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/shuf to /usr/bin/shuf.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/sleep to /usr/bin/sleep.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/sort to /usr/bin/sort.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/split to /usr/bin/split.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/stat to /usr/bin/stat.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/stty to /usr/bin/stty.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/sum to /usr/bin/sum.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/sync to /usr/bin/sync.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/tac to /usr/bin/tac.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/tail to /usr/bin/tail.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/tee to /usr/bin/tee.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/test to /usr/bin/test.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/timeout to /usr/bin/timeout.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/touch to /usr/bin/touch.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/tr to /usr/bin/tr.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/true to /usr/bin/true.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/truncate to /usr/bin/truncate.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/tsort to /usr/bin/tsort.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/tty to /usr/bin/tty.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/uname to /usr/bin/uname.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/unexpand to /usr/bin/unexpand.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/uniq to /usr/bin/uniq.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/unlink to /usr/bin/unlink.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/users to /usr/bin/users.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/vdir to /usr/bin/vdir.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/wc to /usr/bin/wc.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/who to /usr/bin/who.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/whoami to /usr/bin/whoami.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/bin/yes to /usr/bin/yes.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/arch.1.gz to /usr/share/man/man1/arch.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/base32.1.gz to /usr/share/man/man1/base32.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/base64.1.gz to /usr/share/man/man1/base64.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/basename.1.gz to /usr/share/man/man1/basename.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/basenc.1.gz to /usr/share/man/man1/basenc.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/cat.1.gz to /usr/share/man/man1/cat.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/chcon.1.gz to /usr/share/man/man1/chcon.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/chgrp.1.gz to /usr/share/man/man1/chgrp.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/chmod.1.gz to /usr/share/man/man1/chmod.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/chown.1.gz to /usr/share/man/man1/chown.1.gz.remove-bak by coreutils-switch' 323s No diversion 'diversion of /usr/share/man/man1/chroot.1.gz to /usr/share/man/man1/chroot.1.gz.remove-bak by coreutils-switch', none removed. 323s Removing 'diversion of /usr/share/man/man1/cksum.1.gz to /usr/share/man/man1/cksum.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/comm.1.gz to /usr/share/man/man1/comm.1.gz.remove-bak by coreutils-switch' 323s No diversion 'diversion of /usr/share/man/man1/coreutils.1.gz to /usr/share/man/man1/coreutils.1.gz.remove-bak by coreutils-switch', none removed. 323s Removing 'diversion of /usr/share/man/man1/cp.1.gz to /usr/share/man/man1/cp.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/csplit.1.gz to /usr/share/man/man1/csplit.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/cut.1.gz to /usr/share/man/man1/cut.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/date.1.gz to /usr/share/man/man1/date.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/dd.1.gz to /usr/share/man/man1/dd.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/df.1.gz to /usr/share/man/man1/df.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/dir.1.gz to /usr/share/man/man1/dir.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/dircolors.1.gz to /usr/share/man/man1/dircolors.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/dirname.1.gz to /usr/share/man/man1/dirname.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/du.1.gz to /usr/share/man/man1/du.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/echo.1.gz to /usr/share/man/man1/echo.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/env.1.gz to /usr/share/man/man1/env.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/expand.1.gz to /usr/share/man/man1/expand.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/expr.1.gz to /usr/share/man/man1/expr.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/factor.1.gz to /usr/share/man/man1/factor.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/false.1.gz to /usr/share/man/man1/false.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/fmt.1.gz to /usr/share/man/man1/fmt.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/fold.1.gz to /usr/share/man/man1/fold.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/groups.1.gz to /usr/share/man/man1/groups.1.gz.remove-bak by coreutils-switch' 323s No diversion 'diversion of /usr/share/man/man1/hashsum.1.gz to /usr/share/man/man1/hashsum.1.gz.remove-bak by coreutils-switch', none removed. 323s Removing 'diversion of /usr/share/man/man1/head.1.gz to /usr/share/man/man1/head.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/hostid.1.gz to /usr/share/man/man1/hostid.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/id.1.gz to /usr/share/man/man1/id.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/install.1.gz to /usr/share/man/man1/install.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/join.1.gz to /usr/share/man/man1/join.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/link.1.gz to /usr/share/man/man1/link.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/ln.1.gz to /usr/share/man/man1/ln.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/logname.1.gz to /usr/share/man/man1/logname.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/ls.1.gz to /usr/share/man/man1/ls.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/mkdir.1.gz to /usr/share/man/man1/mkdir.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/mkfifo.1.gz to /usr/share/man/man1/mkfifo.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/mknod.1.gz to /usr/share/man/man1/mknod.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/mktemp.1.gz to /usr/share/man/man1/mktemp.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/mv.1.gz to /usr/share/man/man1/mv.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/nice.1.gz to /usr/share/man/man1/nice.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/nl.1.gz to /usr/share/man/man1/nl.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/nohup.1.gz to /usr/share/man/man1/nohup.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/nproc.1.gz to /usr/share/man/man1/nproc.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/numfmt.1.gz to /usr/share/man/man1/numfmt.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/od.1.gz to /usr/share/man/man1/od.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/paste.1.gz to /usr/share/man/man1/paste.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/pathchk.1.gz to /usr/share/man/man1/pathchk.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/pinky.1.gz to /usr/share/man/man1/pinky.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/pr.1.gz to /usr/share/man/man1/pr.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/printenv.1.gz to /usr/share/man/man1/printenv.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/printf.1.gz to /usr/share/man/man1/printf.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/ptx.1.gz to /usr/share/man/man1/ptx.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/pwd.1.gz to /usr/share/man/man1/pwd.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/readlink.1.gz to /usr/share/man/man1/readlink.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/realpath.1.gz to /usr/share/man/man1/realpath.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/rm.1.gz to /usr/share/man/man1/rm.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/rmdir.1.gz to /usr/share/man/man1/rmdir.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/runcon.1.gz to /usr/share/man/man1/runcon.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/seq.1.gz to /usr/share/man/man1/seq.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/shred.1.gz to /usr/share/man/man1/shred.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/shuf.1.gz to /usr/share/man/man1/shuf.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/sleep.1.gz to /usr/share/man/man1/sleep.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/sort.1.gz to /usr/share/man/man1/sort.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/split.1.gz to /usr/share/man/man1/split.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/stat.1.gz to /usr/share/man/man1/stat.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/stty.1.gz to /usr/share/man/man1/stty.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/sum.1.gz to /usr/share/man/man1/sum.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/sync.1.gz to /usr/share/man/man1/sync.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/tac.1.gz to /usr/share/man/man1/tac.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/tail.1.gz to /usr/share/man/man1/tail.1.gz.remove-bak by coreutils-switch' 323s Removing 'diversion of /usr/share/man/man1/tee.1.gz to /usr/share/man/man1/tee.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/test.1.gz to /usr/share/man/man1/test.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/timeout.1.gz to /usr/share/man/man1/timeout.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/touch.1.gz to /usr/share/man/man1/touch.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/tr.1.gz to /usr/share/man/man1/tr.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/true.1.gz to /usr/share/man/man1/true.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/truncate.1.gz to /usr/share/man/man1/truncate.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/tsort.1.gz to /usr/share/man/man1/tsort.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/tty.1.gz to /usr/share/man/man1/tty.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/uname.1.gz to /usr/share/man/man1/uname.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/unexpand.1.gz to /usr/share/man/man1/unexpand.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/uniq.1.gz to /usr/share/man/man1/uniq.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/unlink.1.gz to /usr/share/man/man1/unlink.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/users.1.gz to /usr/share/man/man1/users.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/vdir.1.gz to /usr/share/man/man1/vdir.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/wc.1.gz to /usr/share/man/man1/wc.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/who.1.gz to /usr/share/man/man1/who.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/whoami.1.gz to /usr/share/man/man1/whoami.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/yes.1.gz to /usr/share/man/man1/yes.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/[.1.gz to /usr/share/man/man1/[.1.gz.remove-bak by coreutils-switch' 324s Unpacking coreutils-from-uutils (0.0.0~ubuntu20) ... 324s Setting up coreutils-from-uutils (0.0.0~ubuntu20) ... 324s Removing 'diversion of /usr/share/man/man1/sha512sum.1.gz to /usr/share/man/man1/sha512sum.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/sha1sum.1.gz to /usr/share/man/man1/sha1sum.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/sha384sum.1.gz to /usr/share/man/man1/sha384sum.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/b2sum.1.gz to /usr/share/man/man1/b2sum.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/sha256sum.1.gz to /usr/share/man/man1/sha256sum.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/sbin/chroot to /usr/sbin/chroot.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/bin/stdbuf to /usr/bin/stdbuf.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/stdbuf.1.gz to /usr/share/man/man1/stdbuf.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/sha224sum.1.gz to /usr/share/man/man1/sha224sum.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man1/md5sum.1.gz to /usr/share/man/man1/md5sum.1.gz.remove-bak by coreutils-switch' 324s Removing 'diversion of /usr/share/man/man8/chroot.8.gz to /usr/share/man/man8/chroot.8.gz.remove-bak by coreutils-switch' 324s Selecting previously unselected package libisl23:s390x. 324s (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 ... 86422 files and directories currently installed.) 324s Preparing to unpack .../00-libisl23_0.27-1_s390x.deb ... 324s Unpacking libisl23:s390x (0.27-1) ... 324s Selecting previously unselected package libmpc3:s390x. 324s Preparing to unpack .../01-libmpc3_1.3.1-1build3_s390x.deb ... 324s Unpacking libmpc3:s390x (1.3.1-1build3) ... 324s Selecting previously unselected package cpp-15-s390x-linux-gnu. 324s Preparing to unpack .../02-cpp-15-s390x-linux-gnu_15.2.0-2ubuntu1_s390x.deb ... 324s Unpacking cpp-15-s390x-linux-gnu (15.2.0-2ubuntu1) ... 325s Selecting previously unselected package cpp-15. 325s Preparing to unpack .../03-cpp-15_15.2.0-2ubuntu1_s390x.deb ... 325s Unpacking cpp-15 (15.2.0-2ubuntu1) ... 325s Selecting previously unselected package cpp-s390x-linux-gnu. 325s Preparing to unpack .../04-cpp-s390x-linux-gnu_4%3a15.1.0-1ubuntu1_s390x.deb ... 325s Unpacking cpp-s390x-linux-gnu (4:15.1.0-1ubuntu1) ... 325s Selecting previously unselected package cpp. 325s Preparing to unpack .../05-cpp_4%3a15.1.0-1ubuntu1_s390x.deb ... 325s Unpacking cpp (4:15.1.0-1ubuntu1) ... 325s Selecting previously unselected package libcc1-0:s390x. 325s Preparing to unpack .../06-libcc1-0_15.2.0-2ubuntu1_s390x.deb ... 325s Unpacking libcc1-0:s390x (15.2.0-2ubuntu1) ... 325s Selecting previously unselected package libgomp1:s390x. 325s Preparing to unpack .../07-libgomp1_15.2.0-2ubuntu1_s390x.deb ... 325s Unpacking libgomp1:s390x (15.2.0-2ubuntu1) ... 325s Selecting previously unselected package libitm1:s390x. 325s Preparing to unpack .../08-libitm1_15.2.0-2ubuntu1_s390x.deb ... 325s Unpacking libitm1:s390x (15.2.0-2ubuntu1) ... 325s Selecting previously unselected package libasan8:s390x. 325s Preparing to unpack .../09-libasan8_15.2.0-2ubuntu1_s390x.deb ... 325s Unpacking libasan8:s390x (15.2.0-2ubuntu1) ... 325s Selecting previously unselected package libubsan1:s390x. 325s Preparing to unpack .../10-libubsan1_15.2.0-2ubuntu1_s390x.deb ... 325s Unpacking libubsan1:s390x (15.2.0-2ubuntu1) ... 325s Selecting previously unselected package libgcc-15-dev:s390x. 325s Preparing to unpack .../11-libgcc-15-dev_15.2.0-2ubuntu1_s390x.deb ... 325s Unpacking libgcc-15-dev:s390x (15.2.0-2ubuntu1) ... 325s Selecting previously unselected package gcc-15-s390x-linux-gnu. 325s Preparing to unpack .../12-gcc-15-s390x-linux-gnu_15.2.0-2ubuntu1_s390x.deb ... 325s Unpacking gcc-15-s390x-linux-gnu (15.2.0-2ubuntu1) ... 326s Selecting previously unselected package gcc-15. 326s Preparing to unpack .../13-gcc-15_15.2.0-2ubuntu1_s390x.deb ... 326s Unpacking gcc-15 (15.2.0-2ubuntu1) ... 326s Selecting previously unselected package gcc-s390x-linux-gnu. 326s Preparing to unpack .../14-gcc-s390x-linux-gnu_4%3a15.1.0-1ubuntu1_s390x.deb ... 326s Unpacking gcc-s390x-linux-gnu (4:15.1.0-1ubuntu1) ... 326s Selecting previously unselected package gcc. 326s Preparing to unpack .../15-gcc_4%3a15.1.0-1ubuntu1_s390x.deb ... 326s Unpacking gcc (4:15.1.0-1ubuntu1) ... 326s Selecting previously unselected package libstdc++-15-dev:s390x. 326s Preparing to unpack .../16-libstdc++-15-dev_15.2.0-2ubuntu1_s390x.deb ... 326s Unpacking libstdc++-15-dev:s390x (15.2.0-2ubuntu1) ... 327s Selecting previously unselected package g++-15-s390x-linux-gnu. 327s Preparing to unpack .../17-g++-15-s390x-linux-gnu_15.2.0-2ubuntu1_s390x.deb ... 327s Unpacking g++-15-s390x-linux-gnu (15.2.0-2ubuntu1) ... 328s Selecting previously unselected package g++-15. 328s Preparing to unpack .../18-g++-15_15.2.0-2ubuntu1_s390x.deb ... 328s Unpacking g++-15 (15.2.0-2ubuntu1) ... 328s Selecting previously unselected package g++-s390x-linux-gnu. 328s Preparing to unpack .../19-g++-s390x-linux-gnu_4%3a15.1.0-1ubuntu1_s390x.deb ... 328s Unpacking g++-s390x-linux-gnu (4:15.1.0-1ubuntu1) ... 328s Selecting previously unselected package g++. 328s Preparing to unpack .../20-g++_4%3a15.1.0-1ubuntu1_s390x.deb ... 328s Unpacking g++ (4:15.1.0-1ubuntu1) ... 328s Selecting previously unselected package build-essential. 328s Preparing to unpack .../21-build-essential_12.12ubuntu2_s390x.deb ... 328s Unpacking build-essential (12.12ubuntu2) ... 328s Selecting previously unselected package libffi-dev:s390x. 328s Preparing to unpack .../22-libffi-dev_3.5.2-1_s390x.deb ... 328s Unpacking libffi-dev:s390x (3.5.2-1) ... 328s Selecting previously unselected package uuid-dev:s390x. 328s Preparing to unpack .../23-uuid-dev_2.41-4ubuntu3_s390x.deb ... 328s Unpacking uuid-dev:s390x (2.41-4ubuntu3) ... 328s Selecting previously unselected package libblkid-dev:s390x. 328s Preparing to unpack .../24-libblkid-dev_2.41-4ubuntu3_s390x.deb ... 328s Unpacking libblkid-dev:s390x (2.41-4ubuntu3) ... 328s Selecting previously unselected package libsepol-dev:s390x. 328s Preparing to unpack .../25-libsepol-dev_3.8.1-1_s390x.deb ... 328s Unpacking libsepol-dev:s390x (3.8.1-1) ... 328s Selecting previously unselected package libpcre2-16-0:s390x. 328s Preparing to unpack .../26-libpcre2-16-0_10.46-1_s390x.deb ... 328s Unpacking libpcre2-16-0:s390x (10.46-1) ... 328s Selecting previously unselected package libpcre2-32-0:s390x. 328s Preparing to unpack .../27-libpcre2-32-0_10.46-1_s390x.deb ... 328s Unpacking libpcre2-32-0:s390x (10.46-1) ... 328s Selecting previously unselected package libpcre2-posix3:s390x. 328s Preparing to unpack .../28-libpcre2-posix3_10.46-1_s390x.deb ... 328s Unpacking libpcre2-posix3:s390x (10.46-1) ... 328s Selecting previously unselected package libpcre2-dev:s390x. 328s Preparing to unpack .../29-libpcre2-dev_10.46-1_s390x.deb ... 328s Unpacking libpcre2-dev:s390x (10.46-1) ... 328s Selecting previously unselected package libselinux1-dev:s390x. 328s Preparing to unpack .../30-libselinux1-dev_3.8.1-1_s390x.deb ... 328s Unpacking libselinux1-dev:s390x (3.8.1-1) ... 328s Selecting previously unselected package libmount-dev:s390x. 328s Preparing to unpack .../31-libmount-dev_2.41-4ubuntu3_s390x.deb ... 328s Unpacking libmount-dev:s390x (2.41-4ubuntu3) ... 328s Selecting previously unselected package libsysprof-capture-4-dev:s390x. 328s Preparing to unpack .../32-libsysprof-capture-4-dev_48.0-2_s390x.deb ... 328s Unpacking libsysprof-capture-4-dev:s390x (48.0-2) ... 328s Selecting previously unselected package libpkgconf3:s390x. 328s Preparing to unpack .../33-libpkgconf3_1.8.1-4_s390x.deb ... 328s Unpacking libpkgconf3:s390x (1.8.1-4) ... 328s Selecting previously unselected package pkgconf-bin. 328s Preparing to unpack .../34-pkgconf-bin_1.8.1-4_s390x.deb ... 328s Unpacking pkgconf-bin (1.8.1-4) ... 328s Selecting previously unselected package pkgconf:s390x. 328s Preparing to unpack .../35-pkgconf_1.8.1-4_s390x.deb ... 328s Unpacking pkgconf:s390x (1.8.1-4) ... 328s Selecting previously unselected package zlib1g-dev:s390x. 328s Preparing to unpack .../36-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_s390x.deb ... 328s Unpacking zlib1g-dev:s390x (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 328s Selecting previously unselected package libgio-2.0-dev:s390x. 328s Preparing to unpack .../37-libgio-2.0-dev_2.85.3-1_s390x.deb ... 328s Unpacking libgio-2.0-dev:s390x (2.85.3-1) ... 328s Setting up libgomp1:s390x (15.2.0-2ubuntu1) ... 328s Setting up libffi-dev:s390x (3.5.2-1) ... 328s Setting up libpcre2-16-0:s390x (10.46-1) ... 328s Setting up libsysprof-capture-4-dev:s390x (48.0-2) ... 328s Setting up libpcre2-32-0:s390x (10.46-1) ... 328s Setting up libpkgconf3:s390x (1.8.1-4) ... 328s Setting up uuid-dev:s390x (2.41-4ubuntu3) ... 328s Setting up libmpc3:s390x (1.3.1-1build3) ... 328s Setting up libsepol-dev:s390x (3.8.1-1) ... 328s Setting up pkgconf-bin (1.8.1-4) ... 328s Setting up libubsan1:s390x (15.2.0-2ubuntu1) ... 328s Setting up zlib1g-dev:s390x (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 328s Setting up libpcre2-posix3:s390x (10.46-1) ... 328s Setting up libasan8:s390x (15.2.0-2ubuntu1) ... 328s Setting up libisl23:s390x (0.27-1) ... 328s Setting up libcc1-0:s390x (15.2.0-2ubuntu1) ... 328s Setting up libitm1:s390x (15.2.0-2ubuntu1) ... 328s Setting up libblkid-dev:s390x (2.41-4ubuntu3) ... 328s Setting up libgcc-15-dev:s390x (15.2.0-2ubuntu1) ... 328s Setting up libpcre2-dev:s390x (10.46-1) ... 328s Setting up libselinux1-dev:s390x (3.8.1-1) ... 328s Setting up pkgconf:s390x (1.8.1-4) ... 328s Setting up libstdc++-15-dev:s390x (15.2.0-2ubuntu1) ... 328s Setting up cpp-15-s390x-linux-gnu (15.2.0-2ubuntu1) ... 328s Setting up libmount-dev:s390x (2.41-4ubuntu3) ... 328s Setting up gcc-15-s390x-linux-gnu (15.2.0-2ubuntu1) ... 328s Setting up g++-15-s390x-linux-gnu (15.2.0-2ubuntu1) ... 328s Setting up libgio-2.0-dev:s390x (2.85.3-1) ... 328s Setting up cpp-s390x-linux-gnu (4:15.1.0-1ubuntu1) ... 328s Setting up gcc-s390x-linux-gnu (4:15.1.0-1ubuntu1) ... 328s Setting up cpp-15 (15.2.0-2ubuntu1) ... 328s Setting up cpp (4:15.1.0-1ubuntu1) ... 328s Setting up g++-s390x-linux-gnu (4:15.1.0-1ubuntu1) ... 328s Setting up gcc-15 (15.2.0-2ubuntu1) ... 328s Setting up g++-15 (15.2.0-2ubuntu1) ... 328s Setting up gcc (4:15.1.0-1ubuntu1) ... 328s Setting up g++ (4:15.1.0-1ubuntu1) ... 328s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 328s Setting up build-essential (12.12ubuntu2) ... 328s Processing triggers for libc-bin (2.42-0ubuntu1) ... 328s Processing triggers for man-db (2.13.1-1) ... 329s Processing triggers for libglib2.0-0t64:s390x (2.85.3-1) ... 329s No schema files found: doing nothing. 329s Processing triggers for install-info (7.1.1-1) ... 330s autopkgtest [19:04:18]: test build: [----------------------- 330s + mode=dynamic 330s + getopt -o --long static -n debian/tests/build -- 330s + getopt_temp= -- 330s + eval set -- -- 330s + set -- -- 330s + true 330s + shift 330s + break 330s + mktemp -d 330s + WORKDIR=/tmp/tmp.UzDaGaY6dX 330s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 330s + cd /tmp/tmp.UzDaGaY6dX 330s + [ -n ] 330s + CROSS_COMPILE= 330s + cat 330s + cat 330s + cat 330s + cat 330s + cat 330s + cat 330s + cflags= 330s + pcflags= 330s + packages=glib-2.0 330s + pkg-config --cflags --libs glib-2.0 330s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 330s + echo build (glib, dynamic): OK 330s + [ -x glib-dynamic ] 330s + foo=bar ./glib-dynamic 330s build (glib, dynamic): OK 330s + echo run (glib, dynamic): OK 330s + cflags= 330s + pcflags= 330s + packages=gobject-2.0 330s run (glib, dynamic): OK 330s + pkg-config --cflags --libs gobject-2.0 330s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 330s + echo build (gobject, dynamic): OK 330s + [ -x gobject-dynamic ] 330s + foo=bar ./gobject-dynamic 330s + echo run (gobject, dynamic): OK 330s + cflags= 330s + pcflags= 330s + packages=gio-2.0 330s + pkg-config --cflags --libs gio-2.0 330s build (gobject, dynamic): OK 330s run (gobject, dynamic): OK 330s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 330s + echo build (gio, dynamic): OK 330s + [ -x gio-dynamic ] 330s + foo=bar ./gio-dynamic 330s build (gio, dynamic): OK 330s + echo run (gio, dynamic): OK 330s + cflags= 330s + pcflags= 330s + packages=gio-unix-2.0 330s run (gio, dynamic): OK 330s + pkg-config --cflags --libs gio-unix-2.0 330s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 331s + echo build (gio-unix, dynamic): OK 331s + [ -x gio-unix-dynamic ] 331s + foo=bar ./gio-unix-dynamic 331s build (gio-unix, dynamic): OK 331s + echo run (gio-unix, dynamic): OK 331s + cflags= 331s + pcflags= 331s + packages=gmodule-2.0 331s + pkg-config --cflags --libs gmodule-2.0 331s run (gio-unix, dynamic): OK 331s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 331s + echo build (gmodule, dynamic): OK 331s + [ -x gmodule-dynamic ] 331s + foo=bar ./gmodule-dynamic 331s build (gmodule, dynamic): OK 331s + echo run (gmodule, dynamic): OK 331s + cflags= 331s + pcflags= 331s + packages=gthread-2.0 331s run (gmodule, dynamic): OK 331s + pkg-config --cflags --libs gthread-2.0 331s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 331s + echo build (gthread, dynamic): OK 331s + [ -x gthread-dynamic ] 331s + foo=bar ./gthread-dynamic 331s build (gthread, dynamic): OK 331s + echo run (gthread, dynamic): OK 331s + rm -rf /tmp/tmp.UzDaGaY6dX 331s run (gthread, dynamic): OK 331s autopkgtest [19:04:19]: test build: -----------------------] 331s build PASS (superficial) 331s autopkgtest [19:04:19]: test build: - - - - - - - - - - results - - - - - - - - - - 332s autopkgtest [19:04:20]: test build-static: preparing testbed 332s Reading package lists... 332s Building dependency tree... 332s Reading state information... 332s Solving dependencies... 332s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 333s autopkgtest [19:04:21]: test build-static: [----------------------- 333s + mode=dynamic 333s + getopt -o --long static -n debian/tests/build -- --static 333s + getopt_temp= --static -- 333s + eval set -- --static -- 333s + set -- --static -- 333s + true 333s + mode=static 333s + shift 333s + continue 333s + true 333s + shift 333s + break 333s + mktemp -d 333s + WORKDIR=/tmp/tmp.hTMNY8sAfK 333s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 333s + cd /tmp/tmp.hTMNY8sAfK 333s + [ -n ] 333s + CROSS_COMPILE= 333s + cat 333s + cat 333s + cat 333s + cat 333s + cat 333s + cat 333s + cflags= 333s + pcflags= 333s + packages=glib-2.0 333s + cflags=-static 333s + pcflags=--static 333s + pkg-config --static --cflags --libs glib-2.0 333s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 333s /usr/bin/ld: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 333s (.text+0xec): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 333s /usr/bin/ld: (.text+0x2a6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 333s /usr/bin/ld: (.text+0x12a): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 333s build (glib, static): OK 333s run (glib, static): OK 333s + echo build (glib, static): OK 333s + [ -x glib-static ] 333s + foo=bar ./glib-static 333s + echo run (glib, static): OK 333s + cflags= 333s + pcflags= 333s + packages=gobject-2.0 333s + cflags=-static 333s + pcflags=--static 333s + pkg-config --static --cflags --libs gobject-2.0 333s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 333s /usr/bin/ld: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 333s (.text+0xec): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 333s /usr/bin/ld: (.text+0x2a6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 333s /usr/bin/ld: (.text+0x12a): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 333s build (gobject, static): OK 333s + echo build (gobject, static): OK 333s + [ -x gobject-static ] 333s + foo=bar ./gobject-static 333s run (gobject, static): OK 333s + echo run (gobject, static): OK 333s + cflags= 333s + pcflags= 333s + packages=gio-2.0 333s + cflags=-static 333s + pcflags=--static 333s + continue 333s + cflags= 333s + pcflags= 333s + packages=gio-unix-2.0 333s + cflags=-static 333s + pcflags=--static 333s + continue 333s + cflags= 333s + pcflags= 333s + packages=gmodule-2.0 333s + cflags=-static 333s + pcflags=--static 333s + pkg-config --static --cflags --libs gmodule-2.0 333s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 333s /usr/bin/ld: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 333s (.text+0x66e): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 333s /usr/bin/ld: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 333s (.text+0xec): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 333s /usr/bin/ld: (.text+0x2a6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 333s /usr/bin/ld: (.text+0x12a): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 333s build (gmodule, static): OK 333s run (gmodule, static): OK 333s + echo build (gmodule, static): OK 333s + [ -x gmodule-static ] 333s + foo=bar ./gmodule-static 333s + echo run (gmodule, static): OK 333s + cflags= 333s + pcflags= 333s + packages=gthread-2.0 333s + cflags=-static 333s + pcflags=--static 333s + pkg-config --static --cflags --libs gthread-2.0 333s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 333s /usr/bin/ld: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 333s (.text+0xec): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 333s /usr/bin/ld: (.text+0x2a6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 333s /usr/bin/ld: (.text+0x12a): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 333s build (gthread, static): OK 333s + echo build (gthread, static): OK 333s + [ -x gthread-static ] 333s + foo=bar ./gthread-static 333s + echo run (gthread, static): OK 333s + rm -rf /tmp/tmp.hTMNY8sAfK 333s run (gthread, static): OK 334s autopkgtest [19:04:22]: test build-static: -----------------------] 334s build-static PASS (superficial) 334s autopkgtest [19:04:22]: test build-static: - - - - - - - - - - results - - - - - - - - - - 334s autopkgtest [19:04:22]: test girepository-tools: preparing testbed 355s Creating nova instance adt-questing-s390x-glib2.0-20250904-172803-juju-7f2275-prod-proposed-migration-environment-20-41c6da5a-6f73-4977-a243-a489171730c5 from image adt/ubuntu-questing-s390x-server-20250904.img (UUID 7ac7c447-3049-4f71-b62b-46468f662d6e)... 414s autopkgtest [19:05:42]: testbed dpkg architecture: s390x 414s autopkgtest [19:05:42]: testbed apt version: 3.1.5ubuntu1 414s autopkgtest [19:05:42]: @@@@@@@@@@@@@@@@@@@@ test bed setup 414s autopkgtest [19:05:42]: testbed release detected to be: questing 415s autopkgtest [19:05:43]: updating testbed package index (apt update) 415s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [265 kB] 416s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 416s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 416s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 416s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [14.1 kB] 416s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [234 kB] 416s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [59.4 kB] 416s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/restricted Sources [3848 B] 416s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/main s390x Packages [95.4 kB] 416s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main s390x c-n-f Metadata [3688 B] 416s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/restricted s390x Packages [728 B] 416s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/restricted s390x c-n-f Metadata [120 B] 416s Get:13 http://ftpmaster.internal/ubuntu questing-proposed/universe s390x Packages [213 kB] 417s Get:14 http://ftpmaster.internal/ubuntu questing-proposed/universe s390x c-n-f Metadata [6332 B] 417s Get:15 http://ftpmaster.internal/ubuntu questing-proposed/multiverse s390x Packages [4208 B] 417s Get:16 http://ftpmaster.internal/ubuntu questing-proposed/multiverse s390x c-n-f Metadata [300 B] 417s Fetched 900 kB in 1s (643 kB/s) 418s Reading package lists... 419s autopkgtest [19:05:47]: upgrading testbed (apt dist-upgrade and autopurge) 419s Reading package lists... 419s Building dependency tree... 419s Reading state information... 419s Calculating upgrade... 419s The following packages will be upgraded: 419s bpftrace cron cron-daemon-common cryptsetup-bin dash libbrotli1 419s libcryptsetup12 419s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 419s Need to get 3001 kB of archives. 419s After this operation, 4096 B of additional disk space will be used. 419s Get:1 http://ftpmaster.internal/ubuntu questing/main s390x dash s390x 0.5.12-12ubuntu2 [100 kB] 419s Get:2 http://ftpmaster.internal/ubuntu questing/main s390x cron s390x 3.0pl1-196ubuntu2 [89.5 kB] 420s Get:3 http://ftpmaster.internal/ubuntu questing/main s390x libcryptsetup12 s390x 2:2.8.0-1ubuntu2 [273 kB] 420s Get:4 http://ftpmaster.internal/ubuntu questing/main s390x cron-daemon-common all 3.0pl1-196ubuntu2 [15.3 kB] 420s Get:5 http://ftpmaster.internal/ubuntu questing/main s390x bpftrace s390x 0.23.5-1ubuntu1 [1917 kB] 421s Get:6 http://ftpmaster.internal/ubuntu questing/main s390x cryptsetup-bin s390x 2:2.8.0-1ubuntu2 [227 kB] 421s Get:7 http://ftpmaster.internal/ubuntu questing/main s390x libbrotli1 s390x 1.1.0-2build5 [379 kB] 421s Preconfiguring packages ... 421s Fetched 3001 kB in 2s (1396 kB/s) 422s (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 ... 85685 files and directories currently installed.) 422s Preparing to unpack .../dash_0.5.12-12ubuntu2_s390x.deb ... 422s Unpacking dash (0.5.12-12ubuntu2) over (0.5.12-12ubuntu1) ... 422s Setting up dash (0.5.12-12ubuntu2) ... 422s (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 ... 85685 files and directories currently installed.) 422s Preparing to unpack .../0-cron_3.0pl1-196ubuntu2_s390x.deb ... 422s Unpacking cron (3.0pl1-196ubuntu2) over (3.0pl1-196ubuntu1) ... 422s Preparing to unpack .../1-libcryptsetup12_2%3a2.8.0-1ubuntu2_s390x.deb ... 422s Unpacking libcryptsetup12:s390x (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 422s Preparing to unpack .../2-cron-daemon-common_3.0pl1-196ubuntu2_all.deb ... 422s Unpacking cron-daemon-common (3.0pl1-196ubuntu2) over (3.0pl1-196ubuntu1) ... 422s Preparing to unpack .../3-bpftrace_0.23.5-1ubuntu1_s390x.deb ... 422s Unpacking bpftrace (0.23.5-1ubuntu1) over (0.23.2-1ubuntu2) ... 422s Preparing to unpack .../4-cryptsetup-bin_2%3a2.8.0-1ubuntu2_s390x.deb ... 422s Unpacking cryptsetup-bin (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 422s Preparing to unpack .../5-libbrotli1_1.1.0-2build5_s390x.deb ... 422s Unpacking libbrotli1:s390x (1.1.0-2build5) over (1.1.0-2build4) ... 422s Setting up bpftrace (0.23.5-1ubuntu1) ... 422s Setting up libbrotli1:s390x (1.1.0-2build5) ... 422s Setting up libcryptsetup12:s390x (2:2.8.0-1ubuntu2) ... 422s Setting up cron-daemon-common (3.0pl1-196ubuntu2) ... 422s Setting up cryptsetup-bin (2:2.8.0-1ubuntu2) ... 422s Setting up cron (3.0pl1-196ubuntu2) ... 423s Processing triggers for debianutils (5.23.2) ... 423s Processing triggers for libc-bin (2.42-0ubuntu1) ... 423s Processing triggers for man-db (2.13.1-1) ... 423s Reading package lists... 424s Building dependency tree... 424s Reading state information... 424s Solving dependencies... 424s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 424s autopkgtest [19:05:52]: rebooting testbed after setup commands that affected boot 446s Reading package lists... 446s Building dependency tree... 446s Reading state information... 447s Solving dependencies... 447s The following NEW packages will be installed: 447s gir1.2-glib-2.0-dev girepository-tools libgirepository-2.0-0 447s native-architecture 447s 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 447s Need to get 1061 kB of archives. 447s After this operation, 12.8 MB of additional disk space will be used. 447s Get:1 http://ftpmaster.internal/ubuntu questing/main s390x gir1.2-glib-2.0-dev s390x 2.85.3-1 [868 kB] 448s Get:2 http://ftpmaster.internal/ubuntu questing/main s390x native-architecture all 0.2.6 [2140 B] 448s Get:3 http://ftpmaster.internal/ubuntu questing/main s390x libgirepository-2.0-0 s390x 2.85.3-1 [76.1 kB] 448s Get:4 http://ftpmaster.internal/ubuntu questing/main s390x girepository-tools s390x 2.85.3-1 [115 kB] 448s Fetched 1061 kB in 1s (841 kB/s) 448s Selecting previously unselected package gir1.2-glib-2.0-dev:s390x. 448s (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 ... 85685 files and directories currently installed.) 448s Preparing to unpack .../gir1.2-glib-2.0-dev_2.85.3-1_s390x.deb ... 448s Unpacking gir1.2-glib-2.0-dev:s390x (2.85.3-1) ... 448s Selecting previously unselected package native-architecture. 448s Preparing to unpack .../native-architecture_0.2.6_all.deb ... 448s Unpacking native-architecture (0.2.6) ... 448s Selecting previously unselected package libgirepository-2.0-0:s390x. 448s Preparing to unpack .../libgirepository-2.0-0_2.85.3-1_s390x.deb ... 448s Unpacking libgirepository-2.0-0:s390x (2.85.3-1) ... 448s Selecting previously unselected package girepository-tools:s390x. 448s Preparing to unpack .../girepository-tools_2.85.3-1_s390x.deb ... 448s Unpacking girepository-tools:s390x (2.85.3-1) ... 448s Setting up native-architecture (0.2.6) ... 448s Setting up libgirepository-2.0-0:s390x (2.85.3-1) ... 448s Setting up gir1.2-glib-2.0-dev:s390x (2.85.3-1) ... 448s Setting up girepository-tools:s390x (2.85.3-1) ... 448s Processing triggers for man-db (2.13.1-1) ... 449s Processing triggers for libc-bin (2.42-0ubuntu1) ... 462s autopkgtest [19:06:30]: test girepository-tools: [----------------------- 462s + cd /tmp/autopkgtest.v67oQT/autopkgtest_tmp 462s + dpkg-architecture -qDEB_HOST_GNU_TYPE 462s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 462s + DEB_HOST_GNU_TYPE=s390x-linux-gnu 462s + dpkg-architecture -qDEB_HOST_MULTIARCH 462s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 462s + DEB_HOST_MULTIARCH=s390x-linux-gnu 462s + s390x-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 462s + s390x-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/s390x-linux-gnu/gir-1.0/GLib-2.0.gir 462s typelib: GLib-2.0 463s + s390x-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 463s autopkgtest [19:06:31]: test girepository-tools: -----------------------] 463s girepository-tools PASS (superficial) 463s autopkgtest [19:06:31]: test girepository-tools: - - - - - - - - - - results - - - - - - - - - - 464s autopkgtest [19:06:32]: test libgio-2.0-dev-bin: preparing testbed 484s Creating nova instance adt-questing-s390x-glib2.0-20250904-172803-juju-7f2275-prod-proposed-migration-environment-20-41c6da5a-6f73-4977-a243-a489171730c5 from image adt/ubuntu-questing-s390x-server-20250904.img (UUID 7ac7c447-3049-4f71-b62b-46468f662d6e)... 550s autopkgtest [19:07:58]: testbed dpkg architecture: s390x 550s autopkgtest [19:07:58]: testbed apt version: 3.1.5ubuntu1 550s autopkgtest [19:07:58]: @@@@@@@@@@@@@@@@@@@@ test bed setup 550s autopkgtest [19:07:58]: testbed release detected to be: questing 551s autopkgtest [19:07:59]: updating testbed package index (apt update) 551s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [265 kB] 552s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 552s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 552s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 552s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [234 kB] 552s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [14.1 kB] 552s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/restricted Sources [3848 B] 552s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [59.4 kB] 552s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/main s390x Packages [95.4 kB] 552s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main s390x c-n-f Metadata [3688 B] 552s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/restricted s390x Packages [728 B] 552s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/restricted s390x c-n-f Metadata [120 B] 552s Get:13 http://ftpmaster.internal/ubuntu questing-proposed/universe s390x Packages [213 kB] 552s Get:14 http://ftpmaster.internal/ubuntu questing-proposed/universe s390x c-n-f Metadata [6332 B] 552s Get:15 http://ftpmaster.internal/ubuntu questing-proposed/multiverse s390x Packages [4208 B] 552s Get:16 http://ftpmaster.internal/ubuntu questing-proposed/multiverse s390x c-n-f Metadata [300 B] 553s Fetched 900 kB in 1s (656 kB/s) 554s Reading package lists... 554s autopkgtest [19:08:02]: upgrading testbed (apt dist-upgrade and autopurge) 554s Reading package lists... 554s Building dependency tree... 554s Reading state information... 555s Calculating upgrade... 555s The following packages will be upgraded: 555s bpftrace cron cron-daemon-common cryptsetup-bin dash libbrotli1 555s libcryptsetup12 555s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 555s Need to get 3001 kB of archives. 555s After this operation, 4096 B of additional disk space will be used. 555s Get:1 http://ftpmaster.internal/ubuntu questing/main s390x dash s390x 0.5.12-12ubuntu2 [100 kB] 555s Get:2 http://ftpmaster.internal/ubuntu questing/main s390x cron s390x 3.0pl1-196ubuntu2 [89.5 kB] 555s Get:3 http://ftpmaster.internal/ubuntu questing/main s390x libcryptsetup12 s390x 2:2.8.0-1ubuntu2 [273 kB] 556s Get:4 http://ftpmaster.internal/ubuntu questing/main s390x cron-daemon-common all 3.0pl1-196ubuntu2 [15.3 kB] 556s Get:5 http://ftpmaster.internal/ubuntu questing/main s390x bpftrace s390x 0.23.5-1ubuntu1 [1917 kB] 560s Get:6 http://ftpmaster.internal/ubuntu questing/main s390x cryptsetup-bin s390x 2:2.8.0-1ubuntu2 [227 kB] 560s Get:7 http://ftpmaster.internal/ubuntu questing/main s390x libbrotli1 s390x 1.1.0-2build5 [379 kB] 561s Preconfiguring packages ... 561s Fetched 3001 kB in 6s (505 kB/s) 561s (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 ... 85685 files and directories currently installed.) 561s Preparing to unpack .../dash_0.5.12-12ubuntu2_s390x.deb ... 561s Unpacking dash (0.5.12-12ubuntu2) over (0.5.12-12ubuntu1) ... 561s Setting up dash (0.5.12-12ubuntu2) ... 561s (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 ... 85685 files and directories currently installed.) 561s Preparing to unpack .../0-cron_3.0pl1-196ubuntu2_s390x.deb ... 561s Unpacking cron (3.0pl1-196ubuntu2) over (3.0pl1-196ubuntu1) ... 561s Preparing to unpack .../1-libcryptsetup12_2%3a2.8.0-1ubuntu2_s390x.deb ... 561s Unpacking libcryptsetup12:s390x (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 561s Preparing to unpack .../2-cron-daemon-common_3.0pl1-196ubuntu2_all.deb ... 561s Unpacking cron-daemon-common (3.0pl1-196ubuntu2) over (3.0pl1-196ubuntu1) ... 561s Preparing to unpack .../3-bpftrace_0.23.5-1ubuntu1_s390x.deb ... 561s Unpacking bpftrace (0.23.5-1ubuntu1) over (0.23.2-1ubuntu2) ... 561s Preparing to unpack .../4-cryptsetup-bin_2%3a2.8.0-1ubuntu2_s390x.deb ... 561s Unpacking cryptsetup-bin (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 561s Preparing to unpack .../5-libbrotli1_1.1.0-2build5_s390x.deb ... 561s Unpacking libbrotli1:s390x (1.1.0-2build5) over (1.1.0-2build4) ... 561s Setting up bpftrace (0.23.5-1ubuntu1) ... 561s Setting up libbrotli1:s390x (1.1.0-2build5) ... 561s Setting up libcryptsetup12:s390x (2:2.8.0-1ubuntu2) ... 561s Setting up cron-daemon-common (3.0pl1-196ubuntu2) ... 561s Setting up cryptsetup-bin (2:2.8.0-1ubuntu2) ... 561s Setting up cron (3.0pl1-196ubuntu2) ... 562s Processing triggers for debianutils (5.23.2) ... 562s Processing triggers for libc-bin (2.42-0ubuntu1) ... 562s Processing triggers for man-db (2.13.1-1) ... 563s Reading package lists... 563s Building dependency tree... 563s Reading state information... 563s Solving dependencies... 563s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 563s autopkgtest [19:08:11]: rebooting testbed after setup commands that affected boot 584s Reading package lists... 584s Building dependency tree... 584s Reading state information... 584s Solving dependencies... 584s The following NEW packages will be installed: 584s libgio-2.0-dev-bin 585s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 585s Need to get 129 kB of archives. 585s After this operation, 700 kB of additional disk space will be used. 585s Get:1 http://ftpmaster.internal/ubuntu questing/main s390x libgio-2.0-dev-bin s390x 2.85.3-1 [129 kB] 585s Fetched 129 kB in 1s (239 kB/s) 585s Selecting previously unselected package libgio-2.0-dev-bin. 585s (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 ... 85685 files and directories currently installed.) 585s Preparing to unpack .../libgio-2.0-dev-bin_2.85.3-1_s390x.deb ... 585s Unpacking libgio-2.0-dev-bin (2.85.3-1) ... 585s Setting up libgio-2.0-dev-bin (2.85.3-1) ... 585s Processing triggers for man-db (2.13.1-1) ... 599s autopkgtest [19:08:47]: test libgio-2.0-dev-bin: [----------------------- 599s + gdbus-codegen --help 599s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 599s [--c-namespace NAMESPACE] [--c-generate-object-manager] 599s [--c-generate-autocleanup {none,objects,all}] 599s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 599s [--generate-rst OUTFILES] [--pragma-once] 599s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 599s [--glib-min-required VERSION] 599s [--glib-max-allowed VERSION] 599s [--symbol-decorator SYMBOL_DECORATOR] 599s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 599s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 599s [--generate-c-code OUTFILES | --header | --body | 599s --interface-info-header | --interface-info-body] 599s [--output FILE | --output-directory OUTDIR] 599s FILE [FILE ...] 599s 599s D-Bus code and documentation generator 599s 599s positional arguments: 599s FILE D-Bus introspection XML file 599s 599s options: 599s -h, --help show this help message and exit 599s --interface-prefix PREFIX 599s String to strip from D-Bus interface names for code 599s and docs 599s --c-namespace NAMESPACE 599s The namespace to use for generated C code 599s --c-generate-object-manager 599s Generate a GDBusObjectManagerClient subclass when 599s generating C code 599s --c-generate-autocleanup {none,objects,all} 599s Generate autocleanup support 599s --generate-docbook OUTFILES 599s Generate Docbook in OUTFILES-org.Project.IFace.xml 599s --generate-md OUTFILES 599s Generate Markdown in OUTFILES-org.Project.IFace.md 599s --generate-rst OUTFILES 599s Generate reStructuredText in OUTFILES- 599s org.Project.IFace.rst 599s --pragma-once Use "pragma once" as the inclusion guard 599s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 599s Add annotation (may be used several times) 599s --glib-min-required VERSION 599s Minimum version of GLib to be supported by the 599s outputted code (default: 2.30) 599s --glib-max-allowed VERSION 599s Maximum version of GLib to be used by the outputted 599s code (default: current GLib version) 599s --symbol-decorator SYMBOL_DECORATOR 599s Macro used to decorate a symbol in the outputted 599s header, possibly to export symbols 599s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 599s Additional header required for decorator specified by 599s --symbol-decorator 599s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 599s Additional define required for decorator specified by 599s --symbol-decorator 599s --generate-c-code OUTFILES 599s Generate C code in OUTFILES.[ch] 599s --header Generate C headers 599s --body Generate C code 599s --interface-info-header 599s Generate GDBusInterfaceInfo C header 599s --interface-info-body 599s Generate GDBusInterfaceInfo C code 599s --output FILE Write output into the specified file 599s --output-directory OUTDIR 599s Location to output generated files 599s + glib-compile-resources --version 599s 2.85.3 599s + glib-genmarshal --version 599s glib-genmarshal version 2.85.3 599s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 599s You may redistribute copies of glib-genmarshal under the terms of 599s the GNU General Public License which can be found in the 599s GLib source package. Sources, examples and contact 599s information are available at http://www.gtk.org 599s + glib-gettextize --version 599s /usr/bin/glib-gettextize (GNU glib) 2.85.3 599s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 599s This is free software; see the source for copying conditions. There is NO 599s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 599s Written by Ulrich Drepper 599s + glib-mkenums --version 599s glib-mkenums version 2.85.3 599s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 599s You may redistribute copies of glib-mkenums under the terms of 599s the GNU General Public License which can be found in the 599s GLib source package. Sources, examples and contact 599s information are available at http://www.gtk.org 599s GObject 599s gtester version 2.85.3 599s + gobject-query tree 599s + gtester --version 599s + gtester-report --version 599s gtester-report (GLib utils) version 2.85.3. 599s autopkgtest [19:08:47]: test libgio-2.0-dev-bin: -----------------------] 600s autopkgtest [19:08:48]: test libgio-2.0-dev-bin: - - - - - - - - - - results - - - - - - - - - - 600s libgio-2.0-dev-bin PASS (superficial) 600s autopkgtest [19:08:48]: test libglib2.0-dev: preparing testbed 620s Creating nova instance adt-questing-s390x-glib2.0-20250904-172803-juju-7f2275-prod-proposed-migration-environment-20-41c6da5a-6f73-4977-a243-a489171730c5 from image adt/ubuntu-questing-s390x-server-20250904.img (UUID 7ac7c447-3049-4f71-b62b-46468f662d6e)... 685s autopkgtest [19:10:13]: testbed dpkg architecture: s390x 685s autopkgtest [19:10:13]: testbed apt version: 3.1.5ubuntu1 686s autopkgtest [19:10:14]: @@@@@@@@@@@@@@@@@@@@ test bed setup 686s autopkgtest [19:10:14]: testbed release detected to be: questing 686s autopkgtest [19:10:14]: updating testbed package index (apt update) 687s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [265 kB] 687s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 687s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 687s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 687s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/restricted Sources [3848 B] 687s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [234 kB] 688s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [14.1 kB] 688s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [59.4 kB] 688s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/main s390x Packages [95.4 kB] 688s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main s390x c-n-f Metadata [3688 B] 688s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/restricted s390x Packages [728 B] 688s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/restricted s390x c-n-f Metadata [120 B] 688s Get:13 http://ftpmaster.internal/ubuntu questing-proposed/universe s390x Packages [213 kB] 688s Get:14 http://ftpmaster.internal/ubuntu questing-proposed/universe s390x c-n-f Metadata [6332 B] 688s Get:15 http://ftpmaster.internal/ubuntu questing-proposed/multiverse s390x Packages [4208 B] 688s Get:16 http://ftpmaster.internal/ubuntu questing-proposed/multiverse s390x c-n-f Metadata [300 B] 689s Fetched 900 kB in 2s (596 kB/s) 689s Reading package lists... 690s autopkgtest [19:10:18]: upgrading testbed (apt dist-upgrade and autopurge) 690s Reading package lists... 690s Building dependency tree... 690s Reading state information... 690s Calculating upgrade... 690s The following packages will be upgraded: 690s bpftrace cron cron-daemon-common cryptsetup-bin dash libbrotli1 690s libcryptsetup12 691s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 691s Need to get 3001 kB of archives. 691s After this operation, 4096 B of additional disk space will be used. 691s Get:1 http://ftpmaster.internal/ubuntu questing/main s390x dash s390x 0.5.12-12ubuntu2 [100 kB] 691s Get:2 http://ftpmaster.internal/ubuntu questing/main s390x cron s390x 3.0pl1-196ubuntu2 [89.5 kB] 691s Get:3 http://ftpmaster.internal/ubuntu questing/main s390x libcryptsetup12 s390x 2:2.8.0-1ubuntu2 [273 kB] 691s Get:4 http://ftpmaster.internal/ubuntu questing/main s390x cron-daemon-common all 3.0pl1-196ubuntu2 [15.3 kB] 691s Get:5 http://ftpmaster.internal/ubuntu questing/main s390x bpftrace s390x 0.23.5-1ubuntu1 [1917 kB] 693s Get:6 http://ftpmaster.internal/ubuntu questing/main s390x cryptsetup-bin s390x 2:2.8.0-1ubuntu2 [227 kB] 693s Get:7 http://ftpmaster.internal/ubuntu questing/main s390x libbrotli1 s390x 1.1.0-2build5 [379 kB] 694s Preconfiguring packages ... 694s Fetched 3001 kB in 3s (876 kB/s) 694s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 85685 files and directories currently installed.) 694s Preparing to unpack .../dash_0.5.12-12ubuntu2_s390x.deb ... 694s Unpacking dash (0.5.12-12ubuntu2) over (0.5.12-12ubuntu1) ... 694s Setting up dash (0.5.12-12ubuntu2) ... 694s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 85685 files and directories currently installed.) 694s Preparing to unpack .../0-cron_3.0pl1-196ubuntu2_s390x.deb ... 694s Unpacking cron (3.0pl1-196ubuntu2) over (3.0pl1-196ubuntu1) ... 694s Preparing to unpack .../1-libcryptsetup12_2%3a2.8.0-1ubuntu2_s390x.deb ... 694s Unpacking libcryptsetup12:s390x (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 694s Preparing to unpack .../2-cron-daemon-common_3.0pl1-196ubuntu2_all.deb ... 694s Unpacking cron-daemon-common (3.0pl1-196ubuntu2) over (3.0pl1-196ubuntu1) ... 694s Preparing to unpack .../3-bpftrace_0.23.5-1ubuntu1_s390x.deb ... 694s Unpacking bpftrace (0.23.5-1ubuntu1) over (0.23.2-1ubuntu2) ... 694s Preparing to unpack .../4-cryptsetup-bin_2%3a2.8.0-1ubuntu2_s390x.deb ... 694s Unpacking cryptsetup-bin (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 694s Preparing to unpack .../5-libbrotli1_1.1.0-2build5_s390x.deb ... 694s Unpacking libbrotli1:s390x (1.1.0-2build5) over (1.1.0-2build4) ... 694s Setting up bpftrace (0.23.5-1ubuntu1) ... 694s Setting up libbrotli1:s390x (1.1.0-2build5) ... 694s Setting up libcryptsetup12:s390x (2:2.8.0-1ubuntu2) ... 694s Setting up cron-daemon-common (3.0pl1-196ubuntu2) ... 694s Setting up cryptsetup-bin (2:2.8.0-1ubuntu2) ... 694s Setting up cron (3.0pl1-196ubuntu2) ... 695s Processing triggers for debianutils (5.23.2) ... 695s Processing triggers for libc-bin (2.42-0ubuntu1) ... 695s Processing triggers for man-db (2.13.1-1) ... 696s Reading package lists... 696s Building dependency tree... 696s Reading state information... 696s Solving dependencies... 696s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 696s autopkgtest [19:10:24]: rebooting testbed after setup commands that affected boot 720s Reading package lists... 720s Building dependency tree... 720s Reading state information... 720s Solving dependencies... 720s The following packages will be REMOVED: 720s coreutils-from-gnu 720s The following NEW packages will be installed: 720s build-essential coreutils-from-uutils cpp cpp-15 cpp-15-s390x-linux-gnu 720s cpp-s390x-linux-gnu g++ g++-15 g++-15-s390x-linux-gnu g++-s390x-linux-gnu 720s gcc gcc-15 gcc-15-s390x-linux-gnu gcc-s390x-linux-gnu gir1.2-glib-2.0-dev 720s girepository-tools libasan8 libblkid-dev libcc1-0 libffi-dev libgcc-15-dev 720s libgio-2.0-dev libgio-2.0-dev-bin libgirepository-2.0-0 libglib2.0-bin 720s libglib2.0-dev libglib2.0-dev-bin libgomp1 libisl23 libitm1 libmount-dev 720s libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix3 libpkgconf3 720s libselinux1-dev libsepol-dev libstdc++-15-dev libsysprof-capture-4-dev 720s libubsan1 native-architecture pkgconf pkgconf-bin rust-coreutils uuid-dev 720s zlib1g-dev 721s 0 upgraded, 48 newly installed, 1 to remove and 0 not upgraded. 721s Need to get 248 MB of archives. 721s After this operation, 926 MB of additional disk space will be used. 721s Get:1 http://ftpmaster.internal/ubuntu questing/main s390x rust-coreutils s390x 0.1.0+git20250813.4af2a84-0ubuntu2 [3182 kB] 725s Get:2 http://ftpmaster.internal/ubuntu questing/universe s390x coreutils-from-uutils all 0.0.0~ubuntu20 [6490 B] 725s Get:3 http://ftpmaster.internal/ubuntu questing/main s390x libisl23 s390x 0.27-1 [704 kB] 726s Get:4 http://ftpmaster.internal/ubuntu questing/main s390x libmpc3 s390x 1.3.1-1build3 [57.6 kB] 726s Get:5 http://ftpmaster.internal/ubuntu questing/main s390x cpp-15-s390x-linux-gnu s390x 15.2.0-2ubuntu1 [71.8 MB] 798s Get:6 http://ftpmaster.internal/ubuntu questing/main s390x cpp-15 s390x 15.2.0-2ubuntu1 [1026 B] 798s Get:7 http://ftpmaster.internal/ubuntu questing/main s390x cpp-s390x-linux-gnu s390x 4:15.1.0-1ubuntu1 [5582 B] 798s Get:8 http://ftpmaster.internal/ubuntu questing/main s390x cpp s390x 4:15.1.0-1ubuntu1 [22.4 kB] 798s Get:9 http://ftpmaster.internal/ubuntu questing/main s390x libcc1-0 s390x 15.2.0-2ubuntu1 [49.9 kB] 798s Get:10 http://ftpmaster.internal/ubuntu questing/main s390x libgomp1 s390x 15.2.0-2ubuntu1 [154 kB] 798s Get:11 http://ftpmaster.internal/ubuntu questing/main s390x libitm1 s390x 15.2.0-2ubuntu1 [31.1 kB] 798s Get:12 http://ftpmaster.internal/ubuntu questing/main s390x libasan8 s390x 15.2.0-2ubuntu1 [2971 kB] 801s Get:13 http://ftpmaster.internal/ubuntu questing/main s390x libubsan1 s390x 15.2.0-2ubuntu1 [1211 kB] 802s Get:14 http://ftpmaster.internal/ubuntu questing/main s390x libgcc-15-dev s390x 15.2.0-2ubuntu1 [1046 kB] 802s Get:15 http://ftpmaster.internal/ubuntu questing/main s390x gcc-15-s390x-linux-gnu s390x 15.2.0-2ubuntu1 [79.3 MB] 870s Get:16 http://ftpmaster.internal/ubuntu questing/main s390x gcc-15 s390x 15.2.0-2ubuntu1 [509 kB] 870s Get:17 http://ftpmaster.internal/ubuntu questing/main s390x gcc-s390x-linux-gnu s390x 4:15.1.0-1ubuntu1 [1210 B] 870s Get:18 http://ftpmaster.internal/ubuntu questing/main s390x gcc s390x 4:15.1.0-1ubuntu1 [5012 B] 870s Get:19 http://ftpmaster.internal/ubuntu questing/main s390x libstdc++-15-dev s390x 15.2.0-2ubuntu1 [2634 kB] 871s Get:20 http://ftpmaster.internal/ubuntu questing/main s390x g++-15-s390x-linux-gnu s390x 15.2.0-2ubuntu1 [77.6 MB] 917s Get:21 http://ftpmaster.internal/ubuntu questing/main s390x g++-15 s390x 15.2.0-2ubuntu1 [23.1 kB] 917s Get:22 http://ftpmaster.internal/ubuntu questing/main s390x g++-s390x-linux-gnu s390x 4:15.1.0-1ubuntu1 [960 B] 917s Get:23 http://ftpmaster.internal/ubuntu questing/main s390x g++ s390x 4:15.1.0-1ubuntu1 [1084 B] 917s Get:24 http://ftpmaster.internal/ubuntu questing-proposed/main s390x build-essential s390x 12.12ubuntu2 [5258 B] 917s Get:25 http://ftpmaster.internal/ubuntu questing/main s390x gir1.2-glib-2.0-dev s390x 2.85.3-1 [868 kB] 918s Get:26 http://ftpmaster.internal/ubuntu questing/main s390x native-architecture all 0.2.6 [2140 B] 918s Get:27 http://ftpmaster.internal/ubuntu questing/main s390x libgirepository-2.0-0 s390x 2.85.3-1 [76.1 kB] 918s Get:28 http://ftpmaster.internal/ubuntu questing/main s390x girepository-tools s390x 2.85.3-1 [115 kB] 918s Get:29 http://ftpmaster.internal/ubuntu questing/main s390x libffi-dev s390x 3.5.2-1 [60.4 kB] 918s Get:30 http://ftpmaster.internal/ubuntu questing/main s390x uuid-dev s390x 2.41-4ubuntu3 [55.6 kB] 918s Get:31 http://ftpmaster.internal/ubuntu questing/main s390x libblkid-dev s390x 2.41-4ubuntu3 [237 kB] 918s Get:32 http://ftpmaster.internal/ubuntu questing/main s390x libsepol-dev s390x 3.8.1-1 [415 kB] 918s Get:33 http://ftpmaster.internal/ubuntu questing/main s390x libpcre2-16-0 s390x 10.46-1 [260 kB] 918s Get:34 http://ftpmaster.internal/ubuntu questing/main s390x libpcre2-32-0 s390x 10.46-1 [245 kB] 918s Get:35 http://ftpmaster.internal/ubuntu questing/main s390x libpcre2-posix3 s390x 10.46-1 [7226 B] 918s Get:36 http://ftpmaster.internal/ubuntu questing/main s390x libpcre2-dev s390x 10.46-1 [900 kB] 918s Get:37 http://ftpmaster.internal/ubuntu questing/main s390x libselinux1-dev s390x 3.8.1-1 [178 kB] 919s Get:38 http://ftpmaster.internal/ubuntu questing/main s390x libmount-dev s390x 2.41-4ubuntu3 [36.2 kB] 919s Get:39 http://ftpmaster.internal/ubuntu questing/main s390x libsysprof-capture-4-dev s390x 48.0-2 [52.0 kB] 919s Get:40 http://ftpmaster.internal/ubuntu questing/main s390x libpkgconf3 s390x 1.8.1-4 [31.2 kB] 919s Get:41 http://ftpmaster.internal/ubuntu questing/main s390x pkgconf-bin s390x 1.8.1-4 [21.5 kB] 919s Get:42 http://ftpmaster.internal/ubuntu questing/main s390x pkgconf s390x 1.8.1-4 [16.7 kB] 919s Get:43 http://ftpmaster.internal/ubuntu questing/main s390x zlib1g-dev s390x 1:1.3.dfsg+really1.3.1-1ubuntu1 [898 kB] 919s Get:44 http://ftpmaster.internal/ubuntu questing/main s390x libgio-2.0-dev s390x 2.85.3-1 [1830 kB] 920s Get:45 http://ftpmaster.internal/ubuntu questing/main s390x libgio-2.0-dev-bin s390x 2.85.3-1 [129 kB] 920s Get:46 http://ftpmaster.internal/ubuntu questing/main s390x libglib2.0-bin s390x 2.85.3-1 [99.6 kB] 920s Get:47 http://ftpmaster.internal/ubuntu questing/main s390x libglib2.0-dev-bin s390x 2.85.3-1 [18.2 kB] 920s Get:48 http://ftpmaster.internal/ubuntu questing/main s390x libglib2.0-dev s390x 2.85.3-1 [18.9 kB] 920s Fetched 248 MB in 3min 19s (1243 kB/s) 920s Selecting previously unselected package rust-coreutils. 920s (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 ... 85685 files and directories currently installed.) 920s Preparing to unpack .../rust-coreutils_0.1.0+git20250813.4af2a84-0ubuntu2_s390x.deb ... 920s Unpacking rust-coreutils (0.1.0+git20250813.4af2a84-0ubuntu2) ... 920s Setting up rust-coreutils (0.1.0+git20250813.4af2a84-0ubuntu2) ... 920s dpkg: coreutils-from-gnu: dependency problems, but removing anyway as you requested: 920s coreutils depends on coreutils-from-gnu | coreutils-from-uutils; however: 920s Package coreutils-from-gnu is to be removed. 920s Package coreutils-from-uutils is not installed. 920s 920s (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 ... 86418 files and directories currently installed.) 920s Removing coreutils-from-gnu (0.0.0~ubuntu20) ... 920s Adding 'diversion of /usr/bin/[ to /usr/bin/[.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/arch to /usr/bin/arch.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/b2sum to /usr/bin/b2sum.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/base32 to /usr/bin/base32.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/base64 to /usr/bin/base64.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/basename to /usr/bin/basename.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/basenc to /usr/bin/basenc.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/cat to /usr/bin/cat.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/chcon to /usr/bin/chcon.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/chgrp to /usr/bin/chgrp.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/chmod to /usr/bin/chmod.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/chown to /usr/bin/chown.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/cksum to /usr/bin/cksum.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/comm to /usr/bin/comm.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/cp to /usr/bin/cp.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/csplit to /usr/bin/csplit.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/cut to /usr/bin/cut.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/date to /usr/bin/date.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/dd to /usr/bin/dd.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/df to /usr/bin/df.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/dir to /usr/bin/dir.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/dircolors to /usr/bin/dircolors.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/dirname to /usr/bin/dirname.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/du to /usr/bin/du.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/echo to /usr/bin/echo.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/env to /usr/bin/env.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/expand to /usr/bin/expand.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/expr to /usr/bin/expr.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/factor to /usr/bin/factor.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/false to /usr/bin/false.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/fmt to /usr/bin/fmt.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/fold to /usr/bin/fold.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/groups to /usr/bin/groups.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/head to /usr/bin/head.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/hostid to /usr/bin/hostid.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/id to /usr/bin/id.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/install to /usr/bin/install.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/join to /usr/bin/join.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/link to /usr/bin/link.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/ln to /usr/bin/ln.remove-bak by coreutils-switch' 920s Adding 'diversion of /usr/bin/logname to /usr/bin/logname.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/ls to /usr/bin/ls.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/md5sum to /usr/bin/md5sum.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/mkdir to /usr/bin/mkdir.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/mkfifo to /usr/bin/mkfifo.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/mknod to /usr/bin/mknod.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/mktemp to /usr/bin/mktemp.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/mv to /usr/bin/mv.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/nice to /usr/bin/nice.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/nl to /usr/bin/nl.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/nohup to /usr/bin/nohup.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/nproc to /usr/bin/nproc.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/numfmt to /usr/bin/numfmt.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/od to /usr/bin/od.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/paste to /usr/bin/paste.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/pathchk to /usr/bin/pathchk.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/pinky to /usr/bin/pinky.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/pr to /usr/bin/pr.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/printenv to /usr/bin/printenv.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/printf to /usr/bin/printf.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/ptx to /usr/bin/ptx.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/pwd to /usr/bin/pwd.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/readlink to /usr/bin/readlink.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/realpath to /usr/bin/realpath.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/rm to /usr/bin/rm.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/rmdir to /usr/bin/rmdir.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/runcon to /usr/bin/runcon.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/seq to /usr/bin/seq.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/sha1sum to /usr/bin/sha1sum.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/sha224sum to /usr/bin/sha224sum.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/sha256sum to /usr/bin/sha256sum.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/sha384sum to /usr/bin/sha384sum.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/sha512sum to /usr/bin/sha512sum.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/shred to /usr/bin/shred.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/shuf to /usr/bin/shuf.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/sleep to /usr/bin/sleep.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/sort to /usr/bin/sort.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/split to /usr/bin/split.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/stat to /usr/bin/stat.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/stdbuf to /usr/bin/stdbuf.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/stty to /usr/bin/stty.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/sum to /usr/bin/sum.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/sync to /usr/bin/sync.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/tac to /usr/bin/tac.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/tail to /usr/bin/tail.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/tee to /usr/bin/tee.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/test to /usr/bin/test.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/timeout to /usr/bin/timeout.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/touch to /usr/bin/touch.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/tr to /usr/bin/tr.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/true to /usr/bin/true.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/truncate to /usr/bin/truncate.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/tsort to /usr/bin/tsort.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/tty to /usr/bin/tty.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/uname to /usr/bin/uname.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/unexpand to /usr/bin/unexpand.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/uniq to /usr/bin/uniq.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/unlink to /usr/bin/unlink.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/users to /usr/bin/users.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/vdir to /usr/bin/vdir.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/wc to /usr/bin/wc.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/who to /usr/bin/who.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/whoami to /usr/bin/whoami.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/bin/yes to /usr/bin/yes.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/sbin/chroot to /usr/sbin/chroot.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/arch.1.gz to /usr/share/man/man1/arch.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/b2sum.1.gz to /usr/share/man/man1/b2sum.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/base32.1.gz to /usr/share/man/man1/base32.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/base64.1.gz to /usr/share/man/man1/base64.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/basename.1.gz to /usr/share/man/man1/basename.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/basenc.1.gz to /usr/share/man/man1/basenc.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/cat.1.gz to /usr/share/man/man1/cat.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/chcon.1.gz to /usr/share/man/man1/chcon.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/chgrp.1.gz to /usr/share/man/man1/chgrp.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/chmod.1.gz to /usr/share/man/man1/chmod.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/chown.1.gz to /usr/share/man/man1/chown.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/cksum.1.gz to /usr/share/man/man1/cksum.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/comm.1.gz to /usr/share/man/man1/comm.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/cp.1.gz to /usr/share/man/man1/cp.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/csplit.1.gz to /usr/share/man/man1/csplit.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/cut.1.gz to /usr/share/man/man1/cut.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/date.1.gz to /usr/share/man/man1/date.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/dd.1.gz to /usr/share/man/man1/dd.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/df.1.gz to /usr/share/man/man1/df.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/dir.1.gz to /usr/share/man/man1/dir.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/dircolors.1.gz to /usr/share/man/man1/dircolors.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/dirname.1.gz to /usr/share/man/man1/dirname.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/du.1.gz to /usr/share/man/man1/du.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/echo.1.gz to /usr/share/man/man1/echo.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/env.1.gz to /usr/share/man/man1/env.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/expand.1.gz to /usr/share/man/man1/expand.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/expr.1.gz to /usr/share/man/man1/expr.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/factor.1.gz to /usr/share/man/man1/factor.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/false.1.gz to /usr/share/man/man1/false.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/fmt.1.gz to /usr/share/man/man1/fmt.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/fold.1.gz to /usr/share/man/man1/fold.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/groups.1.gz to /usr/share/man/man1/groups.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/head.1.gz to /usr/share/man/man1/head.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/hostid.1.gz to /usr/share/man/man1/hostid.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/id.1.gz to /usr/share/man/man1/id.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/install.1.gz to /usr/share/man/man1/install.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/join.1.gz to /usr/share/man/man1/join.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/link.1.gz to /usr/share/man/man1/link.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/ln.1.gz to /usr/share/man/man1/ln.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/logname.1.gz to /usr/share/man/man1/logname.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/ls.1.gz to /usr/share/man/man1/ls.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/md5sum.1.gz to /usr/share/man/man1/md5sum.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/mkdir.1.gz to /usr/share/man/man1/mkdir.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/mkfifo.1.gz to /usr/share/man/man1/mkfifo.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/mknod.1.gz to /usr/share/man/man1/mknod.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/mktemp.1.gz to /usr/share/man/man1/mktemp.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/mv.1.gz to /usr/share/man/man1/mv.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/nice.1.gz to /usr/share/man/man1/nice.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/nl.1.gz to /usr/share/man/man1/nl.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/nohup.1.gz to /usr/share/man/man1/nohup.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/nproc.1.gz to /usr/share/man/man1/nproc.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/numfmt.1.gz to /usr/share/man/man1/numfmt.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/od.1.gz to /usr/share/man/man1/od.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/paste.1.gz to /usr/share/man/man1/paste.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/pathchk.1.gz to /usr/share/man/man1/pathchk.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/pinky.1.gz to /usr/share/man/man1/pinky.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/pr.1.gz to /usr/share/man/man1/pr.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/printenv.1.gz to /usr/share/man/man1/printenv.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/printf.1.gz to /usr/share/man/man1/printf.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/ptx.1.gz to /usr/share/man/man1/ptx.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/pwd.1.gz to /usr/share/man/man1/pwd.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/readlink.1.gz to /usr/share/man/man1/readlink.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/realpath.1.gz to /usr/share/man/man1/realpath.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/rm.1.gz to /usr/share/man/man1/rm.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/rmdir.1.gz to /usr/share/man/man1/rmdir.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/runcon.1.gz to /usr/share/man/man1/runcon.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/seq.1.gz to /usr/share/man/man1/seq.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/sha1sum.1.gz to /usr/share/man/man1/sha1sum.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/sha224sum.1.gz to /usr/share/man/man1/sha224sum.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/sha256sum.1.gz to /usr/share/man/man1/sha256sum.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/sha384sum.1.gz to /usr/share/man/man1/sha384sum.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/sha512sum.1.gz to /usr/share/man/man1/sha512sum.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/shred.1.gz to /usr/share/man/man1/shred.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/shuf.1.gz to /usr/share/man/man1/shuf.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/sleep.1.gz to /usr/share/man/man1/sleep.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/sort.1.gz to /usr/share/man/man1/sort.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/split.1.gz to /usr/share/man/man1/split.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/stat.1.gz to /usr/share/man/man1/stat.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/stdbuf.1.gz to /usr/share/man/man1/stdbuf.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/stty.1.gz to /usr/share/man/man1/stty.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/sum.1.gz to /usr/share/man/man1/sum.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/sync.1.gz to /usr/share/man/man1/sync.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/tac.1.gz to /usr/share/man/man1/tac.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/tail.1.gz to /usr/share/man/man1/tail.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/tee.1.gz to /usr/share/man/man1/tee.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/test.1.gz to /usr/share/man/man1/test.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/timeout.1.gz to /usr/share/man/man1/timeout.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/touch.1.gz to /usr/share/man/man1/touch.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/tr.1.gz to /usr/share/man/man1/tr.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/true.1.gz to /usr/share/man/man1/true.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/truncate.1.gz to /usr/share/man/man1/truncate.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/tsort.1.gz to /usr/share/man/man1/tsort.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/tty.1.gz to /usr/share/man/man1/tty.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/uname.1.gz to /usr/share/man/man1/uname.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/unexpand.1.gz to /usr/share/man/man1/unexpand.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/uniq.1.gz to /usr/share/man/man1/uniq.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/unlink.1.gz to /usr/share/man/man1/unlink.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/users.1.gz to /usr/share/man/man1/users.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/vdir.1.gz to /usr/share/man/man1/vdir.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/wc.1.gz to /usr/share/man/man1/wc.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/who.1.gz to /usr/share/man/man1/who.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/whoami.1.gz to /usr/share/man/man1/whoami.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man1/yes.1.gz to /usr/share/man/man1/yes.1.gz.remove-bak by coreutils-switch' 921s Adding 'diversion of /usr/share/man/man8/chroot.8.gz to /usr/share/man/man8/chroot.8.gz.remove-bak by coreutils-switch' 922s Adding 'diversion of /usr/share/man/man1/[.1.gz to /usr/share/man/man1/[.1.gz.remove-bak by coreutils-switch' 922s Selecting previously unselected package coreutils-from-uutils. 922s (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 ... 86627 files and directories currently installed.) 922s Preparing to unpack .../coreutils-from-uutils_0.0.0~ubuntu20_all.deb ... 922s Removing 'diversion of /usr/bin/[ to /usr/bin/[.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/arch to /usr/bin/arch.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/b2sum to /usr/bin/b2sum.remove-bak by coreutils-switch' 922s No diversion 'diversion of /usr/bin/b3sum to /usr/bin/b3sum.remove-bak by coreutils-switch', none removed. 922s Removing 'diversion of /usr/bin/base32 to /usr/bin/base32.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/base64 to /usr/bin/base64.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/basename to /usr/bin/basename.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/basenc to /usr/bin/basenc.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/cat to /usr/bin/cat.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/chcon to /usr/bin/chcon.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/chgrp to /usr/bin/chgrp.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/chmod to /usr/bin/chmod.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/chown to /usr/bin/chown.remove-bak by coreutils-switch' 922s No diversion 'diversion of /usr/bin/chroot to /usr/bin/chroot.remove-bak by coreutils-switch', none removed. 922s Removing 'diversion of /usr/bin/cksum to /usr/bin/cksum.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/comm to /usr/bin/comm.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/cp to /usr/bin/cp.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/csplit to /usr/bin/csplit.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/cut to /usr/bin/cut.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/date to /usr/bin/date.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/dd to /usr/bin/dd.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/df to /usr/bin/df.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/dir to /usr/bin/dir.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/dircolors to /usr/bin/dircolors.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/dirname to /usr/bin/dirname.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/du to /usr/bin/du.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/echo to /usr/bin/echo.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/env to /usr/bin/env.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/expand to /usr/bin/expand.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/expr to /usr/bin/expr.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/factor to /usr/bin/factor.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/false to /usr/bin/false.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/fmt to /usr/bin/fmt.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/fold to /usr/bin/fold.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/groups to /usr/bin/groups.remove-bak by coreutils-switch' 922s No diversion 'diversion of /usr/bin/hashsum to /usr/bin/hashsum.remove-bak by coreutils-switch', none removed. 922s Removing 'diversion of /usr/bin/head to /usr/bin/head.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/hostid to /usr/bin/hostid.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/id to /usr/bin/id.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/install to /usr/bin/install.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/join to /usr/bin/join.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/link to /usr/bin/link.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/ln to /usr/bin/ln.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/logname to /usr/bin/logname.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/ls to /usr/bin/ls.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/md5sum to /usr/bin/md5sum.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/mkdir to /usr/bin/mkdir.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/mkfifo to /usr/bin/mkfifo.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/mknod to /usr/bin/mknod.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/mktemp to /usr/bin/mktemp.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/mv to /usr/bin/mv.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/nice to /usr/bin/nice.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/nl to /usr/bin/nl.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/nohup to /usr/bin/nohup.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/nproc to /usr/bin/nproc.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/numfmt to /usr/bin/numfmt.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/od to /usr/bin/od.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/paste to /usr/bin/paste.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/pathchk to /usr/bin/pathchk.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/pinky to /usr/bin/pinky.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/pr to /usr/bin/pr.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/printenv to /usr/bin/printenv.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/printf to /usr/bin/printf.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/ptx to /usr/bin/ptx.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/pwd to /usr/bin/pwd.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/readlink to /usr/bin/readlink.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/realpath to /usr/bin/realpath.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/rm to /usr/bin/rm.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/rmdir to /usr/bin/rmdir.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/runcon to /usr/bin/runcon.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/seq to /usr/bin/seq.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/sha1sum to /usr/bin/sha1sum.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/sha224sum to /usr/bin/sha224sum.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/sha256sum to /usr/bin/sha256sum.remove-bak by coreutils-switch' 922s No diversion 'diversion of /usr/bin/sha3-224sum to /usr/bin/sha3-224sum.remove-bak by coreutils-switch', none removed. 922s No diversion 'diversion of /usr/bin/sha3-256sum to /usr/bin/sha3-256sum.remove-bak by coreutils-switch', none removed. 922s No diversion 'diversion of /usr/bin/sha3-384sum to /usr/bin/sha3-384sum.remove-bak by coreutils-switch', none removed. 922s No diversion 'diversion of /usr/bin/sha3-512sum to /usr/bin/sha3-512sum.remove-bak by coreutils-switch', none removed. 922s Removing 'diversion of /usr/bin/sha384sum to /usr/bin/sha384sum.remove-bak by coreutils-switch' 922s No diversion 'diversion of /usr/bin/sha3sum to /usr/bin/sha3sum.remove-bak by coreutils-switch', none removed. 922s Removing 'diversion of /usr/bin/sha512sum to /usr/bin/sha512sum.remove-bak by coreutils-switch' 922s No diversion 'diversion of /usr/bin/shake128sum to /usr/bin/shake128sum.remove-bak by coreutils-switch', none removed. 922s No diversion 'diversion of /usr/bin/shake256sum to /usr/bin/shake256sum.remove-bak by coreutils-switch', none removed. 922s Removing 'diversion of /usr/bin/shred to /usr/bin/shred.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/shuf to /usr/bin/shuf.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/sleep to /usr/bin/sleep.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/sort to /usr/bin/sort.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/split to /usr/bin/split.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/stat to /usr/bin/stat.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/stty to /usr/bin/stty.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/sum to /usr/bin/sum.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/sync to /usr/bin/sync.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/tac to /usr/bin/tac.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/tail to /usr/bin/tail.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/tee to /usr/bin/tee.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/test to /usr/bin/test.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/timeout to /usr/bin/timeout.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/touch to /usr/bin/touch.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/tr to /usr/bin/tr.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/true to /usr/bin/true.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/truncate to /usr/bin/truncate.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/tsort to /usr/bin/tsort.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/tty to /usr/bin/tty.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/uname to /usr/bin/uname.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/unexpand to /usr/bin/unexpand.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/uniq to /usr/bin/uniq.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/unlink to /usr/bin/unlink.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/users to /usr/bin/users.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/vdir to /usr/bin/vdir.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/wc to /usr/bin/wc.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/who to /usr/bin/who.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/whoami to /usr/bin/whoami.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/bin/yes to /usr/bin/yes.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/arch.1.gz to /usr/share/man/man1/arch.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/base32.1.gz to /usr/share/man/man1/base32.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/base64.1.gz to /usr/share/man/man1/base64.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/basename.1.gz to /usr/share/man/man1/basename.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/basenc.1.gz to /usr/share/man/man1/basenc.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/cat.1.gz to /usr/share/man/man1/cat.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/chcon.1.gz to /usr/share/man/man1/chcon.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/chgrp.1.gz to /usr/share/man/man1/chgrp.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/chmod.1.gz to /usr/share/man/man1/chmod.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/chown.1.gz to /usr/share/man/man1/chown.1.gz.remove-bak by coreutils-switch' 922s No diversion 'diversion of /usr/share/man/man1/chroot.1.gz to /usr/share/man/man1/chroot.1.gz.remove-bak by coreutils-switch', none removed. 922s Removing 'diversion of /usr/share/man/man1/cksum.1.gz to /usr/share/man/man1/cksum.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/comm.1.gz to /usr/share/man/man1/comm.1.gz.remove-bak by coreutils-switch' 922s No diversion 'diversion of /usr/share/man/man1/coreutils.1.gz to /usr/share/man/man1/coreutils.1.gz.remove-bak by coreutils-switch', none removed. 922s Removing 'diversion of /usr/share/man/man1/cp.1.gz to /usr/share/man/man1/cp.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/csplit.1.gz to /usr/share/man/man1/csplit.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/cut.1.gz to /usr/share/man/man1/cut.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/date.1.gz to /usr/share/man/man1/date.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/dd.1.gz to /usr/share/man/man1/dd.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/df.1.gz to /usr/share/man/man1/df.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/dir.1.gz to /usr/share/man/man1/dir.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/dircolors.1.gz to /usr/share/man/man1/dircolors.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/dirname.1.gz to /usr/share/man/man1/dirname.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/du.1.gz to /usr/share/man/man1/du.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/echo.1.gz to /usr/share/man/man1/echo.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/env.1.gz to /usr/share/man/man1/env.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/expand.1.gz to /usr/share/man/man1/expand.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/expr.1.gz to /usr/share/man/man1/expr.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/factor.1.gz to /usr/share/man/man1/factor.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/false.1.gz to /usr/share/man/man1/false.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/fmt.1.gz to /usr/share/man/man1/fmt.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/fold.1.gz to /usr/share/man/man1/fold.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/groups.1.gz to /usr/share/man/man1/groups.1.gz.remove-bak by coreutils-switch' 922s No diversion 'diversion of /usr/share/man/man1/hashsum.1.gz to /usr/share/man/man1/hashsum.1.gz.remove-bak by coreutils-switch', none removed. 922s Removing 'diversion of /usr/share/man/man1/head.1.gz to /usr/share/man/man1/head.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/hostid.1.gz to /usr/share/man/man1/hostid.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/id.1.gz to /usr/share/man/man1/id.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/install.1.gz to /usr/share/man/man1/install.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/join.1.gz to /usr/share/man/man1/join.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/link.1.gz to /usr/share/man/man1/link.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/ln.1.gz to /usr/share/man/man1/ln.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/logname.1.gz to /usr/share/man/man1/logname.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/ls.1.gz to /usr/share/man/man1/ls.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/mkdir.1.gz to /usr/share/man/man1/mkdir.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/mkfifo.1.gz to /usr/share/man/man1/mkfifo.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/mknod.1.gz to /usr/share/man/man1/mknod.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/mktemp.1.gz to /usr/share/man/man1/mktemp.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/mv.1.gz to /usr/share/man/man1/mv.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/nice.1.gz to /usr/share/man/man1/nice.1.gz.remove-bak by coreutils-switch' 922s Removing 'diversion of /usr/share/man/man1/nl.1.gz to /usr/share/man/man1/nl.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/nohup.1.gz to /usr/share/man/man1/nohup.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/nproc.1.gz to /usr/share/man/man1/nproc.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/numfmt.1.gz to /usr/share/man/man1/numfmt.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/od.1.gz to /usr/share/man/man1/od.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/paste.1.gz to /usr/share/man/man1/paste.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/pathchk.1.gz to /usr/share/man/man1/pathchk.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/pinky.1.gz to /usr/share/man/man1/pinky.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/pr.1.gz to /usr/share/man/man1/pr.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/printenv.1.gz to /usr/share/man/man1/printenv.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/printf.1.gz to /usr/share/man/man1/printf.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/ptx.1.gz to /usr/share/man/man1/ptx.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/pwd.1.gz to /usr/share/man/man1/pwd.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/readlink.1.gz to /usr/share/man/man1/readlink.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/realpath.1.gz to /usr/share/man/man1/realpath.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/rm.1.gz to /usr/share/man/man1/rm.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/rmdir.1.gz to /usr/share/man/man1/rmdir.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/runcon.1.gz to /usr/share/man/man1/runcon.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/seq.1.gz to /usr/share/man/man1/seq.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/shred.1.gz to /usr/share/man/man1/shred.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/shuf.1.gz to /usr/share/man/man1/shuf.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/sleep.1.gz to /usr/share/man/man1/sleep.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/sort.1.gz to /usr/share/man/man1/sort.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/split.1.gz to /usr/share/man/man1/split.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/stat.1.gz to /usr/share/man/man1/stat.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/stty.1.gz to /usr/share/man/man1/stty.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/sum.1.gz to /usr/share/man/man1/sum.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/sync.1.gz to /usr/share/man/man1/sync.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/tac.1.gz to /usr/share/man/man1/tac.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/tail.1.gz to /usr/share/man/man1/tail.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/tee.1.gz to /usr/share/man/man1/tee.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/test.1.gz to /usr/share/man/man1/test.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/timeout.1.gz to /usr/share/man/man1/timeout.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/touch.1.gz to /usr/share/man/man1/touch.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/tr.1.gz to /usr/share/man/man1/tr.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/true.1.gz to /usr/share/man/man1/true.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/truncate.1.gz to /usr/share/man/man1/truncate.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/tsort.1.gz to /usr/share/man/man1/tsort.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/tty.1.gz to /usr/share/man/man1/tty.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/uname.1.gz to /usr/share/man/man1/uname.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/unexpand.1.gz to /usr/share/man/man1/unexpand.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/uniq.1.gz to /usr/share/man/man1/uniq.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/unlink.1.gz to /usr/share/man/man1/unlink.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/users.1.gz to /usr/share/man/man1/users.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/vdir.1.gz to /usr/share/man/man1/vdir.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/wc.1.gz to /usr/share/man/man1/wc.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/who.1.gz to /usr/share/man/man1/who.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/whoami.1.gz to /usr/share/man/man1/whoami.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/yes.1.gz to /usr/share/man/man1/yes.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/[.1.gz to /usr/share/man/man1/[.1.gz.remove-bak by coreutils-switch' 923s Unpacking coreutils-from-uutils (0.0.0~ubuntu20) ... 923s Setting up coreutils-from-uutils (0.0.0~ubuntu20) ... 923s Removing 'diversion of /usr/share/man/man1/sha512sum.1.gz to /usr/share/man/man1/sha512sum.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/sha1sum.1.gz to /usr/share/man/man1/sha1sum.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/sha384sum.1.gz to /usr/share/man/man1/sha384sum.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/b2sum.1.gz to /usr/share/man/man1/b2sum.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/sha256sum.1.gz to /usr/share/man/man1/sha256sum.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/sbin/chroot to /usr/sbin/chroot.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/bin/stdbuf to /usr/bin/stdbuf.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/stdbuf.1.gz to /usr/share/man/man1/stdbuf.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/sha224sum.1.gz to /usr/share/man/man1/sha224sum.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man1/md5sum.1.gz to /usr/share/man/man1/md5sum.1.gz.remove-bak by coreutils-switch' 923s Removing 'diversion of /usr/share/man/man8/chroot.8.gz to /usr/share/man/man8/chroot.8.gz.remove-bak by coreutils-switch' 923s Selecting previously unselected package libisl23:s390x. 923s (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 ... 86422 files and directories currently installed.) 923s Preparing to unpack .../00-libisl23_0.27-1_s390x.deb ... 923s Unpacking libisl23:s390x (0.27-1) ... 923s Selecting previously unselected package libmpc3:s390x. 923s Preparing to unpack .../01-libmpc3_1.3.1-1build3_s390x.deb ... 923s Unpacking libmpc3:s390x (1.3.1-1build3) ... 923s Selecting previously unselected package cpp-15-s390x-linux-gnu. 923s Preparing to unpack .../02-cpp-15-s390x-linux-gnu_15.2.0-2ubuntu1_s390x.deb ... 923s Unpacking cpp-15-s390x-linux-gnu (15.2.0-2ubuntu1) ... 924s Selecting previously unselected package cpp-15. 924s Preparing to unpack .../03-cpp-15_15.2.0-2ubuntu1_s390x.deb ... 924s Unpacking cpp-15 (15.2.0-2ubuntu1) ... 924s Selecting previously unselected package cpp-s390x-linux-gnu. 924s Preparing to unpack .../04-cpp-s390x-linux-gnu_4%3a15.1.0-1ubuntu1_s390x.deb ... 924s Unpacking cpp-s390x-linux-gnu (4:15.1.0-1ubuntu1) ... 924s Selecting previously unselected package cpp. 924s Preparing to unpack .../05-cpp_4%3a15.1.0-1ubuntu1_s390x.deb ... 924s Unpacking cpp (4:15.1.0-1ubuntu1) ... 924s Selecting previously unselected package libcc1-0:s390x. 924s Preparing to unpack .../06-libcc1-0_15.2.0-2ubuntu1_s390x.deb ... 924s Unpacking libcc1-0:s390x (15.2.0-2ubuntu1) ... 924s Selecting previously unselected package libgomp1:s390x. 924s Preparing to unpack .../07-libgomp1_15.2.0-2ubuntu1_s390x.deb ... 924s Unpacking libgomp1:s390x (15.2.0-2ubuntu1) ... 924s Selecting previously unselected package libitm1:s390x. 924s Preparing to unpack .../08-libitm1_15.2.0-2ubuntu1_s390x.deb ... 924s Unpacking libitm1:s390x (15.2.0-2ubuntu1) ... 924s Selecting previously unselected package libasan8:s390x. 924s Preparing to unpack .../09-libasan8_15.2.0-2ubuntu1_s390x.deb ... 924s Unpacking libasan8:s390x (15.2.0-2ubuntu1) ... 924s Selecting previously unselected package libubsan1:s390x. 924s Preparing to unpack .../10-libubsan1_15.2.0-2ubuntu1_s390x.deb ... 924s Unpacking libubsan1:s390x (15.2.0-2ubuntu1) ... 924s Selecting previously unselected package libgcc-15-dev:s390x. 924s Preparing to unpack .../11-libgcc-15-dev_15.2.0-2ubuntu1_s390x.deb ... 924s Unpacking libgcc-15-dev:s390x (15.2.0-2ubuntu1) ... 924s Selecting previously unselected package gcc-15-s390x-linux-gnu. 924s Preparing to unpack .../12-gcc-15-s390x-linux-gnu_15.2.0-2ubuntu1_s390x.deb ... 924s Unpacking gcc-15-s390x-linux-gnu (15.2.0-2ubuntu1) ... 926s Selecting previously unselected package gcc-15. 926s Preparing to unpack .../13-gcc-15_15.2.0-2ubuntu1_s390x.deb ... 926s Unpacking gcc-15 (15.2.0-2ubuntu1) ... 926s Selecting previously unselected package gcc-s390x-linux-gnu. 926s Preparing to unpack .../14-gcc-s390x-linux-gnu_4%3a15.1.0-1ubuntu1_s390x.deb ... 926s Unpacking gcc-s390x-linux-gnu (4:15.1.0-1ubuntu1) ... 926s Selecting previously unselected package gcc. 926s Preparing to unpack .../15-gcc_4%3a15.1.0-1ubuntu1_s390x.deb ... 926s Unpacking gcc (4:15.1.0-1ubuntu1) ... 926s Selecting previously unselected package libstdc++-15-dev:s390x. 926s Preparing to unpack .../16-libstdc++-15-dev_15.2.0-2ubuntu1_s390x.deb ... 926s Unpacking libstdc++-15-dev:s390x (15.2.0-2ubuntu1) ... 926s Selecting previously unselected package g++-15-s390x-linux-gnu. 926s Preparing to unpack .../17-g++-15-s390x-linux-gnu_15.2.0-2ubuntu1_s390x.deb ... 926s Unpacking g++-15-s390x-linux-gnu (15.2.0-2ubuntu1) ... 927s Selecting previously unselected package g++-15. 927s Preparing to unpack .../18-g++-15_15.2.0-2ubuntu1_s390x.deb ... 927s Unpacking g++-15 (15.2.0-2ubuntu1) ... 927s Selecting previously unselected package g++-s390x-linux-gnu. 927s Preparing to unpack .../19-g++-s390x-linux-gnu_4%3a15.1.0-1ubuntu1_s390x.deb ... 927s Unpacking g++-s390x-linux-gnu (4:15.1.0-1ubuntu1) ... 927s Selecting previously unselected package g++. 927s Preparing to unpack .../20-g++_4%3a15.1.0-1ubuntu1_s390x.deb ... 927s Unpacking g++ (4:15.1.0-1ubuntu1) ... 927s Selecting previously unselected package build-essential. 927s Preparing to unpack .../21-build-essential_12.12ubuntu2_s390x.deb ... 927s Unpacking build-essential (12.12ubuntu2) ... 927s Selecting previously unselected package gir1.2-glib-2.0-dev:s390x. 927s Preparing to unpack .../22-gir1.2-glib-2.0-dev_2.85.3-1_s390x.deb ... 927s Unpacking gir1.2-glib-2.0-dev:s390x (2.85.3-1) ... 927s Selecting previously unselected package native-architecture. 927s Preparing to unpack .../23-native-architecture_0.2.6_all.deb ... 927s Unpacking native-architecture (0.2.6) ... 927s Selecting previously unselected package libgirepository-2.0-0:s390x. 927s Preparing to unpack .../24-libgirepository-2.0-0_2.85.3-1_s390x.deb ... 927s Unpacking libgirepository-2.0-0:s390x (2.85.3-1) ... 927s Selecting previously unselected package girepository-tools:s390x. 927s Preparing to unpack .../25-girepository-tools_2.85.3-1_s390x.deb ... 927s Unpacking girepository-tools:s390x (2.85.3-1) ... 927s Selecting previously unselected package libffi-dev:s390x. 927s Preparing to unpack .../26-libffi-dev_3.5.2-1_s390x.deb ... 927s Unpacking libffi-dev:s390x (3.5.2-1) ... 927s Selecting previously unselected package uuid-dev:s390x. 927s Preparing to unpack .../27-uuid-dev_2.41-4ubuntu3_s390x.deb ... 927s Unpacking uuid-dev:s390x (2.41-4ubuntu3) ... 927s Selecting previously unselected package libblkid-dev:s390x. 927s Preparing to unpack .../28-libblkid-dev_2.41-4ubuntu3_s390x.deb ... 927s Unpacking libblkid-dev:s390x (2.41-4ubuntu3) ... 927s Selecting previously unselected package libsepol-dev:s390x. 927s Preparing to unpack .../29-libsepol-dev_3.8.1-1_s390x.deb ... 927s Unpacking libsepol-dev:s390x (3.8.1-1) ... 927s Selecting previously unselected package libpcre2-16-0:s390x. 927s Preparing to unpack .../30-libpcre2-16-0_10.46-1_s390x.deb ... 927s Unpacking libpcre2-16-0:s390x (10.46-1) ... 927s Selecting previously unselected package libpcre2-32-0:s390x. 927s Preparing to unpack .../31-libpcre2-32-0_10.46-1_s390x.deb ... 927s Unpacking libpcre2-32-0:s390x (10.46-1) ... 927s Selecting previously unselected package libpcre2-posix3:s390x. 927s Preparing to unpack .../32-libpcre2-posix3_10.46-1_s390x.deb ... 927s Unpacking libpcre2-posix3:s390x (10.46-1) ... 927s Selecting previously unselected package libpcre2-dev:s390x. 927s Preparing to unpack .../33-libpcre2-dev_10.46-1_s390x.deb ... 927s Unpacking libpcre2-dev:s390x (10.46-1) ... 927s Selecting previously unselected package libselinux1-dev:s390x. 927s Preparing to unpack .../34-libselinux1-dev_3.8.1-1_s390x.deb ... 927s Unpacking libselinux1-dev:s390x (3.8.1-1) ... 927s Selecting previously unselected package libmount-dev:s390x. 927s Preparing to unpack .../35-libmount-dev_2.41-4ubuntu3_s390x.deb ... 927s Unpacking libmount-dev:s390x (2.41-4ubuntu3) ... 927s Selecting previously unselected package libsysprof-capture-4-dev:s390x. 927s Preparing to unpack .../36-libsysprof-capture-4-dev_48.0-2_s390x.deb ... 927s Unpacking libsysprof-capture-4-dev:s390x (48.0-2) ... 927s Selecting previously unselected package libpkgconf3:s390x. 927s Preparing to unpack .../37-libpkgconf3_1.8.1-4_s390x.deb ... 927s Unpacking libpkgconf3:s390x (1.8.1-4) ... 927s Selecting previously unselected package pkgconf-bin. 927s Preparing to unpack .../38-pkgconf-bin_1.8.1-4_s390x.deb ... 927s Unpacking pkgconf-bin (1.8.1-4) ... 927s Selecting previously unselected package pkgconf:s390x. 927s Preparing to unpack .../39-pkgconf_1.8.1-4_s390x.deb ... 927s Unpacking pkgconf:s390x (1.8.1-4) ... 927s Selecting previously unselected package zlib1g-dev:s390x. 927s Preparing to unpack .../40-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_s390x.deb ... 927s Unpacking zlib1g-dev:s390x (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 927s Selecting previously unselected package libgio-2.0-dev:s390x. 927s Preparing to unpack .../41-libgio-2.0-dev_2.85.3-1_s390x.deb ... 927s Unpacking libgio-2.0-dev:s390x (2.85.3-1) ... 927s Selecting previously unselected package libgio-2.0-dev-bin. 927s Preparing to unpack .../42-libgio-2.0-dev-bin_2.85.3-1_s390x.deb ... 927s Unpacking libgio-2.0-dev-bin (2.85.3-1) ... 928s Selecting previously unselected package libglib2.0-bin. 928s Preparing to unpack .../43-libglib2.0-bin_2.85.3-1_s390x.deb ... 928s Unpacking libglib2.0-bin (2.85.3-1) ... 928s Selecting previously unselected package libglib2.0-dev-bin. 928s Preparing to unpack .../44-libglib2.0-dev-bin_2.85.3-1_s390x.deb ... 928s Unpacking libglib2.0-dev-bin (2.85.3-1) ... 928s Selecting previously unselected package libglib2.0-dev:s390x. 928s Preparing to unpack .../45-libglib2.0-dev_2.85.3-1_s390x.deb ... 928s Unpacking libglib2.0-dev:s390x (2.85.3-1) ... 928s Setting up libgio-2.0-dev-bin (2.85.3-1) ... 928s Setting up native-architecture (0.2.6) ... 928s Setting up libgirepository-2.0-0:s390x (2.85.3-1) ... 928s Setting up libglib2.0-bin (2.85.3-1) ... 928s Setting up libgomp1:s390x (15.2.0-2ubuntu1) ... 928s Setting up libffi-dev:s390x (3.5.2-1) ... 928s Setting up libpcre2-16-0:s390x (10.46-1) ... 928s Setting up libsysprof-capture-4-dev:s390x (48.0-2) ... 928s Setting up libpcre2-32-0:s390x (10.46-1) ... 928s Setting up libpkgconf3:s390x (1.8.1-4) ... 928s Setting up uuid-dev:s390x (2.41-4ubuntu3) ... 928s Setting up libmpc3:s390x (1.3.1-1build3) ... 928s Setting up libsepol-dev:s390x (3.8.1-1) ... 928s Setting up pkgconf-bin (1.8.1-4) ... 928s Setting up libubsan1:s390x (15.2.0-2ubuntu1) ... 928s Setting up zlib1g-dev:s390x (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 928s Setting up libpcre2-posix3:s390x (10.46-1) ... 928s Setting up gir1.2-glib-2.0-dev:s390x (2.85.3-1) ... 928s Setting up libasan8:s390x (15.2.0-2ubuntu1) ... 928s Setting up libisl23:s390x (0.27-1) ... 928s Setting up libcc1-0:s390x (15.2.0-2ubuntu1) ... 928s Setting up libitm1:s390x (15.2.0-2ubuntu1) ... 928s Setting up libblkid-dev:s390x (2.41-4ubuntu3) ... 928s Setting up girepository-tools:s390x (2.85.3-1) ... 928s Setting up libgcc-15-dev:s390x (15.2.0-2ubuntu1) ... 928s Setting up libpcre2-dev:s390x (10.46-1) ... 928s Setting up libselinux1-dev:s390x (3.8.1-1) ... 928s Setting up pkgconf:s390x (1.8.1-4) ... 928s Setting up libstdc++-15-dev:s390x (15.2.0-2ubuntu1) ... 928s Setting up cpp-15-s390x-linux-gnu (15.2.0-2ubuntu1) ... 928s Setting up libmount-dev:s390x (2.41-4ubuntu3) ... 928s Setting up gcc-15-s390x-linux-gnu (15.2.0-2ubuntu1) ... 928s Setting up g++-15-s390x-linux-gnu (15.2.0-2ubuntu1) ... 928s Setting up libglib2.0-dev-bin (2.85.3-1) ... 928s Setting up libgio-2.0-dev:s390x (2.85.3-1) ... 928s Setting up cpp-s390x-linux-gnu (4:15.1.0-1ubuntu1) ... 928s Setting up gcc-s390x-linux-gnu (4:15.1.0-1ubuntu1) ... 928s Setting up cpp-15 (15.2.0-2ubuntu1) ... 928s Setting up cpp (4:15.1.0-1ubuntu1) ... 928s Setting up g++-s390x-linux-gnu (4:15.1.0-1ubuntu1) ... 928s Setting up gcc-15 (15.2.0-2ubuntu1) ... 928s Setting up g++-15 (15.2.0-2ubuntu1) ... 928s Setting up gcc (4:15.1.0-1ubuntu1) ... 928s Setting up g++ (4:15.1.0-1ubuntu1) ... 928s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 928s Setting up build-essential (12.12ubuntu2) ... 928s Processing triggers for install-info (7.1.1-1) ... 928s Processing triggers for libc-bin (2.42-0ubuntu1) ... 928s Processing triggers for man-db (2.13.1-1) ... 929s Processing triggers for libglib2.0-0t64:s390x (2.85.3-1) ... 929s No schema files found: doing nothing. 929s Setting up libglib2.0-dev:s390x (2.85.3-1) ... 941s autopkgtest [19:14:29]: test libglib2.0-dev: [----------------------- 941s + debian/tests/build 941s + mode=dynamic 941s + getopt -o --long static -n debian/tests/build -- 941s + getopt_temp= -- 941s + eval set -- -- 941s + set -- -- 941s + true 941s + shift 941s + break 941s + mktemp -d 941s + WORKDIR=/tmp/tmp.gpPgpSihDH 941s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 941s + cd /tmp/tmp.gpPgpSihDH 941s + [ -n ] 941s + CROSS_COMPILE= 941s + cat 941s + cat 941s + cat 941s + cat 941s + cat 941s + cat 941s + cflags= 941s + pcflags= 941s + packages=glib-2.0 941s + pkg-config --cflags --libs glib-2.0 941s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 941s + echo build (glib, dynamic): OK 941s + [ -x glib-dynamic ] 941s + foo=bar ./glib-dynamic 941s build (glib, dynamic): OK 941s + echo run (glib, dynamic): OK 941s + cflags= 941s + pcflags= 941s + packages=gobject-2.0 941s run (glib, dynamic): OK 941s + pkg-config --cflags --libs gobject-2.0 941s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 941s build (gobject, dynamic): OK 941s run (gobject, dynamic): OK 941s + echo build (gobject, dynamic): OK 941s + [ -x gobject-dynamic ] 941s + foo=bar ./gobject-dynamic 941s + echo run (gobject, dynamic): OK 941s + cflags= 941s + pcflags= 941s + packages=gio-2.0 941s + pkg-config --cflags --libs gio-2.0 941s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 942s build (gio, dynamic): OK 942s + echo build (gio, dynamic): OK 942s + [ -x gio-dynamic ] 942s + foo=bar ./gio-dynamic 942s + echo run (gio, dynamic): OK 942s + cflags= 942s + pcflags= 942s + packages=gio-unix-2.0 942s run (gio, dynamic): OK 942s + pkg-config --cflags --libs gio-unix-2.0 942s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 942s build (gio-unix, dynamic): OK 942s + echo build (gio-unix, dynamic): OK 942s + [ -x gio-unix-dynamic ] 942s + foo=bar ./gio-unix-dynamic 942s + echo run (gio-unix, dynamic): OK 942s + cflags= 942s + pcflags= 942s + packages=gmodule-2.0 942s run (gio-unix, dynamic): OK 942s + pkg-config --cflags --libs gmodule-2.0 942s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 942s build (gmodule, dynamic): OK 942s run (gmodule, dynamic): OK 942s + echo build (gmodule, dynamic): OK 942s + [ -x gmodule-dynamic ] 942s + foo=bar ./gmodule-dynamic 942s + echo run (gmodule, dynamic): OK 942s + cflags= 942s + pcflags= 942s + packages=gthread-2.0 942s + pkg-config --cflags --libs gthread-2.0 942s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 942s + build (gthread, dynamic): OK 942s echo build (gthread, dynamic): OK 942s + [ -x gthread-dynamic ] 942s + foo=bar ./gthread-dynamic 942s run (gthread, dynamic): OK 942s + echo run (gthread, dynamic): OK 942s + rm -rf /tmp/tmp.gpPgpSihDH 942s + debian/tests/build-static 942s + mode=dynamic 942s + getopt -o --long static -n debian/tests/build -- --static 942s + getopt_temp= --static -- 942s + eval set -- --static -- 942s + set -- --static -- 942s + true 942s + mode=static 942s + shift 942s + continue 942s + true 942s + shift 942s + break 942s + mktemp -d 942s + WORKDIR=/tmp/tmp.JCVQ07K1G6 942s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 942s + cd /tmp/tmp.JCVQ07K1G6 942s + [ -n ] 942s + CROSS_COMPILE= 942s + cat 942s + cat 942s + cat 942s + cat 942s + cat 942s + cat 942s + cflags= 942s + pcflags= 942s + packages=glib-2.0 942s + cflags=-static 942s + pcflags=--static 942s + pkg-config --static --cflags --libs glib-2.0 942s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 942s /usr/bin/ld: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 942s (.text+0xec): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 942s /usr/bin/ld: (.text+0x2a6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 942s /usr/bin/ld: (.text+0x12a): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 942s build (glib, static): OK 942s run (glib, static): OK 942s + echo build (glib, static): OK 942s + [ -x glib-static ] 942s + foo=bar ./glib-static 942s + echo run (glib, static): OK 942s + cflags= 942s + pcflags= 942s + packages=gobject-2.0 942s + cflags=-static 942s + pcflags=--static 942s + pkg-config --static --cflags --libs gobject-2.0 942s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 942s /usr/bin/ld: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 942s (.text+0xec): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 942s /usr/bin/ld: (.text+0x2a6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 942s /usr/bin/ld: (.text+0x12a): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 942s build (gobject, static): OK 942s + echo build (gobject, static): OK 942s + [ -x gobject-static ] 942s + foo=bar ./gobject-static 942s run (gobject, static): OK 942s + echo run (gobject, static): OK 942s + cflags= 942s + pcflags= 942s + packages=gio-2.0 942s + cflags=-static 942s + pcflags=--static 942s + continue 942s + cflags= 942s + pcflags= 942s + packages=gio-unix-2.0 942s + cflags=-static 942s + pcflags=--static 942s + continue 942s + cflags= 942s + pcflags= 942s + packages=gmodule-2.0 942s + cflags=-static 942s + pcflags=--static 942s + pkg-config --static --cflags --libs gmodule-2.0 942s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 942s /usr/bin/ld: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 942s (.text+0x66e): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 942s /usr/bin/ld: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 942s (.text+0xec): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 942s /usr/bin/ld: (.text+0x2a6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 942s /usr/bin/ld: (.text+0x12a): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 942s build (gmodule, static): OK 942s run (gmodule, static): OK 942s + echo build (gmodule, static): OK 942s + [ -x gmodule-static ] 942s + foo=bar ./gmodule-static 942s + echo run (gmodule, static): OK 942s + cflags= 942s + pcflags= 942s + packages=gthread-2.0 942s + cflags=-static 942s + pcflags=--static 942s + pkg-config --static --cflags --libs gthread-2.0 942s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 942s /usr/bin/ld: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 942s (.text+0xec): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 942s /usr/bin/ld: (.text+0x2a6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 942s /usr/bin/ld: (.text+0x12a): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 942s build (gthread, static): OK 942s + echo build (gthread, static): OK 942s + [ -x gthread-static ] 942s + foo=bar ./gthread-static 942s run (gthread, static): OK 942s + echo run (gthread, static): OK 942s + rm -rf /tmp/tmp.JCVQ07K1G6 942s + debian/tests/girepository-tools 942s + cd /tmp/autopkgtest.v67oQT/autopkgtest_tmp 942s + dpkg-architecture -qDEB_HOST_GNU_TYPE 942s + DEB_HOST_GNU_TYPE=s390x-linux-gnu 942s + dpkg-architecture -qDEB_HOST_MULTIARCH 942s + DEB_HOST_MULTIARCH=s390x-linux-gnu 942s + s390x-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 942s typelib: GLib-2.0 942s + s390x-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/s390x-linux-gnu/gir-1.0/GLib-2.0.gir 942s + s390x-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 942s + debian/tests/libgio-2.0-dev-bin 942s + gdbus-codegen --help 942s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 942s [--c-namespace NAMESPACE] [--c-generate-object-manager] 942s [--c-generate-autocleanup {none,objects,all}] 942s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 942s [--generate-rst OUTFILES] [--pragma-once] 942s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 942s [--glib-min-required VERSION] 942s [--glib-max-allowed VERSION] 942s [--symbol-decorator SYMBOL_DECORATOR] 942s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 942s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 942s [--generate-c-code OUTFILES | --header | --body | 942s --interface-info-header | --interface-info-body] 942s [--output FILE | --output-directory OUTDIR] 942s FILE [FILE ...] 942s 942s D-Bus code and documentation generator 942s 942s positional arguments: 942s FILE D-Bus introspection XML file 942s 942s options: 942s -h, --help show this help message and exit 942s --interface-prefix PREFIX 942s String to strip from D-Bus interface names for code 942s and docs 942s --c-namespace NAMESPACE 942s The namespace to use for generated C code 942s --c-generate-object-manager 942s Generate a GDBusObjectManagerClient subclass when 942s generating C code 942s --c-generate-autocleanup {none,objects,all} 942s Generate autocleanup support 942s --generate-docbook OUTFILES 942s Generate Docbook in OUTFILES-org.Project.IFace.xml 942s --generate-md OUTFILES 942s Generate Markdown in OUTFILES-org.Project.IFace.md 942s --generate-rst OUTFILES 942s Generate reStructuredText in OUTFILES- 942s org.Project.IFace.rst 942s --pragma-once Use "pragma once" as the inclusion guard 942s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 942s Add annotation (may be used several times) 942s --glib-min-required VERSION 942s Minimum version of GLib to be supported by the 942s outputted code (default: 2.30) 942s --glib-max-allowed VERSION 942s Maximum version of GLib to be used by the outputted 942s code (default: current GLib version) 942s --symbol-decorator SYMBOL_DECORATOR 942s Macro used to decorate a symbol in the outputted 942s header, possibly to export symbols 942s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 942s Additional header required for decorator specified by 942s --symbol-decorator 942s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 942s Additional define required for decorator specified by 942s --symbol-decorator 942s --generate-c-code OUTFILES 942s Generate C code in OUTFILES.[ch] 942s --header Generate C headers 942s --body Generate C code 942s --interface-info-header 942s Generate GDBusInterfaceInfo C header 942s --interface-info-body 942s Generate GDBusInterfaceInfo C code 942s --output FILE Write output into the specified file 942s --output-directory OUTDIR 942s Location to output generated files 942s + glib-compile-resources --version 942s 2.85.3 942s + glib-genmarshal --version 942s glib-genmarshal version 2.85.3 942s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 942s You may redistribute copies of glib-genmarshal under the terms of 942s the GNU General Public License which can be found in the 942s GLib source package. Sources, examples and contact 942s information are available at http://www.gtk.org 942s + glib-gettextize --version 942s /usr/bin/glib-gettextize (GNU glib) 2.85.3 942s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 942s This is free software; see the source for copying conditions. There is NO 942s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 942s Written by Ulrich Drepper 942s + glib-mkenums --version 942s + gobject-query tree 942s glib-mkenums version 2.85.3 942s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 942s You may redistribute copies of glib-mkenums under the terms of 942s the GNU General Public License which can be found in the 942s GLib source package. Sources, examples and contact 942s information are available at http://www.gtk.org 942s GObject 942s + gtester --version 942s gtester version 2.85.3 942s + gtester-report --version 943s gtester-report (GLib utils) version 2.85.3. 943s + cd /tmp/autopkgtest.v67oQT/autopkgtest_tmp 943s + dpkg-architecture -qDEB_HOST_MULTIARCH 943s + DEB_HOST_MULTIARCH=s390x-linux-gnu 943s + gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 943s typelib: GLib-2.0 943s + gi-compile-repository -o GLib.typelib /usr/lib/s390x-linux-gnu/gir-1.0/GLib-2.0.gir 943s + gi-decompile-typelib -o GLib.gir GLib.typelib 943s autopkgtest [19:14:31]: test libglib2.0-dev: -----------------------] 943s autopkgtest [19:14:31]: test libglib2.0-dev: - - - - - - - - - - results - - - - - - - - - - 943s libglib2.0-dev PASS (superficial) 944s autopkgtest [19:14:32]: test installed-tests: preparing testbed 963s Creating nova instance adt-questing-s390x-glib2.0-20250904-172803-juju-7f2275-prod-proposed-migration-environment-20-41c6da5a-6f73-4977-a243-a489171730c5 from image adt/ubuntu-questing-s390x-server-20250904.img (UUID 7ac7c447-3049-4f71-b62b-46468f662d6e)... 1026s autopkgtest [19:15:54]: testbed dpkg architecture: s390x 1026s autopkgtest [19:15:54]: testbed apt version: 3.1.5ubuntu1 1026s autopkgtest [19:15:54]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1026s autopkgtest [19:15:54]: testbed release detected to be: questing 1027s autopkgtest [19:15:55]: updating testbed package index (apt update) 1027s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [265 kB] 1028s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 1028s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 1028s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 1028s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [234 kB] 1028s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [59.4 kB] 1028s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/restricted Sources [3848 B] 1028s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [14.1 kB] 1028s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/main s390x Packages [95.4 kB] 1028s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main s390x c-n-f Metadata [3688 B] 1028s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/restricted s390x Packages [728 B] 1028s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/restricted s390x c-n-f Metadata [120 B] 1028s Get:13 http://ftpmaster.internal/ubuntu questing-proposed/universe s390x Packages [213 kB] 1028s Get:14 http://ftpmaster.internal/ubuntu questing-proposed/universe s390x c-n-f Metadata [6332 B] 1028s Get:15 http://ftpmaster.internal/ubuntu questing-proposed/multiverse s390x Packages [4208 B] 1028s Get:16 http://ftpmaster.internal/ubuntu questing-proposed/multiverse s390x c-n-f Metadata [300 B] 1029s Fetched 900 kB in 1s (720 kB/s) 1030s Reading package lists... 1030s autopkgtest [19:15:58]: upgrading testbed (apt dist-upgrade and autopurge) 1030s Reading package lists... 1030s Building dependency tree... 1030s Reading state information... 1030s Calculating upgrade... 1031s The following packages will be upgraded: 1031s bpftrace cron cron-daemon-common cryptsetup-bin dash libbrotli1 1031s libcryptsetup12 1031s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1031s Need to get 3001 kB of archives. 1031s After this operation, 4096 B of additional disk space will be used. 1031s Get:1 http://ftpmaster.internal/ubuntu questing/main s390x dash s390x 0.5.12-12ubuntu2 [100 kB] 1031s Get:2 http://ftpmaster.internal/ubuntu questing/main s390x cron s390x 3.0pl1-196ubuntu2 [89.5 kB] 1031s Get:3 http://ftpmaster.internal/ubuntu questing/main s390x libcryptsetup12 s390x 2:2.8.0-1ubuntu2 [273 kB] 1031s Get:4 http://ftpmaster.internal/ubuntu questing/main s390x cron-daemon-common all 3.0pl1-196ubuntu2 [15.3 kB] 1031s Get:5 http://ftpmaster.internal/ubuntu questing/main s390x bpftrace s390x 0.23.5-1ubuntu1 [1917 kB] 1033s Get:6 http://ftpmaster.internal/ubuntu questing/main s390x cryptsetup-bin s390x 2:2.8.0-1ubuntu2 [227 kB] 1033s Get:7 http://ftpmaster.internal/ubuntu questing/main s390x libbrotli1 s390x 1.1.0-2build5 [379 kB] 1034s Preconfiguring packages ... 1034s Fetched 3001 kB in 3s (1073 kB/s) 1034s (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 ... 85685 files and directories currently installed.) 1034s Preparing to unpack .../dash_0.5.12-12ubuntu2_s390x.deb ... 1034s Unpacking dash (0.5.12-12ubuntu2) over (0.5.12-12ubuntu1) ... 1034s Setting up dash (0.5.12-12ubuntu2) ... 1034s (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 ... 85685 files and directories currently installed.) 1034s Preparing to unpack .../0-cron_3.0pl1-196ubuntu2_s390x.deb ... 1034s Unpacking cron (3.0pl1-196ubuntu2) over (3.0pl1-196ubuntu1) ... 1034s Preparing to unpack .../1-libcryptsetup12_2%3a2.8.0-1ubuntu2_s390x.deb ... 1034s Unpacking libcryptsetup12:s390x (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 1034s Preparing to unpack .../2-cron-daemon-common_3.0pl1-196ubuntu2_all.deb ... 1034s Unpacking cron-daemon-common (3.0pl1-196ubuntu2) over (3.0pl1-196ubuntu1) ... 1034s Preparing to unpack .../3-bpftrace_0.23.5-1ubuntu1_s390x.deb ... 1034s Unpacking bpftrace (0.23.5-1ubuntu1) over (0.23.2-1ubuntu2) ... 1034s Preparing to unpack .../4-cryptsetup-bin_2%3a2.8.0-1ubuntu2_s390x.deb ... 1034s Unpacking cryptsetup-bin (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 1034s Preparing to unpack .../5-libbrotli1_1.1.0-2build5_s390x.deb ... 1034s Unpacking libbrotli1:s390x (1.1.0-2build5) over (1.1.0-2build4) ... 1034s Setting up bpftrace (0.23.5-1ubuntu1) ... 1034s Setting up libbrotli1:s390x (1.1.0-2build5) ... 1034s Setting up libcryptsetup12:s390x (2:2.8.0-1ubuntu2) ... 1034s Setting up cron-daemon-common (3.0pl1-196ubuntu2) ... 1034s Setting up cryptsetup-bin (2:2.8.0-1ubuntu2) ... 1034s Setting up cron (3.0pl1-196ubuntu2) ... 1034s Processing triggers for debianutils (5.23.2) ... 1034s Processing triggers for libc-bin (2.42-0ubuntu1) ... 1034s Processing triggers for man-db (2.13.1-1) ... 1036s Reading package lists... 1036s Building dependency tree... 1036s Reading state information... 1036s Solving dependencies... 1036s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1036s autopkgtest [19:16:04]: rebooting testbed after setup commands that affected boot 1058s Reading package lists... 1058s Building dependency tree... 1058s Reading state information... 1058s Solving dependencies... 1058s The following NEW packages will be installed: 1058s dbus-x11 desktop-file-utils gir1.2-glib-2.0-dev girepository-tools 1058s gnome-desktop-testing libfontenc1 libfreetype6 libgbm1 libgio-2.0-dev-bin 1058s libgirepository-2.0-0 libgl1 libgl1-mesa-dri libglib2.0-bin 1058s libglib2.0-dev-bin libglib2.0-tests libglvnd0 libglx-mesa0 libglx0 libice6 1058s libpixman-1-0 libsm6 libvulkan1 libx11-xcb1 libxaw7 libxcb-dri3-0 1058s libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-shm0 libxcb-sync1 1058s libxcb-xfixes0 libxfont2 libxkbfile1 libxmu6 libxpm4 libxrandr2 libxrender1 1058s libxshmfence1 libxt6t64 libxxf86vm1 mesa-libgallium native-architecture 1058s python3-dbusmock tzdata-legacy x11-common x11-xkb-utils xserver-common xvfb 1058s 0 upgraded, 48 newly installed, 0 to remove and 0 not upgraded. 1058s Need to get 15.5 MB of archives. 1058s After this operation, 74.5 MB of additional disk space will be used. 1058s Get:1 http://ftpmaster.internal/ubuntu questing/main s390x dbus-x11 s390x 1.16.2-2ubuntu1 [23.8 kB] 1058s Get:2 http://ftpmaster.internal/ubuntu questing/main s390x desktop-file-utils s390x 0.28-1 [53.9 kB] 1058s Get:3 http://ftpmaster.internal/ubuntu questing/main s390x gir1.2-glib-2.0-dev s390x 2.85.3-1 [868 kB] 1059s Get:4 http://ftpmaster.internal/ubuntu questing/main s390x native-architecture all 0.2.6 [2140 B] 1059s Get:5 http://ftpmaster.internal/ubuntu questing/main s390x libgirepository-2.0-0 s390x 2.85.3-1 [76.1 kB] 1059s Get:6 http://ftpmaster.internal/ubuntu questing/main s390x girepository-tools s390x 2.85.3-1 [115 kB] 1059s Get:7 http://ftpmaster.internal/ubuntu questing/universe s390x gnome-desktop-testing s390x 2021.1-4 [16.6 kB] 1059s Get:8 http://ftpmaster.internal/ubuntu questing/main s390x libfontenc1 s390x 1:1.1.8-1build1 [14.8 kB] 1059s Get:9 http://ftpmaster.internal/ubuntu questing/main s390x libfreetype6 s390x 2.13.3+dfsg-1 [431 kB] 1060s Get:10 http://ftpmaster.internal/ubuntu questing/main s390x libx11-xcb1 s390x 2:1.8.12-1 [7944 B] 1060s Get:11 http://ftpmaster.internal/ubuntu questing/main s390x libxcb-dri3-0 s390x 1.17.0-2 [7616 B] 1060s Get:12 http://ftpmaster.internal/ubuntu questing/main s390x libxcb-present0 s390x 1.17.0-2 [6244 B] 1060s Get:13 http://ftpmaster.internal/ubuntu questing/main s390x libxcb-randr0 s390x 1.17.0-2 [19.2 kB] 1060s Get:14 http://ftpmaster.internal/ubuntu questing/main s390x libxcb-sync1 s390x 1.17.0-2 [9488 B] 1060s Get:15 http://ftpmaster.internal/ubuntu questing/main s390x libxcb-xfixes0 s390x 1.17.0-2 [10.5 kB] 1060s Get:16 http://ftpmaster.internal/ubuntu questing/main s390x libxshmfence1 s390x 1.3.3-1 [5202 B] 1060s Get:17 http://ftpmaster.internal/ubuntu questing/main s390x mesa-libgallium s390x 25.2.1-2ubuntu1 [8317 kB] 1069s Get:18 http://ftpmaster.internal/ubuntu questing/main s390x libgbm1 s390x 25.2.1-2ubuntu1 [34.7 kB] 1069s Get:19 http://ftpmaster.internal/ubuntu questing/main s390x libgio-2.0-dev-bin s390x 2.85.3-1 [129 kB] 1069s Get:20 http://ftpmaster.internal/ubuntu questing/main s390x libvulkan1 s390x 1.4.321.0-1 [147 kB] 1070s Get:21 http://ftpmaster.internal/ubuntu questing/main s390x libgl1-mesa-dri s390x 25.2.1-2ubuntu1 [36.0 kB] 1070s Get:22 http://ftpmaster.internal/ubuntu questing/main s390x libglib2.0-bin s390x 2.85.3-1 [99.6 kB] 1070s Get:23 http://ftpmaster.internal/ubuntu questing/main s390x libglib2.0-dev-bin s390x 2.85.3-1 [18.2 kB] 1070s Get:24 http://ftpmaster.internal/ubuntu questing/universe s390x python3-dbusmock all 0.36.0-1 [93.3 kB] 1070s Get:25 http://ftpmaster.internal/ubuntu questing/main s390x tzdata-legacy all 2025b-3ubuntu1 [99.3 kB] 1070s Get:26 http://ftpmaster.internal/ubuntu questing/universe s390x libglib2.0-tests s390x 2.85.3-1 [2323 kB] 1072s Get:27 http://ftpmaster.internal/ubuntu questing/main s390x libxcb-glx0 s390x 1.17.0-2 [26.0 kB] 1072s Get:28 http://ftpmaster.internal/ubuntu questing/main s390x libxcb-shm0 s390x 1.17.0-2 [5862 B] 1072s Get:29 http://ftpmaster.internal/ubuntu questing/main s390x libxxf86vm1 s390x 1:1.1.4-1build4 [9630 B] 1072s Get:30 http://ftpmaster.internal/ubuntu questing/main s390x libglx-mesa0 s390x 25.2.1-2ubuntu1 [114 kB] 1072s Get:31 http://ftpmaster.internal/ubuntu questing/main s390x x11-common all 1:7.7+24ubuntu1 [22.4 kB] 1072s Get:32 http://ftpmaster.internal/ubuntu questing/main s390x libice6 s390x 2:1.1.1-1 [45.4 kB] 1072s Get:33 http://ftpmaster.internal/ubuntu questing/main s390x libpixman-1-0 s390x 0.44.0-3 [201 kB] 1072s Get:34 http://ftpmaster.internal/ubuntu questing/main s390x libsm6 s390x 2:1.2.6-1 [18.3 kB] 1072s Get:35 http://ftpmaster.internal/ubuntu questing/main s390x libxt6t64 s390x 1:1.2.1-1.2build1 [184 kB] 1073s Get:36 http://ftpmaster.internal/ubuntu questing/main s390x libxmu6 s390x 2:1.1.3-3build2 [53.0 kB] 1073s Get:37 http://ftpmaster.internal/ubuntu questing/main s390x libxpm4 s390x 1:3.5.17-1build2 [41.2 kB] 1073s Get:38 http://ftpmaster.internal/ubuntu questing/main s390x libxaw7 s390x 2:1.0.16-1 [201 kB] 1073s Get:39 http://ftpmaster.internal/ubuntu questing/main s390x libxfont2 s390x 1:2.0.6-1build1 [101 kB] 1073s Get:40 http://ftpmaster.internal/ubuntu questing/main s390x libxkbfile1 s390x 1:1.1.0-1build4 [76.5 kB] 1073s Get:41 http://ftpmaster.internal/ubuntu questing/main s390x libxrender1 s390x 1:0.9.12-1 [20.9 kB] 1073s Get:42 http://ftpmaster.internal/ubuntu questing/main s390x libxrandr2 s390x 2:1.5.4-1 [20.8 kB] 1073s Get:43 http://ftpmaster.internal/ubuntu questing/main s390x x11-xkb-utils s390x 7.7+9 [169 kB] 1073s Get:44 http://ftpmaster.internal/ubuntu questing/main s390x xserver-common all 2:21.1.18-1ubuntu1 [34.6 kB] 1073s Get:45 http://ftpmaster.internal/ubuntu questing/main s390x libglvnd0 s390x 1.7.0-1build1 [110 kB] 1073s Get:46 http://ftpmaster.internal/ubuntu questing/main s390x libglx0 s390x 1.7.0-1build1 [32.2 kB] 1073s Get:47 http://ftpmaster.internal/ubuntu questing/main s390x libgl1 s390x 1.7.0-1build1 [142 kB] 1074s Get:48 http://ftpmaster.internal/ubuntu questing/universe s390x xvfb s390x 2:21.1.18-1ubuntu1 [943 kB] 1075s Fetched 15.5 MB in 16s (947 kB/s) 1075s Selecting previously unselected package dbus-x11. 1075s (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 ... 85685 files and directories currently installed.) 1075s Preparing to unpack .../00-dbus-x11_1.16.2-2ubuntu1_s390x.deb ... 1075s Unpacking dbus-x11 (1.16.2-2ubuntu1) ... 1075s Selecting previously unselected package desktop-file-utils. 1075s Preparing to unpack .../01-desktop-file-utils_0.28-1_s390x.deb ... 1075s Unpacking desktop-file-utils (0.28-1) ... 1075s Selecting previously unselected package gir1.2-glib-2.0-dev:s390x. 1075s Preparing to unpack .../02-gir1.2-glib-2.0-dev_2.85.3-1_s390x.deb ... 1075s Unpacking gir1.2-glib-2.0-dev:s390x (2.85.3-1) ... 1075s Selecting previously unselected package native-architecture. 1075s Preparing to unpack .../03-native-architecture_0.2.6_all.deb ... 1075s Unpacking native-architecture (0.2.6) ... 1075s Selecting previously unselected package libgirepository-2.0-0:s390x. 1075s Preparing to unpack .../04-libgirepository-2.0-0_2.85.3-1_s390x.deb ... 1075s Unpacking libgirepository-2.0-0:s390x (2.85.3-1) ... 1075s Selecting previously unselected package girepository-tools:s390x. 1075s Preparing to unpack .../05-girepository-tools_2.85.3-1_s390x.deb ... 1075s Unpacking girepository-tools:s390x (2.85.3-1) ... 1075s Selecting previously unselected package gnome-desktop-testing. 1075s Preparing to unpack .../06-gnome-desktop-testing_2021.1-4_s390x.deb ... 1075s Unpacking gnome-desktop-testing (2021.1-4) ... 1075s Selecting previously unselected package libfontenc1:s390x. 1075s Preparing to unpack .../07-libfontenc1_1%3a1.1.8-1build1_s390x.deb ... 1075s Unpacking libfontenc1:s390x (1:1.1.8-1build1) ... 1075s Selecting previously unselected package libfreetype6:s390x. 1075s Preparing to unpack .../08-libfreetype6_2.13.3+dfsg-1_s390x.deb ... 1075s Unpacking libfreetype6:s390x (2.13.3+dfsg-1) ... 1075s Selecting previously unselected package libx11-xcb1:s390x. 1075s Preparing to unpack .../09-libx11-xcb1_2%3a1.8.12-1_s390x.deb ... 1075s Unpacking libx11-xcb1:s390x (2:1.8.12-1) ... 1075s Selecting previously unselected package libxcb-dri3-0:s390x. 1075s Preparing to unpack .../10-libxcb-dri3-0_1.17.0-2_s390x.deb ... 1075s Unpacking libxcb-dri3-0:s390x (1.17.0-2) ... 1075s Selecting previously unselected package libxcb-present0:s390x. 1075s Preparing to unpack .../11-libxcb-present0_1.17.0-2_s390x.deb ... 1075s Unpacking libxcb-present0:s390x (1.17.0-2) ... 1075s Selecting previously unselected package libxcb-randr0:s390x. 1075s Preparing to unpack .../12-libxcb-randr0_1.17.0-2_s390x.deb ... 1075s Unpacking libxcb-randr0:s390x (1.17.0-2) ... 1075s Selecting previously unselected package libxcb-sync1:s390x. 1075s Preparing to unpack .../13-libxcb-sync1_1.17.0-2_s390x.deb ... 1075s Unpacking libxcb-sync1:s390x (1.17.0-2) ... 1075s Selecting previously unselected package libxcb-xfixes0:s390x. 1075s Preparing to unpack .../14-libxcb-xfixes0_1.17.0-2_s390x.deb ... 1075s Unpacking libxcb-xfixes0:s390x (1.17.0-2) ... 1075s Selecting previously unselected package libxshmfence1:s390x. 1075s Preparing to unpack .../15-libxshmfence1_1.3.3-1_s390x.deb ... 1075s Unpacking libxshmfence1:s390x (1.3.3-1) ... 1075s Selecting previously unselected package mesa-libgallium:s390x. 1075s Preparing to unpack .../16-mesa-libgallium_25.2.1-2ubuntu1_s390x.deb ... 1075s Unpacking mesa-libgallium:s390x (25.2.1-2ubuntu1) ... 1075s Selecting previously unselected package libgbm1:s390x. 1075s Preparing to unpack .../17-libgbm1_25.2.1-2ubuntu1_s390x.deb ... 1075s Unpacking libgbm1:s390x (25.2.1-2ubuntu1) ... 1075s Selecting previously unselected package libgio-2.0-dev-bin. 1075s Preparing to unpack .../18-libgio-2.0-dev-bin_2.85.3-1_s390x.deb ... 1075s Unpacking libgio-2.0-dev-bin (2.85.3-1) ... 1075s Selecting previously unselected package libvulkan1:s390x. 1075s Preparing to unpack .../19-libvulkan1_1.4.321.0-1_s390x.deb ... 1075s Unpacking libvulkan1:s390x (1.4.321.0-1) ... 1075s Selecting previously unselected package libgl1-mesa-dri:s390x. 1075s Preparing to unpack .../20-libgl1-mesa-dri_25.2.1-2ubuntu1_s390x.deb ... 1075s Unpacking libgl1-mesa-dri:s390x (25.2.1-2ubuntu1) ... 1075s Selecting previously unselected package libglib2.0-bin. 1075s Preparing to unpack .../21-libglib2.0-bin_2.85.3-1_s390x.deb ... 1075s Unpacking libglib2.0-bin (2.85.3-1) ... 1075s Selecting previously unselected package libglib2.0-dev-bin. 1075s Preparing to unpack .../22-libglib2.0-dev-bin_2.85.3-1_s390x.deb ... 1075s Unpacking libglib2.0-dev-bin (2.85.3-1) ... 1075s Selecting previously unselected package python3-dbusmock. 1075s Preparing to unpack .../23-python3-dbusmock_0.36.0-1_all.deb ... 1075s Unpacking python3-dbusmock (0.36.0-1) ... 1075s Selecting previously unselected package tzdata-legacy. 1075s Preparing to unpack .../24-tzdata-legacy_2025b-3ubuntu1_all.deb ... 1075s Unpacking tzdata-legacy (2025b-3ubuntu1) ... 1075s Selecting previously unselected package libglib2.0-tests. 1075s Preparing to unpack .../25-libglib2.0-tests_2.85.3-1_s390x.deb ... 1075s Unpacking libglib2.0-tests (2.85.3-1) ... 1075s Selecting previously unselected package libxcb-glx0:s390x. 1075s Preparing to unpack .../26-libxcb-glx0_1.17.0-2_s390x.deb ... 1075s Unpacking libxcb-glx0:s390x (1.17.0-2) ... 1075s Selecting previously unselected package libxcb-shm0:s390x. 1075s Preparing to unpack .../27-libxcb-shm0_1.17.0-2_s390x.deb ... 1075s Unpacking libxcb-shm0:s390x (1.17.0-2) ... 1075s Selecting previously unselected package libxxf86vm1:s390x. 1075s Preparing to unpack .../28-libxxf86vm1_1%3a1.1.4-1build4_s390x.deb ... 1075s Unpacking libxxf86vm1:s390x (1:1.1.4-1build4) ... 1075s Selecting previously unselected package libglx-mesa0:s390x. 1075s Preparing to unpack .../29-libglx-mesa0_25.2.1-2ubuntu1_s390x.deb ... 1075s Unpacking libglx-mesa0:s390x (25.2.1-2ubuntu1) ... 1075s Selecting previously unselected package x11-common. 1075s Preparing to unpack .../30-x11-common_1%3a7.7+24ubuntu1_all.deb ... 1075s Unpacking x11-common (1:7.7+24ubuntu1) ... 1075s Selecting previously unselected package libice6:s390x. 1075s Preparing to unpack .../31-libice6_2%3a1.1.1-1_s390x.deb ... 1075s Unpacking libice6:s390x (2:1.1.1-1) ... 1075s Selecting previously unselected package libpixman-1-0:s390x. 1075s Preparing to unpack .../32-libpixman-1-0_0.44.0-3_s390x.deb ... 1075s Unpacking libpixman-1-0:s390x (0.44.0-3) ... 1075s Selecting previously unselected package libsm6:s390x. 1075s Preparing to unpack .../33-libsm6_2%3a1.2.6-1_s390x.deb ... 1075s Unpacking libsm6:s390x (2:1.2.6-1) ... 1075s Selecting previously unselected package libxt6t64:s390x. 1075s Preparing to unpack .../34-libxt6t64_1%3a1.2.1-1.2build1_s390x.deb ... 1075s Unpacking libxt6t64:s390x (1:1.2.1-1.2build1) ... 1075s Selecting previously unselected package libxmu6:s390x. 1075s Preparing to unpack .../35-libxmu6_2%3a1.1.3-3build2_s390x.deb ... 1075s Unpacking libxmu6:s390x (2:1.1.3-3build2) ... 1075s Selecting previously unselected package libxpm4:s390x. 1075s Preparing to unpack .../36-libxpm4_1%3a3.5.17-1build2_s390x.deb ... 1075s Unpacking libxpm4:s390x (1:3.5.17-1build2) ... 1075s Selecting previously unselected package libxaw7:s390x. 1075s Preparing to unpack .../37-libxaw7_2%3a1.0.16-1_s390x.deb ... 1075s Unpacking libxaw7:s390x (2:1.0.16-1) ... 1075s Selecting previously unselected package libxfont2:s390x. 1075s Preparing to unpack .../38-libxfont2_1%3a2.0.6-1build1_s390x.deb ... 1075s Unpacking libxfont2:s390x (1:2.0.6-1build1) ... 1075s Selecting previously unselected package libxkbfile1:s390x. 1075s Preparing to unpack .../39-libxkbfile1_1%3a1.1.0-1build4_s390x.deb ... 1075s Unpacking libxkbfile1:s390x (1:1.1.0-1build4) ... 1075s Selecting previously unselected package libxrender1:s390x. 1075s Preparing to unpack .../40-libxrender1_1%3a0.9.12-1_s390x.deb ... 1075s Unpacking libxrender1:s390x (1:0.9.12-1) ... 1075s Selecting previously unselected package libxrandr2:s390x. 1075s Preparing to unpack .../41-libxrandr2_2%3a1.5.4-1_s390x.deb ... 1075s Unpacking libxrandr2:s390x (2:1.5.4-1) ... 1075s Selecting previously unselected package x11-xkb-utils. 1075s Preparing to unpack .../42-x11-xkb-utils_7.7+9_s390x.deb ... 1075s Unpacking x11-xkb-utils (7.7+9) ... 1075s Selecting previously unselected package xserver-common. 1075s Preparing to unpack .../43-xserver-common_2%3a21.1.18-1ubuntu1_all.deb ... 1075s Unpacking xserver-common (2:21.1.18-1ubuntu1) ... 1075s Selecting previously unselected package libglvnd0:s390x. 1075s Preparing to unpack .../44-libglvnd0_1.7.0-1build1_s390x.deb ... 1075s Unpacking libglvnd0:s390x (1.7.0-1build1) ... 1075s Selecting previously unselected package libglx0:s390x. 1075s Preparing to unpack .../45-libglx0_1.7.0-1build1_s390x.deb ... 1075s Unpacking libglx0:s390x (1.7.0-1build1) ... 1076s Selecting previously unselected package libgl1:s390x. 1076s Preparing to unpack .../46-libgl1_1.7.0-1build1_s390x.deb ... 1076s Unpacking libgl1:s390x (1.7.0-1build1) ... 1076s Selecting previously unselected package xvfb. 1076s Preparing to unpack .../47-xvfb_2%3a21.1.18-1ubuntu1_s390x.deb ... 1076s Unpacking xvfb (2:21.1.18-1ubuntu1) ... 1076s Setting up gnome-desktop-testing (2021.1-4) ... 1076s Setting up libxcb-dri3-0:s390x (1.17.0-2) ... 1076s Setting up libpixman-1-0:s390x (0.44.0-3) ... 1076s Setting up libx11-xcb1:s390x (2:1.8.12-1) ... 1076s Setting up libgio-2.0-dev-bin (2.85.3-1) ... 1076s Setting up native-architecture (0.2.6) ... 1076s Setting up libxcb-xfixes0:s390x (1.17.0-2) ... 1076s Setting up desktop-file-utils (0.28-1) ... 1076s Setting up libxpm4:s390x (1:3.5.17-1build2) ... 1076s Setting up libxrender1:s390x (1:0.9.12-1) ... 1076s Setting up libgirepository-2.0-0:s390x (2.85.3-1) ... 1076s Setting up libglvnd0:s390x (1.7.0-1build1) ... 1076s Setting up libxcb-glx0:s390x (1.17.0-2) ... 1076s Setting up x11-common (1:7.7+24ubuntu1) ... 1076s Setting up libglib2.0-bin (2.85.3-1) ... 1076s Setting up libxcb-shm0:s390x (1.17.0-2) ... 1076s Setting up python3-dbusmock (0.36.0-1) ... 1076s Setting up tzdata-legacy (2025b-3ubuntu1) ... 1076s Setting up libxxf86vm1:s390x (1:1.1.4-1build4) ... 1076s Setting up libxcb-present0:s390x (1.17.0-2) ... 1076s Setting up libfontenc1:s390x (1:1.1.8-1build1) ... 1076s Setting up libfreetype6:s390x (2.13.3+dfsg-1) ... 1076s Setting up libxcb-sync1:s390x (1.17.0-2) ... 1076s Setting up libxrandr2:s390x (2:1.5.4-1) ... 1076s Setting up libvulkan1:s390x (1.4.321.0-1) ... 1076s Setting up gir1.2-glib-2.0-dev:s390x (2.85.3-1) ... 1076s Setting up libxshmfence1:s390x (1.3.3-1) ... 1076s Setting up dbus-x11 (1.16.2-2ubuntu1) ... 1076s Setting up libxcb-randr0:s390x (1.17.0-2) ... 1076s Setting up libxkbfile1:s390x (1:1.1.0-1build4) ... 1076s Setting up libxfont2:s390x (1:2.0.6-1build1) ... 1076s Setting up libice6:s390x (2:1.1.1-1) ... 1076s Setting up mesa-libgallium:s390x (25.2.1-2ubuntu1) ... 1076s Setting up girepository-tools:s390x (2.85.3-1) ... 1076s Setting up libgbm1:s390x (25.2.1-2ubuntu1) ... 1076s Setting up libgl1-mesa-dri:s390x (25.2.1-2ubuntu1) ... 1076s Setting up libsm6:s390x (2:1.2.6-1) ... 1076s Setting up libglib2.0-dev-bin (2.85.3-1) ... 1076s Setting up libglx-mesa0:s390x (25.2.1-2ubuntu1) ... 1076s Setting up libglx0:s390x (1.7.0-1build1) ... 1076s Setting up libgl1:s390x (1.7.0-1build1) ... 1076s Setting up libxt6t64:s390x (1:1.2.1-1.2build1) ... 1076s Setting up libglib2.0-tests (2.85.3-1) ... 1076s Setting up libxmu6:s390x (2:1.1.3-3build2) ... 1076s Setting up libxaw7:s390x (2:1.0.16-1) ... 1076s Setting up x11-xkb-utils (7.7+9) ... 1076s Setting up xserver-common (2:21.1.18-1ubuntu1) ... 1076s Setting up xvfb (2:21.1.18-1ubuntu1) ... 1076s Processing triggers for man-db (2.13.1-1) ... 1077s Processing triggers for libc-bin (2.42-0ubuntu1) ... 1086s autopkgtest [19:16:54]: test installed-tests: [----------------------- 1086s Running as: uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),103(lxd) 1086s passwd entry: ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash 1086s group entry: ubuntu:x:1000: 1086s Environment: 1086s ADTTMP=/tmp/autopkgtest.v67oQT/autopkgtest_tmp 1086s ADT_ARTIFACTS=/tmp/autopkgtest.v67oQT/installed-tests-artifacts 1086s ADT_TEST_TRIGGERS=build-essential/12.12ubuntu2 1086s AUTOPKGTEST_ARTIFACTS=/tmp/autopkgtest.v67oQT/installed-tests-artifacts 1086s AUTOPKGTEST_TESTBED_ARCH=s390x 1086s AUTOPKGTEST_TEST_ARCH=s390x 1086s AUTOPKGTEST_TMP=/tmp/autopkgtest.v67oQT/autopkgtest_tmp 1086s DEBIAN_FRONTEND=noninteractive 1086s DEBUGINFOD_URLS=https://debuginfod.ubuntu.com 1086s DEB_BUILD_OPTIONS=parallel=2 1086s GIO_USE_VFS=local 1086s GIO_USE_VOLUME_MONITOR=unix 1086s HOME=/home/ubuntu 1086s LANG=C.UTF-8 1086s LOGNAME=ubuntu 1086s MAIL=/var/mail/ubuntu 1086s OLDPWD=/home/ubuntu 1086s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 1086s PWD=/tmp/autopkgtest.v67oQT/build.t69/src 1086s SHELL=/bin/bash 1086s SHLVL=1 1086s SUDO_COMMAND=/tmp/autopkgtest-run-wrapper su -s /bin/bash ubuntu -c set -e; exec /tmp/autopkgtest.v67oQT/wrapper.sh --artifacts=/tmp/autopkgtest.v67oQT/installed-tests-artifacts --chdir=/tmp/autopkgtest.v67oQT/build.t69/src --env=AUTOPKGTEST_TESTBED_ARCH=s390x --env=AUTOPKGTEST_TEST_ARCH=s390x --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.v67oQT/installed-tests-stderr --stdout=/tmp/autopkgtest.v67oQT/installed-tests-stdout --tmp=/tmp/autopkgtest.v67oQT/autopkgtest_tmp --env=ADT_TEST_TRIGGERS=build-essential/12.12ubuntu2 --make-executable=/tmp/autopkgtest.v67oQT/build.t69/src/debian/tests/installed-tests -- /tmp/autopkgtest.v67oQT/build.t69/src/debian/tests/installed-tests 1086s SUDO_GID=1000 1086s SUDO_UID=1000 1086s SUDO_USER=ubuntu 1086s TERM=linux 1086s USER=ubuntu 1086s XDG_RUNTIME_DIR=/tmp/autopkgtest.v67oQT/autopkgtest_tmp 1086s http_proxy=http://squid.internal:3128/ 1086s https_proxy=http://squid.internal:3128/ 1086s 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 1086s run-with-locales: de_DE=ISO-8859-1... 1086s Character set: ISO-8859-1 1086s Source file: de_DE 1086s Output: /tmp/tmp.pTkTWWCLMK/de_DE 1086s run-with-locales: de_DE.utf8... 1086s Character set: UTF-8 1086s Source file: de_DE 1086s Output: /tmp/tmp.pTkTWWCLMK/de_DE.utf8 1087s run-with-locales: de_DE@euro.utf8... 1087s Character set: UTF-8 1087s Source file: de_DE@euro 1087s Output: /tmp/tmp.pTkTWWCLMK/de_DE@euro.utf8 1088s run-with-locales: el_GR.utf8... 1088s Character set: UTF-8 1088s Source file: el_GR 1088s Output: /tmp/tmp.pTkTWWCLMK/el_GR.utf8 1089s run-with-locales: en_GB=ISO-8859-1... 1089s Character set: ISO-8859-1 1089s Source file: en_GB 1089s Output: /tmp/tmp.pTkTWWCLMK/en_GB 1089s run-with-locales: en_GB.utf8... 1089s Character set: UTF-8 1089s Source file: en_GB 1089s Output: /tmp/tmp.pTkTWWCLMK/en_GB.utf8 1090s run-with-locales: en_US=ISO-8859-1... 1090s Character set: ISO-8859-1 1090s Source file: en_US 1090s Output: /tmp/tmp.pTkTWWCLMK/en_US 1090s run-with-locales: en_US.utf8... 1090s Character set: UTF-8 1090s Source file: en_US 1090s Output: /tmp/tmp.pTkTWWCLMK/en_US.utf8 1091s run-with-locales: es_ES.utf8... 1091s Character set: UTF-8 1091s Source file: es_ES 1091s Output: /tmp/tmp.pTkTWWCLMK/es_ES.utf8 1092s run-with-locales: fa_IR=UTF-8... 1092s Character set: UTF-8 1092s Source file: fa_IR 1092s Output: /tmp/tmp.pTkTWWCLMK/fa_IR 1093s run-with-locales: fa_IR.utf8... 1093s Character set: UTF-8 1093s Source file: fa_IR 1093s Output: /tmp/tmp.pTkTWWCLMK/fa_IR.utf8 1093s run-with-locales: fr_FR.utf8... 1093s Character set: UTF-8 1093s Source file: fr_FR 1093s Output: /tmp/tmp.pTkTWWCLMK/fr_FR.utf8 1094s run-with-locales: hr_HR.utf8... 1094s Character set: UTF-8 1094s Source file: hr_HR 1094s Output: /tmp/tmp.pTkTWWCLMK/hr_HR.utf8 1095s run-with-locales: ja_JP.utf8... 1095s Character set: UTF-8 1095s Source file: ja_JP 1095s Output: /tmp/tmp.pTkTWWCLMK/ja_JP.utf8 1096s run-with-locales: ja_JP.EUC-JP... 1096s Character set: EUC-JP 1096s Source file: ja_JP 1096s Output: /tmp/tmp.pTkTWWCLMK/ja_JP.eucjp 1096s run-with-locales: lt_LT.utf8... 1096s Character set: UTF-8 1096s Source file: lt_LT 1096s Output: /tmp/tmp.pTkTWWCLMK/lt_LT.utf8 1097s run-with-locales: pl_PL=ISO-8859-2... 1097s Character set: ISO-8859-2 1097s Source file: pl_PL 1097s Output: /tmp/tmp.pTkTWWCLMK/pl_PL 1097s run-with-locales: pl_PL.ISO-8859-2... 1097s Character set: ISO-8859-2 1097s Source file: pl_PL 1097s Output: /tmp/tmp.pTkTWWCLMK/pl_PL.iso88592 1097s run-with-locales: pl_PL.utf8... 1097s Character set: UTF-8 1097s Source file: pl_PL 1097s Output: /tmp/tmp.pTkTWWCLMK/pl_PL.utf8 1098s run-with-locales: ru_RU=ISO-8859-5... 1098s Character set: ISO-8859-5 1098s Source file: ru_RU 1098s Output: /tmp/tmp.pTkTWWCLMK/ru_RU 1099s run-with-locales: ru_RU.utf8... 1099s Character set: UTF-8 1099s Source file: ru_RU 1099s Output: /tmp/tmp.pTkTWWCLMK/ru_RU.utf8 1099s run-with-locales: sr_RS=UTF-8... 1099s Character set: UTF-8 1099s Source file: sr_RS 1099s Output: /tmp/tmp.pTkTWWCLMK/sr_RS 1100s run-with-locales: sr_RS@latin=UTF-8... 1100s Character set: UTF-8 1100s Source file: sr_RS@latin 1100s Output: /tmp/tmp.pTkTWWCLMK/sr_RS@latin 1101s run-with-locales: sv_SE=ISO-8859-1... 1101s Character set: ISO-8859-1 1101s Source file: sv_SE 1101s Output: /tmp/tmp.pTkTWWCLMK/sv_SE 1101s run-with-locales: sv_SE.utf8... 1101s Character set: UTF-8 1101s Source file: sv_SE 1101s Output: /tmp/tmp.pTkTWWCLMK/sv_SE.utf8 1102s run-with-locales: tr_TR=ISO-8859-9... 1102s Character set: ISO-8859-9 1102s Source file: tr_TR 1102s Output: /tmp/tmp.pTkTWWCLMK/tr_TR 1103s run-with-locales: tr_TR.utf8... 1103s Character set: UTF-8 1103s Source file: tr_TR 1103s Output: /tmp/tmp.pTkTWWCLMK/tr_TR.utf8 1103s run-with-locales: tt_RU=UTF-8... 1103s Character set: UTF-8 1103s Source file: tt_RU 1103s Output: /tmp/tmp.pTkTWWCLMK/tt_RU 1104s run-with-locales: tt_RU.utf8... 1104s Character set: UTF-8 1104s Source file: tt_RU 1104s Output: /tmp/tmp.pTkTWWCLMK/tt_RU.utf8 1105s run-with-locales: tt_RU@iqtelif=UTF-8... 1105s Character set: UTF-8 1105s Source file: tt_RU@iqtelif 1105s Output: /tmp/tmp.pTkTWWCLMK/tt_RU@iqtelif 1106s /tmp/tmp.pTkTWWCLMK 1106s /tmp/tmp.pTkTWWCLMK/ru_RU.utf8 1106s /tmp/tmp.pTkTWWCLMK/ru_RU.utf8/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/ru_RU.utf8/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/ru_RU.utf8/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/ru_RU.utf8/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/ru_RU.utf8/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/ru_RU.utf8/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/ru_RU.utf8/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/ru_RU.utf8/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/ru_RU.utf8/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/ru_RU.utf8/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/ru_RU.utf8/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/ru_RU.utf8/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/en_US 1106s /tmp/tmp.pTkTWWCLMK/en_US/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/en_US/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/en_US/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/en_US/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/en_US/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/en_US/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/en_US/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/en_US/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/en_US/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/en_US/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/en_US/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/en_US/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/en_US/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/pl_PL 1106s /tmp/tmp.pTkTWWCLMK/pl_PL/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/pl_PL/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/pl_PL/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/pl_PL/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/pl_PL/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/pl_PL/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/pl_PL/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/pl_PL/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/pl_PL/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/pl_PL/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/pl_PL/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/pl_PL/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/pl_PL/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/en_US.utf8 1106s /tmp/tmp.pTkTWWCLMK/en_US.utf8/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/en_US.utf8/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/en_US.utf8/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/en_US.utf8/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/en_US.utf8/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/en_US.utf8/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/en_US.utf8/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/en_US.utf8/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/en_US.utf8/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/en_US.utf8/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/en_US.utf8/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/en_US.utf8/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/sv_SE 1106s /tmp/tmp.pTkTWWCLMK/sv_SE/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/sv_SE/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/sv_SE/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/sv_SE/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/sv_SE/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/sv_SE/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/sv_SE/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/sv_SE/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/sv_SE/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/sv_SE/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/sv_SE/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/sv_SE/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/sv_SE/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.utf8 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.utf8/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.utf8/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.utf8/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.utf8/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.utf8/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.utf8/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.utf8/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.utf8/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.utf8/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.utf8/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.utf8/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.utf8/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/sr_RS@latin 1106s /tmp/tmp.pTkTWWCLMK/sr_RS@latin/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/sr_RS@latin/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/sr_RS@latin/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/sr_RS@latin/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/sr_RS@latin/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/sr_RS@latin/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/sr_RS@latin/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/sr_RS@latin/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/sr_RS@latin/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/sr_RS@latin/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/sr_RS@latin/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/sr_RS@latin/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/sr_RS@latin/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/fa_IR.utf8 1106s /tmp/tmp.pTkTWWCLMK/fa_IR.utf8/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/fa_IR.utf8/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/fa_IR.utf8/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/fa_IR.utf8/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/fa_IR.utf8/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/fa_IR.utf8/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/fa_IR.utf8/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/fa_IR.utf8/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/fa_IR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/fa_IR.utf8/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/fa_IR.utf8/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/fa_IR.utf8/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/fa_IR.utf8/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/sv_SE.utf8 1106s /tmp/tmp.pTkTWWCLMK/sv_SE.utf8/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/sv_SE.utf8/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/sv_SE.utf8/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/sv_SE.utf8/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/sv_SE.utf8/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/sv_SE.utf8/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/sv_SE.utf8/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/sv_SE.utf8/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/sv_SE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/sv_SE.utf8/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/sv_SE.utf8/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/sv_SE.utf8/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/sv_SE.utf8/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/tr_TR.utf8 1106s /tmp/tmp.pTkTWWCLMK/tr_TR.utf8/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/tr_TR.utf8/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/tr_TR.utf8/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/tr_TR.utf8/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/tr_TR.utf8/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/tr_TR.utf8/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/tr_TR.utf8/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/tr_TR.utf8/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/tr_TR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/tr_TR.utf8/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/tr_TR.utf8/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/tr_TR.utf8/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/tr_TR.utf8/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/sr_RS 1106s /tmp/tmp.pTkTWWCLMK/sr_RS/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/sr_RS/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/sr_RS/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/sr_RS/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/sr_RS/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/sr_RS/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/sr_RS/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/sr_RS/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/sr_RS/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/sr_RS/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/sr_RS/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/sr_RS/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/sr_RS/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/en_GB 1106s /tmp/tmp.pTkTWWCLMK/en_GB/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/en_GB/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/en_GB/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/en_GB/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/en_GB/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/en_GB/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/en_GB/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/en_GB/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/en_GB/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/en_GB/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/en_GB/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/en_GB/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/en_GB/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/lt_LT.utf8 1106s /tmp/tmp.pTkTWWCLMK/lt_LT.utf8/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/lt_LT.utf8/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/lt_LT.utf8/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/lt_LT.utf8/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/lt_LT.utf8/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/lt_LT.utf8/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/lt_LT.utf8/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/lt_LT.utf8/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/lt_LT.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/lt_LT.utf8/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/lt_LT.utf8/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/lt_LT.utf8/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/lt_LT.utf8/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/ru_RU 1106s /tmp/tmp.pTkTWWCLMK/ru_RU/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/ru_RU/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/ru_RU/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/ru_RU/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/ru_RU/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/ru_RU/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/ru_RU/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/ru_RU/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/ru_RU/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/ru_RU/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/ru_RU/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/ru_RU/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/ru_RU/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/fa_IR 1106s /tmp/tmp.pTkTWWCLMK/fa_IR/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/fa_IR/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/fa_IR/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/fa_IR/LC_IDENTIFICATION 1106s /tmp/tmp.1..330 1106s # Running test: glib/gdbus-server-auth.test 1106s pTkTWWCLMK/fa_IR/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/fa_IR/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/fa_IR/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/fa_IR/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/fa_IR/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/fa_IR/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/fa_IR/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/fa_IR/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/fa_IR/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/fr_FR.utf8 1106s /tmp/tmp.pTkTWWCLMK/fr_FR.utf8/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/fr_FR.utf8/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/fr_FR.utf8/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/fr_FR.utf8/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/fr_FR.utf8/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/fr_FR.utf8/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/fr_FR.utf8/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/fr_FR.utf8/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/fr_FR.utf8/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/fr_FR.utf8/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/fr_FR.utf8/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/fr_FR.utf8/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.utf8 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.utf8/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.utf8/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.utf8/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.utf8/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.utf8/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.utf8/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.utf8/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.utf8/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.utf8/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.utf8/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.utf8/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.utf8/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/hr_HR.utf8 1106s /tmp/tmp.pTkTWWCLMK/hr_HR.utf8/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/hr_HR.utf8/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/hr_HR.utf8/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/hr_HR.utf8/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/hr_HR.utf8/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/hr_HR.utf8/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/hr_HR.utf8/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/hr_HR.utf8/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/hr_HR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/hr_HR.utf8/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/hr_HR.utf8/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/hr_HR.utf8/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/hr_HR.utf8/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/tt_RU.utf8 1106s /tmp/tmp.pTkTWWCLMK/tt_RU.utf8/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/tt_RU.utf8/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/tt_RU.utf8/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/tt_RU.utf8/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/tt_RU.utf8/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/tt_RU.utf8/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/tt_RU.utf8/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/tt_RU.utf8/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/tt_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/tt_RU.utf8/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/tt_RU.utf8/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/tt_RU.utf8/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/tt_RU.utf8/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/tt_RU@iqtelif 1106s /tmp/tmp.pTkTWWCLMK/tt_RU@iqtelif/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/tt_RU@iqtelif/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/tt_RU@iqtelif/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/tt_RU@iqtelif/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/tt_RU@iqtelif/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/tt_RU@iqtelif/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/tt_RU@iqtelif/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/tt_RU@iqtelif/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/tt_RU@iqtelif/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/tt_RU@iqtelif/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/tt_RU@iqtelif/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/tt_RU@iqtelif/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/tt_RU@iqtelif/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/de_DE 1106s /tmp/tmp.pTkTWWCLMK/de_DE/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/de_DE/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/de_DE/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/de_DE/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/de_DE/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/de_DE/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/de_DE/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/de_DE/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/de_DE/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/de_DE/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/de_DE/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/de_DE/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/de_DE/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/el_GR.utf8 1106s /tmp/tmp.pTkTWWCLMK/el_GR.utf8/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/el_GR.utf8/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/el_GR.utf8/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/el_GR.utf8/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/el_GR.utf8/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/el_GR.utf8/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/el_GR.utf8/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/el_GR.utf8/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/el_GR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/el_GR.utf8/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/el_GR.utf8/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/el_GR.utf8/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/el_GR.utf8/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/de_DE@euro.utf8 1106s /tmp/tmp.pTkTWWCLMK/de_DE@euro.utf8/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/de_DE@euro.utf8/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/de_DE@euro.utf8/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/de_DE@euro.utf8/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/de_DE@euro.utf8/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/de_DE@euro.utf8/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/de_DE@euro.utf8/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/de_DE@euro.utf8/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/de_DE@euro.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/de_DE@euro.utf8/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/de_DE@euro.utf8/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/de_DE@euro.utf8/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/de_DE@euro.utf8/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.eucjp 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.eucjp/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.eucjp/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.eucjp/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.eucjp/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.eucjp/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.eucjp/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.eucjp/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.eucjp/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.eucjp/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.eucjp/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.eucjp/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.eucjp/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/ja_JP.eucjp/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/tt_RU 1106s /tmp/tmp.pTkTWWCLMK/tt_RU/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/tt_RU/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/tt_RU/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/tt_RU/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/tt_RU/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/tt_RU/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/tt_RU/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/tt_RU/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/tt_RU/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/tt_RU/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/tt_RU/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/tt_RU/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/tt_RU/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/es_ES.utf8 1106s /tmp/tmp.pTkTWWCLMK/es_ES.utf8/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/es_ES.utf8/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/es_ES.utf8/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/es_ES.utf8/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/es_ES.utf8/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/es_ES.utf8/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/es_ES.utf8/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/es_ES.utf8/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/es_ES.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/es_ES.utf8/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/es_ES.utf8/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/es_ES.utf8/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/es_ES.utf8/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/en_GB.utf8 1106s /tmp/tmp.pTkTWWCLMK/en_GB.utf8/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/en_GB.utf8/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/en_GB.utf8/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/en_GB.utf8/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/en_GB.utf8/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/en_GB.utf8/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/en_GB.utf8/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/en_GB.utf8/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/en_GB.utf8/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/en_GB.utf8/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/en_GB.utf8/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/en_GB.utf8/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/de_DE.utf8 1106s /tmp/tmp.pTkTWWCLMK/de_DE.utf8/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/de_DE.utf8/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/de_DE.utf8/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/de_DE.utf8/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/de_DE.utf8/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/de_DE.utf8/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/de_DE.utf8/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/de_DE.utf8/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/de_DE.utf8/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/de_DE.utf8/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/de_DE.utf8/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/de_DE.utf8/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/tr_TR 1106s /tmp/tmp.pTkTWWCLMK/tr_TR/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/tr_TR/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/tr_TR/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/tr_TR/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/tr_TR/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/tr_TR/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/tr_TR/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/tr_TR/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/tr_TR/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/tr_TR/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/tr_TR/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/tr_TR/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/tr_TR/LC_NAME 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.iso88592 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.iso88592/LC_ADDRESS 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.iso88592/LC_COLLATE 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.iso88592/LC_TELEPHONE 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.iso88592/LC_IDENTIFICATION 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.iso88592/LC_TIME 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.iso88592/LC_PAPER 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.iso88592/LC_NUMERIC 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.iso88592/LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.iso88592/LC_MESSAGES/SYS_LC_MESSAGES 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.iso88592/LC_MEASUREMENT 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.iso88592/LC_CTYPE 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.iso88592/LC_MONETARY 1106s /tmp/tmp.pTkTWWCLMK/pl_PL.iso88592/LC_NAME 1106s TAP version 14 1106s # random seed: R02S733c79bc452903cc47f6e7913d67570e 1106s 1..9 1106s # Start of gdbus tests 1106s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/.dirs/home 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/.dirs/cache 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/.dirs/system-config2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/.dirs/config 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/.dirs/system-data2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/.dirs/data 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/.dirs/state 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/.dirs/runtime 1106s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_WPYEC3/gdbus-server-auth-ENYEC3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1106s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_WPYEC3/gdbus-server-auth-ENYEC3/dbus-YxskDuGk 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 2064 1106s ok 1 /gdbus/server-auth 1106s # Start of server-auth tests 1106s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/abstract/.dirs/home 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/abstract/.dirs/cache 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/abstract/.dirs/system-config2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/abstract/.dirs/config 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/abstract/.dirs/system-data2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/abstract/.dirs/data 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/abstract/.dirs/state 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/abstract/.dirs/runtime 1106s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_WPYEC3/gdbus-server-auth-TIQEC3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1106s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_WPYEC3/gdbus-server-auth-TIQEC3/dbus-iEDWY6bC 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1106s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1106s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 2064 1106s ok 2 /gdbus/server-auth/abstract 1106s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/tcp/.dirs/home 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/tcp/.dirs/cache 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/tcp/.dirs/system-config2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/tcp/.dirs/config 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/tcp/.dirs/system-data2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/tcp/.dirs/data 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/tcp/.dirs/state 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/tcp/.dirs/runtime 1106s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1106s ok 3 /gdbus/server-auth/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1106s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/.dirs/home 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/.dirs/cache 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/.dirs/system-config2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/.dirs/config 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/.dirs/system-data2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/.dirs/data 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/.dirs/state 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/.dirs/runtime 1106s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_WPYEC3/gdbus-server-auth-3MTEC3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1106s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_WPYEC3/gdbus-server-auth-3MTEC3/dbus-6RyYnrvP 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 2064 1106s ok 4 /gdbus/server-auth/anonymous 1106s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/.dirs/home 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/.dirs/cache 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/.dirs/system-config2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/.dirs/config 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/.dirs/system-data2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/.dirs/data 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/.dirs/state 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/.dirs/runtime 1106s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_WPYEC3/gdbus-server-auth-5ZXDC3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1106s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_WPYEC3/gdbus-server-auth-5ZXDC3/dbus-8xQrAgS9 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 2064 1106s ok 5 /gdbus/server-auth/external 1106s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/.dirs/home 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/.dirs/cache 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/.dirs/system-config2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/.dirs/config 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/.dirs/system-data2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/.dirs/data 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/.dirs/state 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/.dirs/runtime 1106s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_WPYEC3/gdbus-server-auth-13QDC3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1106s ok 6 /gdbus/server-auth/sha1 # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1106s # Start of anonymous tests 1106s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/tcp/.dirs/home 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/tcp/.dirs/cache 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/tcp/.dirs/config 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/tcp/.dirs/data 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/tcp/.dirs/state 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1106s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1106s ok 7 /gdbus/server-auth/anonymous/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1106s # End of anonymous tests 1106s # Start of external tests 1106s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/require-same-user/.dirs/home 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/require-same-user/.dirs/cache 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/require-same-user/.dirs/config 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/require-same-user/.dirs/data 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/require-same-user/.dirs/state 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/external/require-same-user/.dirs/runtime 1106s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_WPYEC3/gdbus-server-auth-ZRQDC3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1106s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_WPYEC3/gdbus-server-auth-ZRQDC3/dbus-EjCGjokI 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 2064 1106s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1106s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1106s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1106s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2064,uid=1000,gid=1000 1106s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 2064 1106s ok 8 /gdbus/server-auth/external/require-same-user 1106s # End of external tests 1106s # Start of sha1 tests 1106s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/tcp/.dirs/home 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/tcp/.dirs/cache 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/tcp/.dirs/config 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/tcp/.dirs/data 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/tcp/.dirs/state 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WPYEC3/gdbus/server-auth/sha1/tcp/.dirs/runtime 1106s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1106s ok 9 /gdbus/server-auth/sha1/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1106s # End of sha1 tests 1106s # End of server-auth tests 1106s # End of gdbus tests 1106s TAP version 14 1106s # random seed: R02S75bc026a2d22f3804d5473fd80a309f1 1106s 1..9 1106s # Start of glib tests 1106s # Start of testing tests 1106s # Start of protocol tests 1106s ok 1 /glib/testing/protocol/debug 1106s ok 2 /glib/testing/protocol/info 1106s ok 3 /glib/testing/protocol/message 1106s ok 4 /glib/testing/protocol/warning 1106s ok 5 /glib/testing/protocol/critical 1106s ok 6 /glib/testing/protocol/error 1106s ok 7 /glib/testing/protocol/gtest-message 1106s ok 8 /glib/testing/protocol/test-message 1106s ok 9 /glib/testing/protocol/test-error 1106s # End of protocol tests 1106s # End of testing tests 1106s # End of glib tests 1106s TAP version 13 1106s ok 1 __main__.TestMkenums.test_available_in 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpz13k8ffa 1106s # rspfile: False 1106s # /tmp/tmpz13k8ffa/tmpg0_q8_37.h: 1106s # typedef enum { 1106s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1106s # } GDBusServerFlags; 1106s # 1106s # /tmp/tmpz13k8ffa/tmp3oe4cgi1.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpz13k8ffa/tmp3oe4cgi1.template', '/tmp/tmpz13k8ffa/tmpg0_q8_37.h'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-production 1106s # filename: /tmp/tmpz13k8ffa/tmpg0_q8_37.h 1106s # basename: tmpg0_q8_37.h 1106s # enumeration-production 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-header 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-production 1106s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1106s # valuenick: user 1106s # valuenum: 4 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-tail 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s ok 2 __main__.TestMkenums.test_comma_in_enum_value 1106s ok - glib/gdbus-server-auth.test 1106s # Running test: glib/protocol.test 1106s ok - glib/protocol.test 1106s # Running test: glib/mkenums.py.test 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpjl7q6294 1106s # rspfile: False 1106s # /tmp/tmpjl7q6294/tmpz53za647.h: 1106s # typedef enum { 1106s # ENUM_VALUE_WITH_COMMA = ',', 1106s # } TestCommaEnum; 1106s # 1106s # /tmp/tmpjl7q6294/tmp_pjh12vj.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpjl7q6294/tmp_pjh12vj.template', '/tmp/tmpjl7q6294/tmpz53za647.h'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-production 1106s # filename: /tmp/tmpjl7q6294/tmpz53za647.h 1106s # basename: tmpz53za647.h 1106s # enumeration-production 1106s # EnumName: TestCommaEnum 1106s # enum_name: test_comma_enum 1106s # ENUMNAME: TEST_COMMA_ENUM 1106s # ENUMSHORT: COMMA_ENUM 1106s # ENUMPREFIX: TEST 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-header 1106s # EnumName: TestCommaEnum 1106s # enum_name: test_comma_enum 1106s # ENUMNAME: TEST_COMMA_ENUM 1106s # ENUMSHORT: COMMA_ENUM 1106s # ENUMPREFIX: TEST 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-production 1106s # VALUENAME: ENUM_VALUE_WITH_COMMA 1106s # valuenick: comma 1106s # valuenum: 44 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-tail 1106s # EnumName: TestCommaEnum 1106s # enum_name: test_comma_enum 1106s # ENUMNAME: TEST_COMMA_ENUM 1106s # ENUMSHORT: COMMA_ENUM 1106s # ENUMPREFIX: TEST 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s ok 3 __main__.TestMkenums.test_deprecated_in 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpqoviky7h 1106s # rspfile: False 1106s # /tmp/tmpqoviky7h/tmp6xs0dsq8.h: 1106s # typedef enum { 1106s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1106s # } GDBusServerFlags; 1106s # 1106s # /tmp/tmpqoviky7h/tmpf1wd4jf2.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpqoviky7h/tmpf1wd4jf2.template', '/tmp/tmpqoviky7h/tmp6xs0dsq8.h'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-production 1106s # filename: /tmp/tmpqoviky7h/tmp6xs0dsq8.h 1106s # basename: tmp6xs0dsq8.h 1106s # enumeration-production 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-header 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-production 1106s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1106s # valuenick: user 1106s # valuenum: 4 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-tail 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s ok 4 __main__.TestMkenums.test_deprecated_in_for 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpn39vpi_a 1106s # rspfile: False 1106s # /tmp/tmpn39vpi_a/tmpe1h3dok_.h: 1106s # typedef enum { 1106s # 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) 1106s # } GDBusServerFlags; 1106s # 1106s # /tmp/tmpn39vpi_a/tmpbai9w4xu.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpn39vpi_a/tmpbai9w4xu.template', '/tmp/tmpn39vpi_a/tmpe1h3dok_.h'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-production 1106s # filename: /tmp/tmpn39vpi_a/tmpe1h3dok_.h 1106s # basename: tmpe1h3dok_.h 1106s # enumeration-production 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-header 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-production 1106s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1106s # valuenick: user 1106s # valuenum: 4 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-tail 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s ok 5 __main__.TestMkenums.test_empty_header 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmp3kjzhv6v 1106s # rspfile: False 1106s # /tmp/tmp3kjzhv6v/tmpkyinspu8.h: 1106s # /tmp/tmp3kjzhv6v/tmp36f6qbt4.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp3kjzhv6v/tmp36f6qbt4.template', '/tmp/tmp3kjzhv6v/tmpkyinspu8.h'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s ok 6 __main__.TestMkenums.test_empty_template 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpcy9hm4xy 1106s # rspfile: False 1106s # /tmp/tmpcy9hm4xy/tmp_g7b5n5f.template: 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpcy9hm4xy/tmp_g7b5n5f.template'] 1106s # Return code: 0 1106s # Output: 1106s # /* 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. */ 1106s # 1106s # 1106s # /* Generated data ends here */ 1106s # Error: 1106s ok 7 __main__.TestMkenums.test_enum_name 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpkgx73kwg 1106s # rspfile: False 1106s # /tmp/tmpkgx73kwg/tmpgrqk3aez.h: 1106s # typedef enum _SomeEnumIdentifier { 1106s # ENUM_VALUE 1106s # } SomeEnumIdentifier; 1106s # 1106s # /tmp/tmpkgx73kwg/tmpyqk1eg7u.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpkgx73kwg/tmpyqk1eg7u.template', '/tmp/tmpkgx73kwg/tmpgrqk3aez.h'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-production 1106s # filename: /tmp/tmpkgx73kwg/tmpgrqk3aez.h 1106s # basename: tmpgrqk3aez.h 1106s # enumeration-production 1106s # EnumName: SomeEnumIdentifier 1106s # enum_name: some_enum_identifier 1106s # ENUMNAME: SOME_ENUM_IDENTIFIER 1106s # ENUMSHORT: ENUM_IDENTIFIER 1106s # ENUMPREFIX: SOME 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-header 1106s # EnumName: SomeEnumIdentifier 1106s # enum_name: some_enum_identifier 1106s # ENUMNAME: SOME_ENUM_IDENTIFIER 1106s # ENUMSHORT: ENUM_IDENTIFIER 1106s # ENUMPREFIX: SOME 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-production 1106s # VALUENAME: ENUM_VALUE 1106s # valuenick: value 1106s # valuenum: 0 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-tail 1106s # EnumName: SomeEnumIdentifier 1106s # enum_name: some_enum_identifier 1106s # ENUMNAME: SOME_ENUM_IDENTIFIER 1106s # ENUMSHORT: ENUM_IDENTIFIER 1106s # ENUMPREFIX: SOME 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s ok 8 __main__.TestMkenums.test_enum_private_public 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpvg5kzhy8 1106s # rspfile: False 1106s # /tmp/tmpvg5kzhy8/tmpcr4uicr5.h: 1106s # typedef enum { 1106s # ENUM_VALUE_PUBLIC1, 1106s # /*< private >*/ 1106s # ENUM_VALUE_PRIVATE, 1106s # } SomeEnumA 1106s # 1106s # /tmp/tmpvg5kzhy8/tmpvwzsszbx.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpvg5kzhy8/tmpvwzsszbx.template', '/tmp/tmpvg5kzhy8/tmpcr4uicr5.h'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-production 1106s # filename: /tmp/tmpvg5kzhy8/tmpcr4uicr5.h 1106s # basename: tmpcr4uicr5.h 1106s # enumeration-production 1106s # EnumName: SomeEnumA 1106s # enum_name: some_enum_a 1106s # ENUMNAME: SOME_ENUM_A 1106s # ENUMSHORT: ENUM_A 1106s # ENUMPREFIX: SOME 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-header 1106s # EnumName: SomeEnumA 1106s # enum_name: some_enum_a 1106s # ENUMNAME: SOME_ENUM_A 1106s # ENUMSHORT: ENUM_A 1106s # ENUMPREFIX: SOME 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-production 1106s # VALUENAME: ENUM_VALUE_PUBLIC1 1106s # valuenick: public1 1106s # valuenum: 0 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-tail 1106s # EnumName: SomeEnumA 1106s # enum_name: some_enum_a 1106s # ENUMNAME: SOME_ENUM_A 1106s # ENUMSHORT: ENUM_A 1106s # ENUMPREFIX: SOME 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s # 1106s # /tmp/tmpvg5kzhy8/tmp837gk7c8.h: 1106s # typedef enum { 1106s # /*< private >*/ 1106s # ENUM_VALUE_PRIVATE, 1106s # /*< public >*/ 1106s # ENUM_VALUE_PUBLIC2, 1106s # } SomeEnumB; 1106s # 1106s # /tmp/tmpvg5kzhy8/tmpd288_37e.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpvg5kzhy8/tmpd288_37e.template', '/tmp/tmpvg5kzhy8/tmp837gk7c8.h'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-production 1106s # filename: /tmp/tmpvg5kzhy8/tmp837gk7c8.h 1106s # basename: tmp837gk7c8.h 1106s # enumeration-production 1106s # EnumName: SomeEnumB 1106s # enum_name: some_enum_b 1106s # ENUMNAME: SOME_ENUM_B 1106s # ENUMSHORT: ENUM_B 1106s # ENUMPREFIX: SOME 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-header 1106s # EnumName: SomeEnumB 1106s # enum_name: some_enum_b 1106s # ENUMNAME: SOME_ENUM_B 1106s # ENUMSHORT: ENUM_B 1106s # ENUMPREFIX: SOME 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-production 1106s # VALUENAME: ENUM_VALUE_PUBLIC2 1106s # valuenick: public2 1106s # valuenum: 1 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-tail 1106s # EnumName: SomeEnumB 1106s # enum_name: some_enum_b 1106s # ENUMNAME: SOME_ENUM_B 1106s # ENUMSHORT: ENUM_B 1106s # ENUMPREFIX: SOME 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s ok 9 __main__.TestMkenums.test_enum_symbolic_expression 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpl7peu7x6 1106s # rspfile: False 1106s # /tmp/tmpl7peu7x6/tmpxuyy03zf.h: 1106s # typedef enum { 1106s # /*< private >*/ 1106s # ENUM_VALUE_PRIVATE = 5, 1106s # /*< public >*/ 1106s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1106s # } TestSymbolicEnum; 1106s # 1106s # /tmp/tmpl7peu7x6/tmp9gxei7_9.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpl7peu7x6/tmp9gxei7_9.template', '/tmp/tmpl7peu7x6/tmpxuyy03zf.h'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-production 1106s # filename: /tmp/tmpl7peu7x6/tmpxuyy03zf.h 1106s # basename: tmpxuyy03zf.h 1106s # enumeration-production 1106s # EnumName: TestSymbolicEnum 1106s # enum_name: test_symbolic_enum 1106s # ENUMNAME: TEST_SYMBOLIC_ENUM 1106s # ENUMSHORT: SYMBOLIC_ENUM 1106s # ENUMPREFIX: TEST 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-header 1106s # EnumName: TestSymbolicEnum 1106s # enum_name: test_symbolic_enum 1106s # ENUMNAME: TEST_SYMBOLIC_ENUM 1106s # ENUMSHORT: SYMBOLIC_ENUM 1106s # ENUMPREFIX: TEST 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-production 1106s # VALUENAME: ENUM_VALUE_PUBLIC 1106s # valuenick: public 1106s # valuenum: 7 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-tail 1106s # EnumName: TestSymbolicEnum 1106s # enum_name: test_symbolic_enum 1106s # ENUMNAME: TEST_SYMBOLIC_ENUM 1106s # ENUMSHORT: SYMBOLIC_ENUM 1106s # ENUMPREFIX: TEST 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s ok 10 __main__.TestMkenums.test_filename_basename_in_fhead_ftail 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpwz85ih2e 1106s # rspfile: False 1106s # /tmp/tmpwz85ih2e/tmp808ew2g2.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-tail ***/ 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpwz85ih2e/tmp808ew2g2.template'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # file-tail 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s # WARNING: @filename@ used in file-header section. 1106s # WARNING: @basename@ used in file-header section. 1106s # WARNING: @filename@ used in file-tail section. 1106s # WARNING: @basename@ used in file-tail section. 1106s ok 11 __main__.TestMkenums.test_help 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpl2x4sq5x 1106s # rspfile: False 1106s # Running: ['/usr/bin/glib-mkenums', '--help'] 1106s # Return code: 0 1106s # Output: 1106s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1106s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1106s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1106s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1106s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1106s # [--output OUTPUT] [--version] 1106s # [args ...] 1106s # 1106s # positional arguments: 1106s # args One or more input files, or a single argument 1106s # @rspfile_path pointing to a file that contains the 1106s # actual arguments 1106s # 1106s # options: 1106s # -h, --help show this help message and exit 1106s # --identifier-prefix IDPREFIX 1106s # Identifier prefix 1106s # --symbol-prefix SYMPREFIX 1106s # Symbol prefix 1106s # --fhead FHEAD Output file header 1106s # --ftail FTAIL Output file footer 1106s # --fprod FPROD Put out TEXT every time a new input file is being 1106s # processed. 1106s # --eprod EPROD Per enum text, produced prior to value iterations 1106s # --vhead VHEAD Value header, produced before iterating over enum 1106s # values 1106s # --vprod VPROD Value text, produced for each enum value. 1106s # --vtail VTAIL Value tail, produced after iterating over enum values 1106s # --comments COMMENT_TMPL 1106s # Comment structure 1106s # --template TEMPLATE Template file 1106s # --output OUTPUT 1106s # --version, -v Print version information 1106s # 1106s # Production text substitutions: 1106s # @EnumName@ PrefixTheXEnum 1106s # @enum_name@ prefix_the_xenum 1106s # @ENUMNAME@ PREFIX_THE_XENUM 1106s # @ENUMSHORT@ THE_XENUM 1106s # @ENUMPREFIX@ PREFIX 1106s # @enumsince@ the user-provided since value given 1106s # @VALUENAME@ PREFIX_THE_XVALUE 1106s # @valuenick@ the-xvalue 1106s # @valuenum@ the integer value (limited support, Since: 2.26) 1106s # @type@ either enum or flags 1106s # @Type@ either Enum or Flags 1106s # @TYPE@ either ENUM or FLAGS 1106s # @filename@ name of current input file 1106s # @basename@ base name of the current input file (Since: 2.22) 1106s # Error: 1106s ok 12 __main__.TestMkenums.test_no_args 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmped3i3xwa 1106s # rspfile: False 1106s # Running: ['/usr/bin/glib-mkenums'] 1106s # Return code: 0 1106s # Output: 1106s # /* 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. */ 1106s # 1106s # 1106s # /* Generated data ends here */ 1106s # Error: 1106s ok 13 __main__.TestMkenums.test_no_headers 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpgcpguqkb 1106s # rspfile: False 1106s # /tmp/tmpgcpguqkb/tmp9lvwdfy0.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpgcpguqkb/tmp9lvwdfy0.template'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s ok 14 __main__.TestMkenums.test_no_nick 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpe81hyadw 1106s # rspfile: False 1106s # /tmp/tmpe81hyadw/tmpkzq8cbk_.h: 1106s # typedef enum { 1106s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1106s # } GeglSamplerType; 1106s # 1106s # /tmp/tmpe81hyadw/tmpl31ftdkb.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpe81hyadw/tmpl31ftdkb.template', '/tmp/tmpe81hyadw/tmpkzq8cbk_.h'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-production 1106s # filename: /tmp/tmpe81hyadw/tmpkzq8cbk_.h 1106s # basename: tmpkzq8cbk_.h 1106s # enumeration-production 1106s # EnumName: GeglSamplerType 1106s # enum_name: gegl_sampler_type 1106s # ENUMNAME: GEGL_SAMPLER_TYPE 1106s # ENUMSHORT: SAMPLER_TYPE 1106s # ENUMPREFIX: GEGL 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-header 1106s # EnumName: GeglSamplerType 1106s # enum_name: gegl_sampler_type 1106s # ENUMNAME: GEGL_SAMPLER_TYPE 1106s # ENUMSHORT: SAMPLER_TYPE 1106s # ENUMPREFIX: GEGL 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-production 1106s # VALUENAME: GEGL_SAMPLER_NEAREST 1106s # valuenick: nearest 1106s # valuenum: 0 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-tail 1106s # EnumName: GeglSamplerType 1106s # enum_name: gegl_sampler_type 1106s # ENUMNAME: GEGL_SAMPLER_TYPE 1106s # ENUMSHORT: SAMPLER_TYPE 1106s # ENUMPREFIX: GEGL 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s ok 15 __main__.TestMkenums.test_non_utf8_encoding 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmp4s59hj8g 1106s # rspfile: False 1106s # /tmp/tmp4s59hj8g/tmpkngpqjvy.h: 1106s # /* Copyright © La Peña */ 1106s # typedef enum { 1106s # ENUM_VALUE 1106s # } SomeEnumIdentifier; 1106s # 1106s # /tmp/tmp4s59hj8g/tmp52a4xxxf.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp4s59hj8g/tmp52a4xxxf.template', '/tmp/tmp4s59hj8g/tmpkngpqjvy.h'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-production 1106s # filename: /tmp/tmp4s59hj8g/tmpkngpqjvy.h 1106s # basename: tmpkngpqjvy.h 1106s # enumeration-production 1106s # EnumName: SomeEnumIdentifier 1106s # enum_name: some_enum_identifier 1106s # ENUMNAME: SOME_ENUM_IDENTIFIER 1106s # ENUMSHORT: ENUM_IDENTIFIER 1106s # ENUMPREFIX: SOME 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-header 1106s # EnumName: SomeEnumIdentifier 1106s # enum_name: some_enum_identifier 1106s # ENUMNAME: SOME_ENUM_IDENTIFIER 1106s # ENUMSHORT: ENUM_IDENTIFIER 1106s # ENUMPREFIX: SOME 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-production 1106s # VALUENAME: ENUM_VALUE 1106s # valuenick: value 1106s # valuenum: 0 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-tail 1106s # EnumName: SomeEnumIdentifier 1106s # enum_name: some_enum_identifier 1106s # ENUMNAME: SOME_ENUM_IDENTIFIER 1106s # ENUMSHORT: ENUM_IDENTIFIER 1106s # ENUMPREFIX: SOME 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1106s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1106s ok 16 __main__.TestMkenums.test_reproducible 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmp5q64fh2n 1106s # rspfile: False 1106s # /tmp/tmp5q64fh2n/tmpnvwh43fl.template: template 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp5q64fh2n/tmpnvwh43fl.template', '/tmp/tmp5q64fh2n/tmpamfywlp01.h', '/tmp/tmp5q64fh2n/tmphrfr7xyh2.h'] 1106s # Return code: 0 1106s # Output: 1106s # /* 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. */ 1106s # 1106s # 1106s # /* Generated data ends here */ 1106s # Error: 1106s # 1106s # /tmp/tmp5q64fh2n/tmp2si8dwdx.template: template 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp5q64fh2n/tmp2si8dwdx.template', '/tmp/tmp5q64fh2n/tmphrfr7xyh2.h', '/tmp/tmp5q64fh2n/tmpamfywlp01.h'] 1106s # Return code: 0 1106s # Output: 1106s # /* 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. */ 1106s # 1106s # 1106s # /* Generated data ends here */ 1106s # Error: 1106s ok 17 __main__.TestMkenums.test_since 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpq3g5oj4q 1106s # rspfile: False 1106s # /tmp/tmpq3g5oj4q/tmpv5jh46yt.h: 1106s # typedef enum { /*< since=1.0 >*/ 1106s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1106s # } QmiWmsMessageProtocol; 1106s # 1106s # /tmp/tmpq3g5oj4q/tmpgd_8krb2.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpq3g5oj4q/tmpgd_8krb2.template', '/tmp/tmpq3g5oj4q/tmpv5jh46yt.h'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-production 1106s # filename: /tmp/tmpq3g5oj4q/tmpv5jh46yt.h 1106s # basename: tmpv5jh46yt.h 1106s # enumeration-production 1106s # EnumName: QmiWmsMessageProtocol 1106s # enum_name: qmi_wms_message_protocol 1106s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1106s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1106s # ENUMPREFIX: QMI 1106s # enumsince: 1.0 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-header 1106s # EnumName: QmiWmsMessageProtocol 1106s # enum_name: qmi_wms_message_protocol 1106s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1106s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1106s # ENUMPREFIX: QMI 1106s # enumsince: 1.0 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-production 1106s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1106s # valuenick: cdma 1106s # valuenum: 0 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-tail 1106s # EnumName: QmiWmsMessageProtocol 1106s # enum_name: qmi_wms_message_protocol 1106s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1106s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1106s # ENUMPREFIX: QMI 1106s # enumsince: 1.0 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s ok 18 __main__.TestMkenums.test_with_double_quotes 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpl6rhif5l 1106s # rspfile: False 1106s # /tmp/tmpl6rhif5l/tmpxsx4tcq2.h: 1106s # typedef enum { 1106s # FOO_VALUE /*< nick="eek, a comma" >*/ 1106s # } Foo; 1106s # 1106s # /tmp/tmpl6rhif5l/tmpggabc9a3.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpl6rhif5l/tmpggabc9a3.template', '/tmp/tmpl6rhif5l/tmpxsx4tcq2.h'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-production 1106s # filename: /tmp/tmpl6rhif5l/tmpxsx4tcq2.h 1106s # basename: tmpxsx4tcq2.h 1106s # enumeration-production 1106s # EnumName: Foo 1106s # enum_name: foo_ 1106s # ENUMNAME: FOO_ 1106s # ENUMSHORT: 1106s # ENUMPREFIX: FOO 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-header 1106s # EnumName: Foo 1106s # enum_name: foo_ 1106s # ENUMNAME: FOO_ 1106s # ENUMSHORT: 1106s # ENUMPREFIX: FOO 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-production 1106s # VALUENAME: FOO_VALUE 1106s # valuenick: eek, a comma 1106s # valuenum: 0 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-tail 1106s # EnumName: Foo 1106s # enum_name: foo_ 1106s # ENUMNAME: FOO_ 1106s # ENUMSHORT: 1106s # ENUMPREFIX: FOO 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s ok 19 __main__.TestRspMkenums.test_available_in 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpjnm5u6_b 1106s # rspfile: True 1106s # /tmp/tmpjnm5u6_b/tmp4oqtv6wi.h: 1106s # typedef enum { 1106s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1106s # } GDBusServerFlags; 1106s # 1106s # /tmp/tmpjnm5u6_b/tmptg_yi8vv.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Response file contains: --template /tmp/tmpjnm5u6_b/tmptg_yi8vv.template /tmp/tmpjnm5u6_b/tmp4oqtv6wi.h 1106s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpjnm5u6_b/tmpk6roqjnq'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-production 1106s # filename: /tmp/tmpjnm5u6_b/tmp4oqtv6wi.h 1106s # basename: tmp4oqtv6wi.h 1106s # enumeration-production 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-header 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-production 1106s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1106s # valuenick: user 1106s # valuenum: 4 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-tail 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s ok 20 __main__.TestRspMkenums.test_comma_in_enum_value 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmp1nlhi88t 1106s # rspfile: True 1106s # /tmp/tmp1nlhi88t/tmpi2t3nq0o.h: 1106s # typedef enum { 1106s # ENUM_VALUE_WITH_COMMA = ',', 1106s # } TestCommaEnum; 1106s # 1106s # /tmp/tmp1nlhi88t/tmpkp_l4ndx.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Response file contains: --template /tmp/tmp1nlhi88t/tmpkp_l4ndx.template /tmp/tmp1nlhi88t/tmpi2t3nq0o.h 1106s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp1nlhi88t/tmpop190rx8'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-production 1106s # filename: /tmp/tmp1nlhi88t/tmpi2t3nq0o.h 1106s # basename: tmpi2t3nq0o.h 1106s # enumeration-production 1106s # EnumName: TestCommaEnum 1106s # enum_name: test_comma_enum 1106s # ENUMNAME: TEST_COMMA_ENUM 1106s # ENUMSHORT: COMMA_ENUM 1106s # ENUMPREFIX: TEST 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-header 1106s # EnumName: TestCommaEnum 1106s # enum_name: test_comma_enum 1106s # ENUMNAME: TEST_COMMA_ENUM 1106s # ENUMSHORT: COMMA_ENUM 1106s # ENUMPREFIX: TEST 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-production 1106s # VALUENAME: ENUM_VALUE_WITH_COMMA 1106s # valuenick: comma 1106s # valuenum: 44 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # value-tail 1106s # EnumName: TestCommaEnum 1106s # enum_name: test_comma_enum 1106s # ENUMNAME: TEST_COMMA_ENUM 1106s # ENUMSHORT: COMMA_ENUM 1106s # ENUMPREFIX: TEST 1106s # enumsince: 1106s # type: enum 1106s # Type: Enum 1106s # TYPE: ENUM 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s ok 21 __main__.TestRspMkenums.test_deprecated_in 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpskisoslc 1106s # rspfile: True 1106s # /tmp/tmpskisoslc/tmp2pqxbw6c.h: 1106s # typedef enum { 1106s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1106s # } GDBusServerFlags; 1106s # 1106s # /tmp/tmpskisoslc/tmpzujksgxk.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Response file contains: --template /tmp/tmpskisoslc/tmpzujksgxk.template /tmp/tmpskisoslc/tmp2pqxbw6c.h 1106s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpskisoslc/tmpv2zio0t7'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-production 1106s # filename: /tmp/tmpskisoslc/tmp2pqxbw6c.h 1106s # basename: tmp2pqxbw6c.h 1106s # enumeration-production 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-header 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-production 1106s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1106s # valuenick: user 1106s # valuenum: 4 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-tail 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1106s ok 22 __main__.TestRspMkenums.test_deprecated_in_for 1106s # glib-mkenums: /usr/bin/glib-mkenums 1106s # tmpdir: /tmp/tmpgb3hqf_e 1106s # rspfile: True 1106s # /tmp/tmpgb3hqf_e/tmpac9848y2.h: 1106s # typedef enum { 1106s # 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) 1106s # } GDBusServerFlags; 1106s # 1106s # /tmp/tmpgb3hqf_e/tmpk_fitw2d.template: 1106s # /*** BEGIN file-header ***/ 1106s # file-header 1106s # /*** END file-header ***/ 1106s # 1106s # /*** BEGIN file-production ***/ 1106s # file-production 1106s # filename: @filename@ 1106s # basename: @basename@ 1106s # /*** END file-production ***/ 1106s # 1106s # /*** BEGIN enumeration-production ***/ 1106s # enumeration-production 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END enumeration-production ***/ 1106s # 1106s # /*** BEGIN value-header ***/ 1106s # value-header 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-header ***/ 1106s # 1106s # /*** BEGIN value-production ***/ 1106s # value-production 1106s # VALUENAME: @VALUENAME@ 1106s # valuenick: @valuenick@ 1106s # valuenum: @valuenum@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-production ***/ 1106s # 1106s # /*** BEGIN value-tail ***/ 1106s # value-tail 1106s # EnumName: @EnumName@ 1106s # enum_name: @enum_name@ 1106s # ENUMNAME: @ENUMNAME@ 1106s # ENUMSHORT: @ENUMSHORT@ 1106s # ENUMPREFIX: @ENUMPREFIX@ 1106s # enumsince: @enumsince@ 1106s # type: @type@ 1106s # Type: @Type@ 1106s # TYPE: @TYPE@ 1106s # /*** END value-tail ***/ 1106s # 1106s # /*** BEGIN comment ***/ 1106s # comment 1106s # comment: @comment@ 1106s # /*** END comment ***/ 1106s # 1106s # /*** BEGIN file-tail ***/ 1106s # file-tail 1106s # /*** END file-tail ***/ 1106s # 1106s # Response file contains: --template /tmp/tmpgb3hqf_e/tmpk_fitw2d.template /tmp/tmpgb3hqf_e/tmpac9848y2.h 1106s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpgb3hqf_e/tmp7td8t84e'] 1106s # Return code: 0 1106s # Output: 1106s # comment 1106s # 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. 1106s # 1106s # 1106s # file-header 1106s # file-production 1106s # filename: /tmp/tmpgb3hqf_e/tmpac9848y2.h 1106s # basename: tmpac9848y2.h 1106s # enumeration-production 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-header 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-production 1106s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1106s # valuenick: user 1106s # valuenum: 4 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # value-tail 1106s # EnumName: GDBusServerFlags 1106s # enum_name: g_dbus_server_flags 1106s # ENUMNAME: G_DBUS_SERVER_FLAGS 1106s # ENUMSHORT: DBUS_SERVER_FLAGS 1106s # ENUMPREFIX: G 1106s # enumsince: 1106s # type: flags 1106s # Type: Flags 1106s # TYPE: FLAGS 1106s # file-tail 1106s # 1106s # comment 1106s # comment: Generated data ends here 1106s # Error: 1107s ok 23 __main__.TestRspMkenums.test_empty_header 1107s # glib-mkenums: /usr/bin/glib-mkenums 1107s # tmpdir: /tmp/tmpzzpz7n2c 1107s # rspfile: True 1107s # /tmp/tmpzzpz7n2c/tmpn7ttelqp.h: 1107s # /tmp/tmpzzpz7n2c/tmp2_qxe6j9.template: 1107s # /*** BEGIN file-header ***/ 1107s # file-header 1107s # /*** END file-header ***/ 1107s # 1107s # /*** BEGIN file-production ***/ 1107s # file-production 1107s # filename: @filename@ 1107s # basename: @basename@ 1107s # /*** END file-production ***/ 1107s # 1107s # /*** BEGIN enumeration-production ***/ 1107s # enumeration-production 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END enumeration-production ***/ 1107s # 1107s # /*** BEGIN value-header ***/ 1107s # value-header 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-header ***/ 1107s # 1107s # /*** BEGIN value-production ***/ 1107s # value-production 1107s # VALUENAME: @VALUENAME@ 1107s # valuenick: @valuenick@ 1107s # valuenum: @valuenum@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-production ***/ 1107s # 1107s # /*** BEGIN value-tail ***/ 1107s # value-tail 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-tail ***/ 1107s # 1107s # /*** BEGIN comment ***/ 1107s # comment 1107s # comment: @comment@ 1107s # /*** END comment ***/ 1107s # 1107s # /*** BEGIN file-tail ***/ 1107s # file-tail 1107s # /*** END file-tail ***/ 1107s # 1107s # Response file contains: --template /tmp/tmpzzpz7n2c/tmp2_qxe6j9.template /tmp/tmpzzpz7n2c/tmpn7ttelqp.h 1107s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpzzpz7n2c/tmpp5_g75u0'] 1107s # Return code: 0 1107s # Output: 1107s # comment 1107s # 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. 1107s # 1107s # 1107s # file-header 1107s # file-tail 1107s # 1107s # comment 1107s # comment: Generated data ends here 1107s # Error: 1107s ok 24 __main__.TestRspMkenums.test_empty_template 1107s # glib-mkenums: /usr/bin/glib-mkenums 1107s # tmpdir: /tmp/tmpj2f2t3b_ 1107s # rspfile: True 1107s # /tmp/tmpj2f2t3b_/tmp94cxpo4p.template: 1107s # Response file contains: --template /tmp/tmpj2f2t3b_/tmp94cxpo4p.template 1107s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpj2f2t3b_/tmpwx_1u7ks'] 1107s # Return code: 0 1107s # Output: 1107s # /* 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. */ 1107s # 1107s # 1107s # /* Generated data ends here */ 1107s # Error: 1107s ok 25 __main__.TestRspMkenums.test_enum_name 1107s # glib-mkenums: /usr/bin/glib-mkenums 1107s # tmpdir: /tmp/tmpd2r2836r 1107s # rspfile: True 1107s # /tmp/tmpd2r2836r/tmpjqv3jyv8.h: 1107s # typedef enum _SomeEnumIdentifier { 1107s # ENUM_VALUE 1107s # } SomeEnumIdentifier; 1107s # 1107s # /tmp/tmpd2r2836r/tmp9ixfrant.template: 1107s # /*** BEGIN file-header ***/ 1107s # file-header 1107s # /*** END file-header ***/ 1107s # 1107s # /*** BEGIN file-production ***/ 1107s # file-production 1107s # filename: @filename@ 1107s # basename: @basename@ 1107s # /*** END file-production ***/ 1107s # 1107s # /*** BEGIN enumeration-production ***/ 1107s # enumeration-production 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END enumeration-production ***/ 1107s # 1107s # /*** BEGIN value-header ***/ 1107s # value-header 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-header ***/ 1107s # 1107s # /*** BEGIN value-production ***/ 1107s # value-production 1107s # VALUENAME: @VALUENAME@ 1107s # valuenick: @valuenick@ 1107s # valuenum: @valuenum@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-production ***/ 1107s # 1107s # /*** BEGIN value-tail ***/ 1107s # value-tail 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-tail ***/ 1107s # 1107s # /*** BEGIN comment ***/ 1107s # comment 1107s # comment: @comment@ 1107s # /*** END comment ***/ 1107s # 1107s # /*** BEGIN file-tail ***/ 1107s # file-tail 1107s # /*** END file-tail ***/ 1107s # 1107s # Response file contains: --template /tmp/tmpd2r2836r/tmp9ixfrant.template /tmp/tmpd2r2836r/tmpjqv3jyv8.h 1107s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpd2r2836r/tmpau2avl6f'] 1107s # Return code: 0 1107s # Output: 1107s # comment 1107s # 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. 1107s # 1107s # 1107s # file-header 1107s # file-production 1107s # filename: /tmp/tmpd2r2836r/tmpjqv3jyv8.h 1107s # basename: tmpjqv3jyv8.h 1107s # enumeration-production 1107s # EnumName: SomeEnumIdentifier 1107s # enum_name: some_enum_identifier 1107s # ENUMNAME: SOME_ENUM_IDENTIFIER 1107s # ENUMSHORT: ENUM_IDENTIFIER 1107s # ENUMPREFIX: SOME 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-header 1107s # EnumName: SomeEnumIdentifier 1107s # enum_name: some_enum_identifier 1107s # ENUMNAME: SOME_ENUM_IDENTIFIER 1107s # ENUMSHORT: ENUM_IDENTIFIER 1107s # ENUMPREFIX: SOME 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-production 1107s # VALUENAME: ENUM_VALUE 1107s # valuenick: value 1107s # valuenum: 0 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-tail 1107s # EnumName: SomeEnumIdentifier 1107s # enum_name: some_enum_identifier 1107s # ENUMNAME: SOME_ENUM_IDENTIFIER 1107s # ENUMSHORT: ENUM_IDENTIFIER 1107s # ENUMPREFIX: SOME 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # file-tail 1107s # 1107s # comment 1107s # comment: Generated data ends here 1107s # Error: 1107s ok 26 __main__.TestRspMkenums.test_enum_private_public 1107s # glib-mkenums: /usr/bin/glib-mkenums 1107s # tmpdir: /tmp/tmp0fwpylsu 1107s # rspfile: True 1107s # /tmp/tmp0fwpylsu/tmppasyvnmr.h: 1107s # typedef enum { 1107s # ENUM_VALUE_PUBLIC1, 1107s # /*< private >*/ 1107s # ENUM_VALUE_PRIVATE, 1107s # } SomeEnumA 1107s # 1107s # /tmp/tmp0fwpylsu/tmpa561g0_g.template: 1107s # /*** BEGIN file-header ***/ 1107s # file-header 1107s # /*** END file-header ***/ 1107s # 1107s # /*** BEGIN file-production ***/ 1107s # file-production 1107s # filename: @filename@ 1107s # basename: @basename@ 1107s # /*** END file-production ***/ 1107s # 1107s # /*** BEGIN enumeration-production ***/ 1107s # enumeration-production 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END enumeration-production ***/ 1107s # 1107s # /*** BEGIN value-header ***/ 1107s # value-header 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-header ***/ 1107s # 1107s # /*** BEGIN value-production ***/ 1107s # value-production 1107s # VALUENAME: @VALUENAME@ 1107s # valuenick: @valuenick@ 1107s # valuenum: @valuenum@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-production ***/ 1107s # 1107s # /*** BEGIN value-tail ***/ 1107s # value-tail 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-tail ***/ 1107s # 1107s # /*** BEGIN comment ***/ 1107s # comment 1107s # comment: @comment@ 1107s # /*** END comment ***/ 1107s # 1107s # /*** BEGIN file-tail ***/ 1107s # file-tail 1107s # /*** END file-tail ***/ 1107s # 1107s # Response file contains: --template /tmp/tmp0fwpylsu/tmpa561g0_g.template /tmp/tmp0fwpylsu/tmppasyvnmr.h 1107s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp0fwpylsu/tmpuivr3c7u'] 1107s # Return code: 0 1107s # Output: 1107s # comment 1107s # 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. 1107s # 1107s # 1107s # file-header 1107s # file-production 1107s # filename: /tmp/tmp0fwpylsu/tmppasyvnmr.h 1107s # basename: tmppasyvnmr.h 1107s # enumeration-production 1107s # EnumName: SomeEnumA 1107s # enum_name: some_enum_a 1107s # ENUMNAME: SOME_ENUM_A 1107s # ENUMSHORT: ENUM_A 1107s # ENUMPREFIX: SOME 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-header 1107s # EnumName: SomeEnumA 1107s # enum_name: some_enum_a 1107s # ENUMNAME: SOME_ENUM_A 1107s # ENUMSHORT: ENUM_A 1107s # ENUMPREFIX: SOME 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-production 1107s # VALUENAME: ENUM_VALUE_PUBLIC1 1107s # valuenick: public1 1107s # valuenum: 0 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-tail 1107s # EnumName: SomeEnumA 1107s # enum_name: some_enum_a 1107s # ENUMNAME: SOME_ENUM_A 1107s # ENUMSHORT: ENUM_A 1107s # ENUMPREFIX: SOME 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # file-tail 1107s # 1107s # comment 1107s # comment: Generated data ends here 1107s # Error: 1107s # 1107s # /tmp/tmp0fwpylsu/tmpq9tswg15.h: 1107s # typedef enum { 1107s # /*< private >*/ 1107s # ENUM_VALUE_PRIVATE, 1107s # /*< public >*/ 1107s # ENUM_VALUE_PUBLIC2, 1107s # } SomeEnumB; 1107s # 1107s # /tmp/tmp0fwpylsu/tmpqw0n6ubg.template: 1107s # /*** BEGIN file-header ***/ 1107s # file-header 1107s # /*** END file-header ***/ 1107s # 1107s # /*** BEGIN file-production ***/ 1107s # file-production 1107s # filename: @filename@ 1107s # basename: @basename@ 1107s # /*** END file-production ***/ 1107s # 1107s # /*** BEGIN enumeration-production ***/ 1107s # enumeration-production 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END enumeration-production ***/ 1107s # 1107s # /*** BEGIN value-header ***/ 1107s # value-header 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-header ***/ 1107s # 1107s # /*** BEGIN value-production ***/ 1107s # value-production 1107s # VALUENAME: @VALUENAME@ 1107s # valuenick: @valuenick@ 1107s # valuenum: @valuenum@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-production ***/ 1107s # 1107s # /*** BEGIN value-tail ***/ 1107s # value-tail 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-tail ***/ 1107s # 1107s # /*** BEGIN comment ***/ 1107s # comment 1107s # comment: @comment@ 1107s # /*** END comment ***/ 1107s # 1107s # /*** BEGIN file-tail ***/ 1107s # file-tail 1107s # /*** END file-tail ***/ 1107s # 1107s # Response file contains: --template /tmp/tmp0fwpylsu/tmpqw0n6ubg.template /tmp/tmp0fwpylsu/tmpq9tswg15.h 1107s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp0fwpylsu/tmpbrhbin14'] 1107s # Return code: 0 1107s # Output: 1107s # comment 1107s # 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. 1107s # 1107s # 1107s # file-header 1107s # file-production 1107s # filename: /tmp/tmp0fwpylsu/tmpq9tswg15.h 1107s # basename: tmpq9tswg15.h 1107s # enumeration-production 1107s # EnumName: SomeEnumB 1107s # enum_name: some_enum_b 1107s # ENUMNAME: SOME_ENUM_B 1107s # ENUMSHORT: ENUM_B 1107s # ENUMPREFIX: SOME 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-header 1107s # EnumName: SomeEnumB 1107s # enum_name: some_enum_b 1107s # ENUMNAME: SOME_ENUM_B 1107s # ENUMSHORT: ENUM_B 1107s # ENUMPREFIX: SOME 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-production 1107s # VALUENAME: ENUM_VALUE_PUBLIC2 1107s # valuenick: public2 1107s # valuenum: 1 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-tail 1107s # EnumName: SomeEnumB 1107s # enum_name: some_enum_b 1107s # ENUMNAME: SOME_ENUM_B 1107s # ENUMSHORT: ENUM_B 1107s # ENUMPREFIX: SOME 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # file-tail 1107s # 1107s # comment 1107s # comment: Generated data ends here 1107s # Error: 1107s ok 27 __main__.TestRspMkenums.test_enum_symbolic_expression 1107s # glib-mkenums: /usr/bin/glib-mkenums 1107s # tmpdir: /tmp/tmpb82uaf4r 1107s # rspfile: True 1107s # /tmp/tmpb82uaf4r/tmpvapgubtd.h: 1107s # typedef enum { 1107s # /*< private >*/ 1107s # ENUM_VALUE_PRIVATE = 5, 1107s # /*< public >*/ 1107s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1107s # } TestSymbolicEnum; 1107s # 1107s # /tmp/tmpb82uaf4r/tmp1pkj9vmo.template: 1107s # /*** BEGIN file-header ***/ 1107s # file-header 1107s # /*** END file-header ***/ 1107s # 1107s # /*** BEGIN file-production ***/ 1107s # file-production 1107s # filename: @filename@ 1107s # basename: @basename@ 1107s # /*** END file-production ***/ 1107s # 1107s # /*** BEGIN enumeration-production ***/ 1107s # enumeration-production 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END enumeration-production ***/ 1107s # 1107s # /*** BEGIN value-header ***/ 1107s # value-header 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-header ***/ 1107s # 1107s # /*** BEGIN value-production ***/ 1107s # value-production 1107s # VALUENAME: @VALUENAME@ 1107s # valuenick: @valuenick@ 1107s # valuenum: @valuenum@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-production ***/ 1107s # 1107s # /*** BEGIN value-tail ***/ 1107s # value-tail 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-tail ***/ 1107s # 1107s # /*** BEGIN comment ***/ 1107s # comment 1107s # comment: @comment@ 1107s # /*** END comment ***/ 1107s # 1107s # /*** BEGIN file-tail ***/ 1107s # file-tail 1107s # /*** END file-tail ***/ 1107s # 1107s # Response file contains: --template /tmp/tmpb82uaf4r/tmp1pkj9vmo.template /tmp/tmpb82uaf4r/tmpvapgubtd.h 1107s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpb82uaf4r/tmpnoxl7kst'] 1107s # Return code: 0 1107s # Output: 1107s # comment 1107s # 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. 1107s # 1107s # 1107s # file-header 1107s # file-production 1107s # filename: /tmp/tmpb82uaf4r/tmpvapgubtd.h 1107s # basename: tmpvapgubtd.h 1107s # enumeration-production 1107s # EnumName: TestSymbolicEnum 1107s # enum_name: test_symbolic_enum 1107s # ENUMNAME: TEST_SYMBOLIC_ENUM 1107s # ENUMSHORT: SYMBOLIC_ENUM 1107s # ENUMPREFIX: TEST 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-header 1107s # EnumName: TestSymbolicEnum 1107s # enum_name: test_symbolic_enum 1107s # ENUMNAME: TEST_SYMBOLIC_ENUM 1107s # ENUMSHORT: SYMBOLIC_ENUM 1107s # ENUMPREFIX: TEST 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-production 1107s # VALUENAME: ENUM_VALUE_PUBLIC 1107s # valuenick: public 1107s # valuenum: 7 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-tail 1107s # EnumName: TestSymbolicEnum 1107s # enum_name: test_symbolic_enum 1107s # ENUMNAME: TEST_SYMBOLIC_ENUM 1107s # ENUMSHORT: SYMBOLIC_ENUM 1107s # ENUMPREFIX: TEST 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # file-tail 1107s # 1107s # comment 1107s # comment: Generated data ends here 1107s # Error: 1107s ok 28 __main__.TestRspMkenums.test_filename_basename_in_fhead_ftail 1107s # glib-mkenums: /usr/bin/glib-mkenums 1107s # tmpdir: /tmp/tmp_dpgq4mo 1107s # rspfile: True 1107s # /tmp/tmp_dpgq4mo/tmpszbd2q42.template: 1107s # /*** BEGIN file-header ***/ 1107s # file-header 1107s # filename: @filename@ 1107s # basename: @basename@ 1107s # /*** END file-header ***/ 1107s # 1107s # /*** BEGIN comment ***/ 1107s # comment 1107s # comment: @comment@ 1107s # /*** END comment ***/ 1107s # 1107s # /*** BEGIN file-tail ***/ 1107s # file-tail 1107s # filename: @filename@ 1107s # basename: @basename@ 1107s # /*** END file-tail ***/ 1107s # Response file contains: --template /tmp/tmp_dpgq4mo/tmpszbd2q42.template 1107s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_dpgq4mo/tmpg3ymdjg_'] 1107s # Return code: 0 1107s # Output: 1107s # comment 1107s # 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. 1107s # 1107s # 1107s # file-header 1107s # filename: @filename@ 1107s # basename: @basename@ 1107s # file-tail 1107s # filename: @filename@ 1107s # basename: @basename@ 1107s # 1107s # comment 1107s # comment: Generated data ends here 1107s # Error: 1107s # WARNING: @filename@ used in file-header section. 1107s # WARNING: @basename@ used in file-header section. 1107s # WARNING: @filename@ used in file-tail section. 1107s # WARNING: @basename@ used in file-tail section. 1107s ok 29 __main__.TestRspMkenums.test_help 1107s # glib-mkenums: /usr/bin/glib-mkenums 1107s # tmpdir: /tmp/tmps4n4mm0b 1107s # rspfile: True 1107s # Response file contains: --help 1107s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmps4n4mm0b/tmpe4sxac_7'] 1107s # Return code: 0 1107s # Output: 1107s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1107s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1107s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1107s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1107s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1107s # [--output OUTPUT] [--version] 1107s # [args ...] 1107s # 1107s # positional arguments: 1107s # args One or more input files, or a single argument 1107s # @rspfile_path pointing to a file that contains the 1107s # actual arguments 1107s # 1107s # options: 1107s # -h, --help show this help message and exit 1107s # --identifier-prefix IDPREFIX 1107s # Identifier prefix 1107s # --symbol-prefix SYMPREFIX 1107s # Symbol prefix 1107s # --fhead FHEAD Output file header 1107s # --ftail FTAIL Output file footer 1107s # --fprod FPROD Put out TEXT every time a new input file is being 1107s # processed. 1107s # --eprod EPROD Per enum text, produced prior to value iterations 1107s # --vhead VHEAD Value header, produced before iterating over enum 1107s # values 1107s # --vprod VPROD Value text, produced for each enum value. 1107s # --vtail VTAIL Value tail, produced after iterating over enum values 1107s # --comments COMMENT_TMPL 1107s # Comment structure 1107s # --template TEMPLATE Template file 1107s # --output OUTPUT 1107s # --version, -v Print version information 1107s # 1107s # Production text substitutions: 1107s # @EnumName@ PrefixTheXEnum 1107s # @enum_name@ prefix_the_xenum 1107s # @ENUMNAME@ PREFIX_THE_XENUM 1107s # @ENUMSHORT@ THE_XENUM 1107s # @ENUMPREFIX@ PREFIX 1107s # @enumsince@ the user-provided since value given 1107s # @VALUENAME@ PREFIX_THE_XVALUE 1107s # @valuenick@ the-xvalue 1107s # @valuenum@ the integer value (limited support, Since: 2.26) 1107s # @type@ either enum or flags 1107s # @Type@ either Enum or Flags 1107s # @TYPE@ either ENUM or FLAGS 1107s # @filename@ name of current input file 1107s # @basename@ base name of the current input file (Since: 2.22) 1107s # Error: 1107s ok 30 __main__.TestRspMkenums.test_no_args 1107s # glib-mkenums: /usr/bin/glib-mkenums 1107s # tmpdir: /tmp/tmpsiat4wvh 1107s # rspfile: True 1107s # Response file contains: 1107s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpsiat4wvh/tmp4qnr2ukg'] 1107s # Return code: 0 1107s # Output: 1107s # /* 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. */ 1107s # 1107s # 1107s # /* Generated data ends here */ 1107s # Error: 1107s ok 31 __main__.TestRspMkenums.test_no_headers 1107s # glib-mkenums: /usr/bin/glib-mkenums 1107s # tmpdir: /tmp/tmpsxc9aeix 1107s # rspfile: True 1107s # /tmp/tmpsxc9aeix/tmphng78903.template: 1107s # /*** BEGIN file-header ***/ 1107s # file-header 1107s # /*** END file-header ***/ 1107s # 1107s # /*** BEGIN file-production ***/ 1107s # file-production 1107s # filename: @filename@ 1107s # basename: @basename@ 1107s # /*** END file-production ***/ 1107s # 1107s # /*** BEGIN enumeration-production ***/ 1107s # enumeration-production 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END enumeration-production ***/ 1107s # 1107s # /*** BEGIN value-header ***/ 1107s # value-header 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-header ***/ 1107s # 1107s # /*** BEGIN value-production ***/ 1107s # value-production 1107s # VALUENAME: @VALUENAME@ 1107s # valuenick: @valuenick@ 1107s # valuenum: @valuenum@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-production ***/ 1107s # 1107s # /*** BEGIN value-tail ***/ 1107s # value-tail 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-tail ***/ 1107s # 1107s # /*** BEGIN comment ***/ 1107s # comment 1107s # comment: @comment@ 1107s # /*** END comment ***/ 1107s # 1107s # /*** BEGIN file-tail ***/ 1107s # file-tail 1107s # /*** END file-tail ***/ 1107s # 1107s # Response file contains: --template /tmp/tmpsxc9aeix/tmphng78903.template 1107s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpsxc9aeix/tmp465ic6nw'] 1107s # Return code: 0 1107s # Output: 1107s # comment 1107s # 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. 1107s # 1107s # 1107s # file-header 1107s # file-tail 1107s # 1107s # comment 1107s # comment: Generated data ends here 1107s # Error: 1107s ok 32 __main__.TestRspMkenums.test_no_nick 1107s # glib-mkenums: /usr/bin/glib-mkenums 1107s # tmpdir: /tmp/tmp8sg9ob9h 1107s # rspfile: True 1107s # /tmp/tmp8sg9ob9h/tmp19gx8kuy.h: 1107s # typedef enum { 1107s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1107s # } GeglSamplerType; 1107s # 1107s # /tmp/tmp8sg9ob9h/tmp7qd60e18.template: 1107s # /*** BEGIN file-header ***/ 1107s # file-header 1107s # /*** END file-header ***/ 1107s # 1107s # /*** BEGIN file-production ***/ 1107s # file-production 1107s # filename: @filename@ 1107s # basename: @basename@ 1107s # /*** END file-production ***/ 1107s # 1107s # /*** BEGIN enumeration-production ***/ 1107s # enumeration-production 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END enumeration-production ***/ 1107s # 1107s # /*** BEGIN value-header ***/ 1107s # value-header 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-header ***/ 1107s # 1107s # /*** BEGIN value-production ***/ 1107s # value-production 1107s # VALUENAME: @VALUENAME@ 1107s # valuenick: @valuenick@ 1107s # valuenum: @valuenum@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-production ***/ 1107s # 1107s # /*** BEGIN value-tail ***/ 1107s # value-tail 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-tail ***/ 1107s # 1107s # /*** BEGIN comment ***/ 1107s # comment 1107s # comment: @comment@ 1107s # /*** END comment ***/ 1107s # 1107s # /*** BEGIN file-tail ***/ 1107s # file-tail 1107s # /*** END file-tail ***/ 1107s # 1107s # Response file contains: --template /tmp/tmp8sg9ob9h/tmp7qd60e18.template /tmp/tmp8sg9ob9h/tmp19gx8kuy.h 1107s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp8sg9ob9h/tmphufiez99'] 1107s # Return code: 0 1107s # Output: 1107s # comment 1107s # 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. 1107s # 1107s # 1107s # file-header 1107s # file-production 1107s # filename: /tmp/tmp8sg9ob9h/tmp19gx8kuy.h 1107s # basename: tmp19gx8kuy.h 1107s # enumeration-production 1107s # EnumName: GeglSamplerType 1107s # enum_name: gegl_sampler_type 1107s # ENUMNAME: GEGL_SAMPLER_TYPE 1107s # ENUMSHORT: SAMPLER_TYPE 1107s # ENUMPREFIX: GEGL 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-header 1107s # EnumName: GeglSamplerType 1107s # enum_name: gegl_sampler_type 1107s # ENUMNAME: GEGL_SAMPLER_TYPE 1107s # ENUMSHORT: SAMPLER_TYPE 1107s # ENUMPREFIX: GEGL 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-production 1107s # VALUENAME: GEGL_SAMPLER_NEAREST 1107s # valuenick: nearest 1107s # valuenum: 0 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-tail 1107s # EnumName: GeglSamplerType 1107s # enum_name: gegl_sampler_type 1107s # ENUMNAME: GEGL_SAMPLER_TYPE 1107s # ENUMSHORT: SAMPLER_TYPE 1107s # ENUMPREFIX: GEGL 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # file-tail 1107s # 1107s # comment 1107s # comment: Generated data ends here 1107s # Error: 1107s ok 33 __main__.TestRspMkenums.test_non_utf8_encoding 1107s # glib-mkenums: /usr/bin/glib-mkenums 1107s # tmpdir: /tmp/tmp0tw5degn 1107s # rspfile: True 1107s # /tmp/tmp0tw5degn/tmpi58k1u_b.h: 1107s # /* Copyright © La Peña */ 1107s # typedef enum { 1107s # ENUM_VALUE 1107s # } SomeEnumIdentifier; 1107s # 1107s # /tmp/tmp0tw5degn/tmpu_5mhfg4.template: 1107s # /*** BEGIN file-header ***/ 1107s # file-header 1107s # /*** END file-header ***/ 1107s # 1107s # /*** BEGIN file-production ***/ 1107s # file-production 1107s # filename: @filename@ 1107s # basename: @basename@ 1107s # /*** END file-production ***/ 1107s # 1107s # /*** BEGIN enumeration-production ***/ 1107s # enumeration-production 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END enumeration-production ***/ 1107s # 1107s # /*** BEGIN value-header ***/ 1107s # value-header 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-header ***/ 1107s # 1107s # /*** BEGIN value-production ***/ 1107s # value-production 1107s # VALUENAME: @VALUENAME@ 1107s # valuenick: @valuenick@ 1107s # valuenum: @valuenum@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-production ***/ 1107s # 1107s # /*** BEGIN value-tail ***/ 1107s # value-tail 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-tail ***/ 1107s # 1107s # /*** BEGIN comment ***/ 1107s # comment 1107s # comment: @comment@ 1107s # /*** END comment ***/ 1107s # 1107s # /*** BEGIN file-tail ***/ 1107s # file-tail 1107s # /*** END file-tail ***/ 1107s # 1107s # Response file contains: --template /tmp/tmp0tw5degn/tmpu_5mhfg4.template /tmp/tmp0tw5degn/tmpi58k1u_b.h 1107s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp0tw5degn/tmp4wfbhky8'] 1107s # Return code: 0 1107s # Output: 1107s # comment 1107s # 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. 1107s # 1107s # 1107s # file-header 1107s # file-production 1107s # filename: /tmp/tmp0tw5degn/tmpi58k1u_b.h 1107s # basename: tmpi58k1u_b.h 1107s # enumeration-production 1107s # EnumName: SomeEnumIdentifier 1107s # enum_name: some_enum_identifier 1107s # ENUMNAME: SOME_ENUM_IDENTIFIER 1107s # ENUMSHORT: ENUM_IDENTIFIER 1107s # ENUMPREFIX: SOME 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-header 1107s # EnumName: SomeEnumIdentifier 1107s # enum_name: some_enum_identifier 1107s # ENUMNAME: SOME_ENUM_IDENTIFIER 1107s # ENUMSHORT: ENUM_IDENTIFIER 1107s # ENUMPREFIX: SOME 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-production 1107s # VALUENAME: ENUM_VALUE 1107s # valuenick: value 1107s # valuenum: 0 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-tail 1107s # EnumName: SomeEnumIdentifier 1107s # enum_name: some_enum_identifier 1107s # ENUMNAME: SOME_ENUM_IDENTIFIER 1107s # ENUMSHORT: ENUM_IDENTIFIER 1107s # ENUMPREFIX: SOME 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # file-tail 1107s # 1107s # comment 1107s # comment: Generated data ends here 1107s # Error: 1107s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1107s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1107s ok 34 __main__.TestRspMkenums.test_reproducible 1107s # glib-mkenums: /usr/bin/glib-mkenums 1107s # tmpdir: /tmp/tmpg3dcr1g5 1107s # rspfile: True 1107s # /tmp/tmpg3dcr1g5/tmpktabq3lg.template: template 1107s # Response file contains: --template /tmp/tmpg3dcr1g5/tmpktabq3lg.template /tmp/tmpg3dcr1g5/tmp2d9x30k71.h /tmp/tmpg3dcr1g5/tmpepi0oawn2.h 1107s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpg3dcr1g5/tmpockiasts'] 1107s # Return code: 0 1107s # Output: 1107s # /* 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. */ 1107s # 1107s # 1107s # /* Generated data ends here */ 1107s # Error: 1107s # 1107s # /tmp/tmpg3dcr1g5/tmpwd6u_b6n.template: template 1107s # Response file contains: --template /tmp/tmpg3dcr1g5/tmpwd6u_b6n.template /tmp/tmpg3dcr1g5/tmpepi0oawn2.h /tmp/tmpg3dcr1g5/tmp2d9x30k71.h 1107s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpg3dcr1g5/tmphz44dj7j'] 1107s # Return code: 0 1107s # Output: 1107s # /* 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. */ 1107s # 1107s # 1107s # /* Generated data ends here */ 1107s # Error: 1107s ok 35 __main__.TestRspMkenums.test_since 1107s # glib-mkenums: /usr/bin/glib-mkenums 1107s # tmpdir: /tmp/tmpqwnusa2j 1107s # rspfile: True 1107s # /tmp/tmpqwnusa2j/tmplwq602aw.h: 1107s # typedef enum { /*< since=1.0 >*/ 1107s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1107s # } QmiWmsMessageProtocol; 1107s # 1107s # /tmp/tmpqwnusa2j/tmp3dwwi2hj.template: 1107s # /*** BEGIN file-header ***/ 1107s # file-header 1107s # /*** END file-header ***/ 1107s # 1107s # /*** BEGIN file-production ***/ 1107s # file-production 1107s # filename: @filename@ 1107s # basename: @basename@ 1107s # /*** END file-production ***/ 1107s # 1107s # /*** BEGIN enumeration-production ***/ 1107s # enumeration-production 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END enumeration-production ***/ 1107s # 1107s # /*** BEGIN value-header ***/ 1107s # value-header 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-header ***/ 1107s # 1107s # /*** BEGIN value-production ***/ 1107s # value-production 1107s # VALUENAME: @VALUENAME@ 1107s # valuenick: @valuenick@ 1107s # valuenum: @valuenum@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-production ***/ 1107s # 1107s # /*** BEGIN value-tail ***/ 1107s # value-tail 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-tail ***/ 1107s # 1107s # /*** BEGIN comment ***/ 1107s # comment 1107s # comment: @comment@ 1107s # /*** END comment ***/ 1107s # 1107s # /*** BEGIN file-tail ***/ 1107s # file-tail 1107s # /*** END file-tail ***/ 1107s # 1107s # Response file contains: --template /tmp/tmpqwnusa2j/tmp3dwwi2hj.template /tmp/tmpqwnusa2j/tmplwq602aw.h 1107s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpqwnusa2j/tmp973nen2f'] 1107s # Return code: 0 1107s # Output: 1107s # comment 1107s # 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. 1107s # 1107s # 1107s # file-header 1107s # file-production 1107s # filename: /tmp/tmpqwnusa2j/tmplwq602aw.h 1107s # basename: tmplwq602aw.h 1107s # enumeration-production 1107s # EnumName: QmiWmsMessageProtocol 1107s # enum_name: qmi_wms_message_protocol 1107s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1107s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1107s # ENUMPREFIX: QMI 1107s # enumsince: 1.0 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-header 1107s # EnumName: QmiWmsMessageProtocol 1107s # enum_name: qmi_wms_message_protocol 1107s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1107s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1107s # ENUMPREFIX: QMI 1107s # enumsince: 1.0 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-production 1107s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1107s # valuenick: cdma 1107s # valuenum: 0 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-tail 1107s # EnumName: QmiWmsMessageProtocol 1107s # enum_name: qmi_wms_message_protocol 1107s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1107s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1107s # ENUMPREFIX: QMI 1107s # enumsince: 1.0 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # file-tail 1107s # 1107s # comment 1107s # comment: Generated data ends here 1107s # Error: 1107s ok 36 __main__.TestRspMkenums.test_with_double_quotes 1107s # glib-mkenums: /usr/bin/glib-mkenums 1107s # tmpdir: /tmp/tmpaou9hs89 1107s # rspfile: True 1107s # /tmp/tmpaou9hs89/tmpwcmwuxlp.h: 1107s # typedef enum { 1107s # FOO_VALUE /*< nick="eek, a comma" >*/ 1107s # } Foo; 1107s # 1107s # /tmp/tmpaou9hs89/tmplkw27i_h.template: 1107s # /*** BEGIN file-header ***/ 1107s # file-header 1107s # /*** END file-header ***/ 1107s # 1107s # /*** BEGIN file-production ***/ 1107s # file-production 1107s # filename: @filename@ 1107s # basename: @basename@ 1107s # /*** END file-production ***/ 1107s # 1107s # /*** BEGIN enumeration-production ***/ 1107s # enumeration-production 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END enumeration-production ***/ 1107s # 1107s # /*** BEGIN value-header ***/ 1107s # value-header 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-header ***/ 1107s # 1107s # /*** BEGIN value-production ***/ 1107s # value-production 1107s # VALUENAME: @VALUENAME@ 1107s # valuenick: @valuenick@ 1107s # valuenum: @valuenum@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-production ***/ 1107s # 1107s # /*** BEGIN value-tail ***/ 1107s # value-tail 1107s # EnumName: @EnumName@ 1107s # enum_name: @enum_name@ 1107s # ENUMNAME: @ENUMNAME@ 1107s # ENUMSHORT: @ENUMSHORT@ 1107s # ENUMPREFIX: @ENUMPREFIX@ 1107s # enumsince: @enumsince@ 1107s # type: @type@ 1107s # Type: @Type@ 1107s # TYPE: @TYPE@ 1107s # /*** END value-tail ***/ 1107s # 1107s # /*** BEGIN comment ***/ 1107s # comment 1107s # comment: @comment@ 1107s # /*** END comment ***/ 1107s # 1107s # /*** BEGIN file-tail ***/ 1107s # file-tail 1107s # /*** END file-tail ***/ 1107s # 1107s # Response file contains: --template /tmp/tmpaou9hs89/tmplkw27i_h.template /tmp/tmpaou9hs89/tmpwcmwuxlp.h 1107s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpaou9hs89/tmp6poi9vu2'] 1107s # Return code: 0 1107s # Output: 1107s # comment 1107s # 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. 1107s # 1107s # 1107s # file-header 1107s # file-production 1107s # filename: /tmp/tmpaou9hs89/tmpwcmwuxlp.h 1107s # basename: tmpwcmwuxlp.h 1107s # enumeration-production 1107s # EnumName: Foo 1107s # enum_name: foo_ 1107s # ENUMNAME: FOO_ 1107s # ENUMSHORT: 1107s # ENUMPREFIX: FOO 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-header 1107s # EnumName: Foo 1107s # enum_name: foo_ 1107s # ENUMNAME: FOO_ 1107s # ENUMSHORT: 1107s # ENUMPREFIX: FOO 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-production 1107s # VALUENAME: FOO_VALUE 1107s # valuenick: eek, a comma 1107s # valuenum: 0 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # value-tail 1107s # EnumName: Foo 1107s # enum_name: foo_ 1107s # ENUMNAME: FOO_ 1107s # ENUMSHORT: 1107s # ENUMPREFIX: FOO 1107s # enumsince: 1107s # type: enum 1107s # Type: Enum 1107s # TYPE: ENUM 1107s # file-tail 1107s # 1107s # comment 1107s # comment: Generated data ends here 1107s # Error: 1107s 1..36 1107s ok - glib/mkenums.py.test 1107s # Running test: glib/sandbox.test 1107s TAP version 14 1107s # random seed: R02Sc3d58f1246e3ad8fe8bd709fb5dcf0c8 1107s 1..4 1107s # Start of sandbox tests 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_54NLC3/sandbox/none/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_54NLC3/sandbox/none/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_54NLC3/sandbox/none/.dirs/system-config1:/tmp/test_sandbox_54NLC3/sandbox/none/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_54NLC3/sandbox/none/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_54NLC3/sandbox/none/.dirs/system-data1:/tmp/test_sandbox_54NLC3/sandbox/none/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_54NLC3/sandbox/none/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_54NLC3/sandbox/none/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_54NLC3/sandbox/none/.dirs/runtime 1107s ok 1 /sandbox/none 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_54NLC3/sandbox/snap/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_54NLC3/sandbox/snap/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_54NLC3/sandbox/snap/.dirs/system-config1:/tmp/test_sandbox_54NLC3/sandbox/snap/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_54NLC3/sandbox/snap/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_54NLC3/sandbox/snap/.dirs/system-data1:/tmp/test_sandbox_54NLC3/sandbox/snap/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_54NLC3/sandbox/snap/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_54NLC3/sandbox/snap/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_54NLC3/sandbox/snap/.dirs/runtime 1107s # Created snap.yaml in /tmp/test_sandbox_54NLC3/snap/current/meta/snap.yaml 1107s ok 2 /sandbox/snap 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_54NLC3/sandbox/classic-snap/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_54NLC3/sandbox/classic-snap/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_54NLC3/sandbox/classic-snap/.dirs/system-config1:/tmp/test_sandbox_54NLC3/sandbox/classic-snap/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_54NLC3/sandbox/classic-snap/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_54NLC3/sandbox/classic-snap/.dirs/system-data1:/tmp/test_sandbox_54NLC3/sandbox/classic-snap/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_54NLC3/sandbox/classic-snap/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_54NLC3/sandbox/classic-snap/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_54NLC3/sandbox/classic-snap/.dirs/runtime 1107s # Created snap.yaml in /tmp/test_sandbox_54NLC3/snap/current/meta/snap.yaml 1107s ok 3 /sandbox/classic-snap 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_54NLC3/sandbox/flatpak/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_54NLC3/sandbox/flatpak/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_54NLC3/sandbox/flatpak/.dirs/system-config1:/tmp/test_sandbox_54NLC3/sandbox/flatpak/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_54NLC3/sandbox/flatpak/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_54NLC3/sandbox/flatpak/.dirs/system-data1:/tmp/test_sandbox_54NLC3/sandbox/flatpak/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_54NLC3/sandbox/flatpak/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_54NLC3/sandbox/flatpak/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_54NLC3/sandbox/flatpak/.dirs/runtime 1107s # Creating .flatpak-info in /tmp/test_sandbox_54NLC3/sandbox/flatpak/.dirs/runtime/.flatpak-info 1107s ok 4 /sandbox/flatpak 1107s # End of sandbox tests 1107s ok - glib/sandbox.test 1107s # Running test: glib/hostutils.test 1107s TAP version 14 1107s # random seed: R02S16d269ceff4b36094c19a1064d85df4c 1107s 1..3 1107s # Start of hostutils tests 1107s ok 1 /hostutils/to_ascii 1107s ok - glib/hostutils.test 1107s ok 2 /hostutils/to_unicode 1107s ok 3 /hostutils/is_ip_addr 1107s # End of hostutils tests 1107s # Running test: glib/accumulator.test 1107s TAP version 14 1107s # random seed: R02S71c17d1743cf17fb1e9872f7de4fafb5 1107s 1..1 1107s # Start of gobject tests 1107s ok 1 /gobject/accumulator 1107s # End of gobject tests 1107s ok - glib/accumulator.test 1107s # Running test: glib/autoptr-girepository.test 1107s TAP version 14 1107s # random seed: R02Sd49e9bf24c8fcd69a5c7308726d6034d 1107s 1..24 1107s # Start of autoptr tests 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/repository/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/repository/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/repository/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/repository/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/repository/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/repository/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/repository/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/repository/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/repository/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/repository/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 1 /autoptr/repository 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/typelib/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/typelib/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/typelib/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/typelib/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/typelib/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/typelib/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/typelib/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/typelib/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/typelib/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/typelib/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 2 /autoptr/typelib 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/base-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/base-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/base-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/base-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/base-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/base-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/base-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/base-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/base-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/base-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 3 /autoptr/base-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/arg-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/arg-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/arg-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/arg-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/arg-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/arg-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/arg-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/arg-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 4 /autoptr/arg-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/callable-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/callable-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/callable-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/callable-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/callable-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/callable-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/callable-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/callable-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/callable-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/callable-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 5 /autoptr/callable-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/callback-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/callback-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/callback-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/callback-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/callback-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/callback-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/callback-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/callback-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/callback-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/callback-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 6 /autoptr/callback-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/constant-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/constant-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/constant-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/constant-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/constant-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/constant-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/constant-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/constant-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/constant-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/constant-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 7 /autoptr/constant-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/enum-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/enum-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/enum-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/enum-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/enum-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/enum-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/enum-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/enum-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/enum-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/enum-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 8 /autoptr/enum-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/field-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/field-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/field-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/field-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/field-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/field-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/field-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/field-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/field-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/field-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 9 /autoptr/field-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/flags-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/flags-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/flags-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/flags-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/flags-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/flags-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/flags-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/flags-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/flags-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/flags-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 10 /autoptr/flags-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/function-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/function-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/function-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/function-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/function-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/function-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/function-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/function-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/function-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/function-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 11 /autoptr/function-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/interface-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/interface-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/interface-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/interface-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/interface-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/interface-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/interface-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/interface-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/interface-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/interface-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 12 /autoptr/interface-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/object-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/object-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/object-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/object-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/object-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/object-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/object-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/object-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/object-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/object-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 13 /autoptr/object-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/property-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/property-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/property-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/property-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/property-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/property-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/property-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/property-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/property-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/property-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 14 /autoptr/property-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/registered-type-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/registered-type-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/registered-type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/registered-type-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/registered-type-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/registered-type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/registered-type-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/registered-type-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/registered-type-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/registered-type-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 15 /autoptr/registered-type-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/signal-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/signal-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/signal-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/signal-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/signal-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/signal-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/signal-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/signal-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/signal-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/signal-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 16 /autoptr/signal-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/struct-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/struct-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-gireok - glib/autoptr-girepository.test 1107s pository_GUILC3/autoptr/struct-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/struct-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/struct-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/struct-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/struct-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/struct-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/struct-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/struct-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 17 /autoptr/struct-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/type-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/type-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/type-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/type-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/type-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/type-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/type-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/type-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 18 /autoptr/type-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/union-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/union-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/union-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/union-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/union-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/union-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/union-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/union-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/union-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/union-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 19 /autoptr/union-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/value-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/value-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/value-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/value-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/value-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/value-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/value-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/value-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/value-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/value-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 20 /autoptr/value-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/vfunc-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/vfunc-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/vfunc-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/autoptr/vfunc-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/vfunc-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/autoptr/vfunc-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/autoptr/vfunc-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/vfunc-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/autoptr/vfunc-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/autoptr/vfunc-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 21 /autoptr/vfunc-info 1107s # End of autoptr tests 1107s # Start of auto tests 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/auto/arg-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/auto/arg-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/auto/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/auto/arg-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/auto/arg-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/auto/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/auto/arg-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/auto/arg-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/auto/arg-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/auto/arg-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 22 /auto/arg-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/auto/type-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/auto/type-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/auto/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/auto/type-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/auto/type-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/auto/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/auto/type-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/auto/type-info/.dirs/data 1107s # GLib-DEB# Running test: glib/contexts.test 1107s ok - glib/contexts.test 1107s # Running test: glib/dump.test 1107s UG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/auto/type-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/auto/type-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 23 /auto/type-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_GUILC3/auto/function-invoker/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_GUILC3/auto/function-invoker/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_GUILC3/auto/function-invoker/.dirs/system-config1:/tmp/test_autoptr-girepository_GUILC3/auto/function-invoker/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_GUILC3/auto/function-invoker/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_GUILC3/auto/function-invoker/.dirs/system-data1:/tmp/test_autoptr-girepository_GUILC3/auto/function-invoker/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_GUILC3/auto/function-invoker/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_GUILC3/auto/function-invoker/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_GUILC3/auto/function-invoker/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 24 /auto/function-invoker 1107s # End of auto tests 1107s TAP version 14 1107s # random seed: R02S8ddccba371d4312dd28bd5c2ad7ab99b 1107s 1..5 1107s # Start of gio tests 1107s # Start of contexts tests 1107s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1107s ok 1 /gio/contexts/thread-independence 1107s ok 2 /gio/contexts/context-independence 1107s # Start of context-specific tests 1107s ok 3 /gio/contexts/context-specific/identity 1107s ok 4 /gio/contexts/context-specific/emit 1107s ok 5 /gio/contexts/context-specific/emit-and-unref 1107s # End of context-specific tests 1107s # End of contexts tests 1107s # End of gio tests 1107s TAP version 14 1107s ok - glib/dump.test 1107s # Running test: glib/overflow.test 1107s ok - glib/overflow.test 1107s # Running test: glib/socket-address.test 1107s ok - glib/socket-address.test 1107s # Running test: glib/binding.test 1107s # random seed: R02S252e6859ee3955c16b01b1d1854b9c92 1107s 1..4 1107s # Start of dump tests 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_GHNKC3/dump/empty-file/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_GHNKC3/dump/empty-file/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_GHNKC3/dump/empty-file/.dirs/system-config1:/tmp/test_dump_GHNKC3/dump/empty-file/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_GHNKC3/dump/empty-file/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_GHNKC3/dump/empty-file/.dirs/system-data1:/tmp/test_dump_GHNKC3/dump/empty-file/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_GHNKC3/dump/empty-file/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_GHNKC3/dump/empty-file/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_GHNKC3/dump/empty-file/.dirs/runtime 1107s ok 1 /dump/empty-file 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_GHNKC3/dump/missing-get-type/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_GHNKC3/dump/missing-get-type/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_GHNKC3/dump/missing-get-type/.dirs/system-config1:/tmp/test_dump_GHNKC3/dump/missing-get-type/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_GHNKC3/dump/missing-get-type/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_GHNKC3/dump/missing-get-type/.dirs/system-data1:/tmp/test_dump_GHNKC3/dump/missing-get-type/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_GHNKC3/dump/missing-get-type/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_GHNKC3/dump/missing-get-type/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_GHNKC3/dump/missing-get-type/.dirs/runtime 1107s Invalid GType function: 'does_not_exist_get_type' 1107s ok 2 /dump/missing-get-type 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_GHNKC3/dump/missing-quark/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_GHNKC3/dump/missing-quark/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_GHNKC3/dump/missing-quark/.dirs/system-config1:/tmp/test_dump_GHNKC3/dump/missing-quark/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_GHNKC3/dump/missing-quark/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_GHNKC3/dump/missing-quark/.dirs/system-data1:/tmp/test_dump_GHNKC3/dump/missing-quark/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_GHNKC3/dump/missing-quark/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_GHNKC3/dump/missing-quark/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_GHNKC3/dump/missing-quark/.dirs/runtime 1107s Invalid error quark function: 'does_not_exist_error' 1107s ok 3 /dump/missing-quark 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_GHNKC3/dump/basic/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_GHNKC3/dump/basic/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_GHNKC3/dump/basic/.dirs/system-config1:/tmp/test_dump_GHNKC3/dump/basic/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_GHNKC3/dump/basic/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_GHNKC3/dump/basic/.dirs/system-data1:/tmp/test_dump_GHNKC3/dump/basic/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_GHNKC3/dump/basic/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_GHNKC3/dump/basic/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_GHNKC3/dump/basic/.dirs/runtime 1107s ok 4 /dump/basic 1107s # End of dump tests 1107s TAP version 14 1107s # random seed: R02S50bbeaa9592943132d3a1952dc730891 1107s 1..6 1107s # Start of glib tests 1107s # Start of checked-math tests 1107s ok 1 /glib/checked-math/guint-add 1107s ok 2 /glib/checked-math/guint-mul 1107s ok 3 /glib/checked-math/guint64-add 1107s ok 4 /glib/checked-math/guint64-mul 1107s ok 5 /glib/checked-math/gsize-add 1107s ok 6 /glib/checked-math/gsize-mul 1107s # End of checked-math tests 1107s # End of glib tests 1107s TAP version 14 1107s # random seed: R02Sff74902e25579138f84244050d1f457d 1107s 1..2 1107s # Start of socket tests 1107s # Start of address tests 1107s # Start of unix tests 1107s ok 1 /socket/address/unix/construct 1107s ok 2 /socket/address/unix/to-string 1107s # End of unix tests 1107s # End of address tests 1107s # End of socket tests 1107s TAP version 14 1107s # random seed: R02S45f0b44b975c0dc057a6cabeb5e920ac 1107s 1..19 1107s # Start of binding tests 1107s ok 1 /binding/default 1107s # /binding/canonicalisation summary: Test that bindings set up with non-canonical property names work 1107s ok 2 /binding/canonicalisation 1107s ok 3 /binding/bidirectional 1107s ok 4 /binding/transform 1107s ok 5 /binding/transform-default 1107s ok 6 /binding/transform-closure 1107s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=621782 1107s ok 7 /binding/chain 1107s ok 8 /binding/sync-create 1107s ok 9 /binding/invert-boolean 1107s ok 10 /binding/same-object 1107s ok 11 /binding/unbind 1107s ok 12 /binding/unbind-weak 1107s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1373 1107s ok 13 /binding/unbind-multiple 1107s ok 14 /binding/fail 1107s ok 15 /binding/interface 1107s # /binding/concurrent-unbind summary: Test that unbinding from multiple threads concurrently works correctly 1107s ok 16 /binding/concurrent-unbind 1107s # /binding/concurrent-finalizing summary: Test that finalizing source/target from multiple threads concurrently works correctly 1107s ok 17 /binding/concurrent-finalizing 1107s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 1107s ok 18 /binding/dispose-source 1107s ok - glib/binding.test 1107s # Running test: glib/signals-refcount4.test 1107s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 1107s ok 19 /binding/dispose-target 1107s # End of binding tests 1107s TAP version 14 1107s # random seed: R02S784c964bbeb10467d800afbb47b3de2f 1107s 1..1 1107s # Start of gobject tests 1107s # Start of refcount tests 1107s # init 0x2aa2a946490 1107s # 1107s # init 0x2aa2a93e580 1107s # 1111s # Executing: glib/signals-refcount4.test 1112s # dispose 0x2aa2a946490! 1112s # 1112s # dispose 0x2aa2a93e580! 1112s # 1112s ok 1 /gobject/refcount/signals 1112s # slow test /gobject/refcount/signals executed in 5.00 secs 1112s # End of refcount tests 1112s # End of gobject tests 1112s ok - glib/signals-refcount4.test 1112s # Running test: glib/dbus-appinfo.test 1112s TAP version 14 1112s # random seed: R02Sce1ab17a7fd9325955fb18b763744b31 1112s 1..7 1112s # Start of appinfo tests 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/dbusappinfo/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/dbusappinfo/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_NS2JC3/appinfo/dbusappinfo/.dirs/system-config1:/tmp/test_dbus-appinfo_NS2JC3/appinfo/dbusappinfo/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/dbusappinfo/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_NS2JC3/appinfo/dbusappinfo/.dirs/system-data1:/tmp/test_dbus-appinfo_NS2JC3/appinfo/dbusappinfo/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/dbusappinfo/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/dbusappinfo/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_NS2JC3/appinfo/dbusappinfo/.dirs/runtime 1112s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1112s ok 1 /appinfo/dbusappinfo 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-doc-export/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-doc-export/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-doc-export/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-doc-export/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-doc-export/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-doc-export/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-doc-export/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-doc-export/.dirs/runtime 1112s # /appinfo/flatpak-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 1112s # Acquired a message bus connection 1112s # Acquired the name org.freedesktop.portal.Documents 1112s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_NS2JC3/appinfo/dbusappinfo/.dirs/config to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-doc-export/.dirs/config 1112s # on_flatpak_open received file '/document-portal/document-id/org.gtk.test.dbusappinfo.flatpak.desktop' 1112s # fake-document-portal cancelled 1112s ok 2 /appinfo/flatpak-doc-export 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-missing-doc-export/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-missing-doc-export/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-missing-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-missing-doc-export/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-missing-doc-export/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-missing-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-missing-doc-export/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-missing-doc-export/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-missing-doc-export/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-missing-doc-export/.dirs/runtime 1112s # /appinfo/flatpak-missing-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 1112s # Acquired a message bus connection 1112s # Acquired the name org.freedesktop.portal.Documents 1112s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-doc-export/.dirs/config to /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-missing-doc-export/.dirs/config 1112s # on_flatpak_open received file '/hopefully/an/invalid/path.desktop' 1112s # fake-document-portal cancelled 1112s ok 3 /appinfo/flatpak-missing-doc-export 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file/.dirs/system-config1:/tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file/.dirs/system-data1:/tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file/.dirs/runtime 1112s # Acquired a message bus connection 1112s # Acquired the name org.freedesktop.portal.Desktop 1112s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_NS2JC3/appinfo/flatpak-missing-doc-export/.dirs/config to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file/.dirs/config 1112s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 1112s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_5/t 1112s # Response emitted 1112s # fake-desktop-portal cancelled 1112s ok 4 /appinfo/portal-open-file 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri/.dirs/system-config1:/tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri/.dirs/system-data1:/tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri/.dirs/runtime 1112s # Acquired a message bus connection 1112s # Acquired the name org.freedesktop.portal.Desktop 1112s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file/.dirs/config to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri/.dirs/config 1112s # Got open file request for http://example.com 1112s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_7/t 1112s # Response emitted 1112s # fake-desktop-portal cancelled 1112s ok 5 /appinfo/portal-open-uri 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file-async/.dirs/home 1112s ok - glib/dbus-appinfo.test 1112s # Running test: glib/simple-proxy.test 1112s ok - glib/simple-proxy.test 1112s # Running test: glib/memchunk.test 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file-async/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file-async/.dirs/system-config1:/tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file-async/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file-async/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file-async/.dirs/system-data1:/tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file-async/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file-async/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file-async/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file-async/.dirs/runtime 1112s # Acquired a message bus connection 1112s # Acquired the name org.freedesktop.portal.Desktop 1112s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri/.dirs/config to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file-async/.dirs/config 1112s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 1112s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_9/gio1591484012 1112s # Response emitted 1112s # fake-desktop-portal cancelled 1112s ok 6 /appinfo/portal-open-file-async 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri-async/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri-async/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri-async/.dirs/system-config1:/tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri-async/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri-async/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri-async/.dirs/system-data1:/tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri-async/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri-async/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri-async/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri-async/.dirs/runtime 1112s # Acquired a message bus connection 1112s # Acquired the name org.freedesktop.portal.Desktop 1112s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-file-async/.dirs/config to /tmp/test_dbus-appinfo_NS2JC3/appinfo/portal-open-uri-async/.dirs/config 1112s # Got open file request for http://example.com 1112s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_11/gio1168708389 1112s # Response emitted 1112s # fake-desktop-portal cancelled 1112s ok 7 /appinfo/portal-open-uri-async 1112s # End of appinfo tests 1112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1112s TAP version 14 1112s # random seed: R02Sc06b054ea326984ae62ec07d081cc54e 1112s 1..3 1112s # Start of static-proxy tests 1112s ok 1 /static-proxy/uri 1112s ok 2 /static-proxy/socks 1112s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string *.eee.xx:8000 1112s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 10.0.0.1:8000 1112s ok 3 /static-proxy/ignore 1112s # End of static-proxy tests 1112s TAP version 14 1112s # random seed: R02S9d7affe730b686f7d8f239139eb788e0 1112s 1..1 1112s # Start of memchunk tests 1112s ok 1 /memchunk/basic 1112s # End of memchunk tests 1112s TAP version 14 1112s # random seed: R02S7f382cb08a65e6f4ed3e52561ef539c0 1112s 1..4 1112s # Start of thread tests 1112s ok 1 /thread/cond1 1112s ok 2 /thread/cond2 1112s # Start of cond tests 1112s ok - glib/memchunk.test 1112s # Running test: glib/cond.test 1113s ok 3 /thread/cond/wait-until 1113s # slow test /thread/cond/wait-until executed in 1.02 secs 1113s # Start of wait-until tests 1113s # /thread/cond/wait-until/contended-and-interrupted summary: Check proper handling of errno in g_cond_wait_until with a contended mutex 1113s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/957 1114s ok 4 /thread/cond/wait-until/contended-and-interrupted 1114s # slow test /thread/cond/wait-until/contended-and-interrupted executed in 1.10 secs 1114s # End of wait-until tests 1114s # End of cond tests 1114s # End of thread tests 1114s ok - glib/cond.test 1114s # Running test: glib/portal-support-env-var.test 1114s TAP version 14 1114s ok - glib/portal-support-env-var.test 1114s # random seed: R02S79b2849c66b9db16e9885f37820e7d27 1114s 1..1 1114s # Start of portal-support tests 1114s ok 1 /portal-support/env-var 1114s # End of portal-support tests 1114s # Running test: glib/power-profile-monitor.test 1114s ok - glib/power-profile-monitor.test 1114s # Running test: glib/data-input-stream.test 1114s TAP version 14 1114s # random seed: R02Scf94bc0b202c196c71b5796d548197bd 1114s 1..1 1114s # Start of power-profile-monitor tests 1114s # GLib-GIO-DEBUG: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals 1114s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ‘gio-power-profile-monitor’ 1114s ok 1 /power-profile-monitor/default 1114s # End of power-profile-monitor tests 1114s TAP version 14 1114s # random seed: R02S6e2f762bf069e03346ef8a9cead9d1a7 1114s 1..10 1114s # Start of data-input-stream tests 1114s ok 1 /data-input-stream/basic 1114s ok 2 /data-input-stream/read-lines-LF 1114s ok 3 /data-input-stream/read-lines-LF-valid-utf8 1114s ok 4 /data-input-stream/read-lines-LF-invalid-utf8 1114s ok 5 /data-input-stream/read-lines-CR 1114s ok 6 /data-input-stream/read-lines-CR-LF 1114s ok 7 /data-input-stream/read-lines-any 1114s ok 8 /data-input-stream/read-until 1114s # Test vector 0: part1 # part2 $ part3 ? part4 ? and #$?^ 1114s # Test vector 1: {"key": "value"}? and ? 1114s ok 9 /data-input-stream/read-upto 1114s ok - glib/data-input-stream.test 1114s ok 10 /data-input-stream/read-int 1114s # End of data-input-stream tests 1114s # Running test: glib/filenamecompleter.test 1114s TAP version 14 1114s # random seed: R02Sca079d11083cb97b267d610a5bda09bd 1114s 1..1 1114s # Start of filenamecompleter tests 1114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_filenamecompleter_WP76B3/filenamecompleter/basic/.dirs/home 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_filenamecompleter_WP76B3/filenamecompleter/basic/.dirs/cache 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_filenamecompleter_WP76B3/filenamecompleter/basic/.dirs/system-config1:/tmp/test_filenamecompleter_WP76B3/filenamecompleter/basic/.dirs/system-config2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_filenamecompleter_WP76B3/filenamecompleter/basic/.dirs/config 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_filenamecompleter_WP76B3/filenamecompleter/basic/.dirs/system-data1:/tmp/test_filenamecompleter_WP76B3/filenamecompleter/basic/.dirs/system-data2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_filenamecompleter_WP76B3/filenamecompleter/basic/.dirs/data 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_filenamecompleter_WP76B3/filenamecompleter/basic/.dirs/state 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_filenamecompleter_WP76B3/filenamecompleter/basic/.dirs/runtime 1114s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1114s ok 1 /filenamecompleter/basic 1114s # End of filenamecompleter tests 1114s ok - glib/filenamecompleter.test 1114s # Running test: glib/simple-async-result.test 1114s TAP version 14 1114s # random seed: R02S18798c712c45291f3fe66456fc803c48 1114s 1..2 1114s # Start of gio tests 1114s # Start of simple-async-result tests 1114s ok 1 /gio/simple-async-result/test 1114s # GLib-GIO-DEBUG: GTask 0x2aa03226700 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1114s ok 2 /gio/simple-async-result/valid 1114s # End of simple-async-result tests 1114s # End of gio tests 1114s ok - glib/simple-async-result.test 1114s # Running test: glib/gdbus-connection.test 1114s TAP version 14 1114s # random seed: R02S55e13385528d3681a788c2bb9631a236 1114s 1..9 1114s # Start of gdbus tests 1114s # Start of connection tests 1114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/bus-failure/.dirs/home 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/bus-failure/.dirs/cache 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/bus-failure/.dirs/system-config1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/bus-failure/.dirs/system-config2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/bus-failure/.dirs/config 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/bus-failure/.dirs/system-data1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/bus-failure/.dirs/system-data2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/bus-failure/.dirs/data 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/bus-failure/.dirs/state 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/bus-failure/.dirs/runtime 1114s ok 1 /gdbus/connection/bus-failure 1114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/basic/.dirs/home 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/basic/.dirs/cache 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/basic/.dirs/system-config1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/basic/.dirs/system-config2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/basic/.dirs/config 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/basic/.dirs/system-data1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/basic/.dirs/system-data2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/basic/.dirs/data 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/basic/.dirs/state 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/basic/.dirs/runtime 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s ok 2 /gdbus/connection/basic 1114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/life-cycle/.dirs/home 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/life-cycle/.dirs/cache 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/life-cycle/.dirs/system-config1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/life-cycle/.dirs/system-config2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/life-cycle/.dirs/config 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/life-cycle/.dirs/system-data1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/life-cycle/.dirs/system-data2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/life-cycle/.dirs/data 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/life-cycle/.dirs/state 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/life-cycle/.dirs/runtime 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s ok 3 /gdbus/connection/life-cycle 1114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/send/.dirs/home 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/send/.dirs/cache 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/send/.dirs/system-config1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/send/.dirs/system-config2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/send/.dirs/config 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/send/.dirs/system-data1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/send/.dirs/system-data2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/send/.dirs/data 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/send/.dirs/state 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/send/.dirs/runtime 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s ok 4 /gdbus/connection/send 1114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signals/.dirs/home 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signals/.dirs/cache 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signals/.dirs/system-config1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signals/.dirs/system-config2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signals/.dirs/config 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signals/.dirs/system-data1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signals/.dirs/system-data2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signals/.dirs/data 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signals/.dirs/state 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signals/.dirs/runtime 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s ok 5 /gdbus/connection/signals 1114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signal-match-rules/.dirs/home 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signal-match-rules/.dirs/cache 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signal-match-rules/.dirs/system-config1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signal-match-rules/.dirs/system-config2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signal-match-rules/.dirs/config 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signal-match-rules/.dirs/system-data1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signal-match-rules/.dirs/system-data2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signal-match-rules/.dirs/data 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signal-match-rules/.dirs/state 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/signal-match-rules/.dirs/runtime 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s ok 6 /gdbus/connection/signal-match-rules 1114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/filter/.dirs/home 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/filter/.dirs/cache 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/filter/.dirs/system-config1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/filter/.dirs/system-config2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/filter/.dirs/config 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/filter/.dirs/system-data1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/filter/.dirs/system-data2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/filter/.dirs/data 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/filter/.dirs/state 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/filter/.dirs/runtime 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s ok 7 /gdbus/connection/filter 1114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/serials/.dirs/home 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/serials/.dirs/cache 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/serials/.dirs/system-config1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/serials/.dirs/system-config2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/serials/.dirs/config 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/serials/.dirs/system-data1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/serials/.dirs/system-data2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/serials/.dirs/data 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/serials/.dirs/state 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/serials/.dirs/runtime 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s ok 8 /gdbus/connection/serials 1114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/cancel/.dirs/home 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/cancel/.dirs/cache 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/cancel/.dirs/system-config1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/cancel/.dirs/system-config2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/cancel/.dirs/config 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/cancel/.dirs/system-data1:/tmp/test_gdbus-connection_W9B7B3/gdbus/connection/cancel/.dirs/system-data2 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/cancel/.dirs/data 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/cancel/.dirs/state 1114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_W9B7B3/gdbus/connection/cancel/.dirs/runtime 1114s # /gdbus/connection/cancel summary: Test that cancelling one of two racing g_bus_get() calls does not cancel the other one 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1114s ok 9 /gdbus/connection/cancel 1114s # End of connection tests 1114s # End of gdbus tests 1114s TAP version 14 1114s # random seed: R02S1ba0e221fe1596f1392eb9056d682ad5 1114s 1..7 1114s # Start of utf8 tests 1114s ok 1 /utf8/strlen 1114s ok 2 /utf8/strncpy 1114s ok 3 /utf8/strrchr 1114s ok 4 /utf8/reverse 1114s ok 5 /utf8/substring 1114s ok 6 /utf8/make-valid 1114s ok 7 /utf8/truncate-middle 1114s # End of utf8 tests 1114s TAP version 14 1114s # random seed: R02Sde8d445b56a649fb71d164349e6fa8a9 1114s 1..2 1114s # Start of gnotification tests 1114s ok 1 /gnotification/basic 1114s ok 2 /gnotification/properties 1114s # End of gnotification tests 1114s TAP version 14 1114s # random seed: R02S27d0d30430602d3154dab04571877544 1114s 1..2 1114s # Start of GObject tests 1114s ok 1 /GObject/threaded-dynamic-ref-unref-init 1114s ok 2 /GObject/dynamic-interface-properties 1114s # End of GObject tests 1114s TAP version 14 1114s # random seed: R02Sff4f59ea3b3257a0a60b148dbf461e20 1114s 1..47 1114s # Start of maincontext tests 1114s ok 1 /maincontext/basic 1114s # Add same-priority sources: 15 1114s # Find each source: 1 1114s ok - glib/gdbus-connection.test 1114s # Running test: glib/utf8-misc.test 1114s ok - glib/utf8-misc.test 1114s # Running test: glib/gnotification.test 1114s ok - glib/gnotification.test 1114s # Running test: glib/dynamictests.test 1114s ok - glib/dynamictests.test 1114s # Running test: glib/mainloop.test 1114s # Remove in random order: 9 1114s ok 2 /maincontext/nsources_same_priority 1114s # Add different-priority sources: 16 1114s # Find each source: 1 1114s # Remove in random order: 13 1114s ok 3 /maincontext/nsources_different_priority 1115s # Add sources from threads: 44 1115s # Remove sources from threads: 33 1115s ok 4 /maincontext/nsources_threadpool 1115s ok 5 /maincontext/source_finalization 1115s # /maincontext/idle-once summary: Test g_idle_add_once() works 1115s ok 6 /maincontext/idle-once 1115s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1115s ok 7 /maincontext/timeout-once 1115s # /maincontext/context-ref-in-source-callbackfuncs-unref summary: Tests if calling GSource API in GSourceCallbackFuncs.unref does not deadlock attempting to retrieve the relevant GMainContext. 1115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 1115s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 1115s # Start of source_finalization_from_source tests 1115s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1115s ok 9 /maincontext/source_finalization_from_source/0 1115s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1115s ok 10 /maincontext/source_finalization_from_source/1 1115s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1115s ok 11 /maincontext/source_finalization_from_source/2 1115s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1115s ok 12 /maincontext/source_finalization_from_source/3 1115s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1115s ok 13 /maincontext/source_finalization_from_source/4 1115s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1115s ok 14 /maincontext/source_finalization_from_source/5 1115s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1115s ok 15 /maincontext/source_finalization_from_source/6 1115s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1115s ok 16 /maincontext/source_finalization_from_source/7 1115s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1115s ok 17 /maincontext/source_finalization_from_source/8 1115s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1115s ok 18 /maincontext/source_finalization_from_source/9 1115s # End of source_finalization_from_source tests 1115s # Start of source_finalization_from_dispatch tests 1115s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1115s ok 19 /maincontext/source_finalization_from_dispatch/0 1115s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1115s ok 20 /maincontext/source_finalization_from_dispatch/1 1115s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1115s ok 21 /maincontext/source_finalization_from_dispatch/2 1115s # End of source_finalization_from_dispatch tests 1115s # End of maincontext tests 1115s # Start of mainloop tests 1115s ok 22 /mainloop/basic 1115s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 1115s ok 24 /mainloop/priorities 1115s ok 25 /mainloop/invoke 1115s # slow test /mainloop/invoke executed in 0.50 secs 1116s # Executing: glib/mainloop.test 1116s ok 26 /mainloop/child_sources 1116s # slow test /mainloop/child_sources executed in 1.19 secs 1118s ok 27 /mainloop/recursive_child_sources 1118s # slow test /mainloop/recursive_child_sources executed in 2.18 secs 1118s ok 28 /mainloop/recursive_loop_child_sources 1119s ok 29 /mainloop/swapping_child_sources 1119s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1119s ok 30 /mainloop/blocked_child_sources 1120s ok 31 /mainloop/source_time 1120s # slow test /mainloop/source_time executed in 1.00 secs 1120s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1120s ok 32 /mainloop/overflow 1120s ok 33 /mainloop/ready-time 1120s # slow test /mainloop/ready-time executed in 0.50 secs 1120s ok 34 /mainloop/wakeup 1120s ok 35 /mainloop/remove-invalid 1120s ok 36 /mainloop/unref-while-pending 1120s ok 37 /mainloop/unix-fd 1120s ok 38 /mainloop/unix-fd-source 1120s ok 39 /mainloop/source-unix-fd-api 1121s ok 40 /mainloop/wait 1121s ok 41 /mainloop/unix-file-poll 1121s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1121s ok 42 /mainloop/unix-fd-priority 1121s ok 43 /mainloop/nfds 1121s ok 44 /mainloop/steal-fd 1121s # Executing: glib/mainloop.test 1121s ok 45 /mainloop/simultaneous-source-context-destruction 1121s # Start of ownerless-polling tests 1121s ok 46 /mainloop/ownerless-polling/attach-first 1121s ok 47 /mainloop/ownerless-polling/pop-first 1121s # End of ownerless-polling tests 1121s # End of mainloop tests 1121s ok - glib/mainloop.test 1121s # Running test: glib/properties-refcount2.test 1121s TAP version 14 1121s # random seed: R02Sd86481fec089d032a13f514bca70d627 1121s 1..1 1121s # Start of gobject tests 1121s # Start of refcount tests 1121s # init 0x2aa1ebb6eb0 1121s # 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1121s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # . 1122s # dispose 0x2aa1ebb6eb0! 1122s # 1122s ok 1 /gobject/refcount/properties-2 1122s # slow test /gobject/refcount/properties-2 executed in 0.62 secs 1122s # End of refcount tests 1122s # End of gobject tests 1122s ok - glib/properties-refcount2.test 1122s # Running test: glib/giomodule.test 1122s TAP version 14 1122s # random seed: R02Sd2f3e5a0412e86bcf4e48a009e2dda46 1122s 1..3 1122s # Start of giomodule tests 1122s ok 1 /giomodule/extension-point 1122s ok 2 /giomodule/module-scan-all 1122s ok 3 /giomodule/module-scan-all-with-scope 1122s # End of giomodule tests 1122s ok - glib/giomodule.test 1122s # Running test: glib/socket.test 1122s TAP version 14 1122s # random seed: R02S86983de87686052ee41be1f373252f91 1122s 1..30 1122s # Start of socket tests 1123s ok 1 /socket/ipv4_sync 1123s # slow test /socket/ipv4_sync executed in 1.00 secs 1124s ok 2 /socket/ipv4_async 1124s # slow test /socket/ipv4_async executed in 1.00 secs 1124s ok 3 /socket/ipv6_sync 1124s ok 4 /socket/ipv6_async 1124s ok 5 /socket/ipv6_v4mapped 1125s ok 6 /socket/close_graceful 1125s # slow test /socket/close_graceful executed in 1.00 secs 1125s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1125s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1125s ok 8 /socket/fd_reuse 1125s ok 9 /socket/address 1125s ok 10 /socket/unix-from-fd 1125s ok 11 /socket/unix-connection 1125s ok 12 /socket/unix-connection-ancillary-data 1125s ok 13 /socket/source-postmortem 1125s ok 14 /socket/read_write 1125s ok 15 /socket/read_writev 1125s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1125s ok 16 /socket/receive_bytes 1125s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1125s ok 17 /socket/receive_bytes_from 1125s # Start of ipv4_sync tests 1125s ok 18 /socket/ipv4_sync/datagram 1125s # Start of datagram tests 1126s # Executing: glib/socket.test 1126s ok 19 /socket/ipv4_sync/datagram/timeouts 1126s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1126s # End of datagram tests 1126s # End of ipv4_sync tests 1126s # Start of ipv6_sync tests 1126s ok 20 /socket/ipv6_sync/datagram 1126s # Start of datagram tests 1127s ok 21 /socket/ipv6_sync/datagram/timeouts 1127s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1127s # End of datagram tests 1127s # End of ipv6_sync tests 1127s # Start of reuse tests 1127s ok 22 /socket/reuse/tcp 1127s ok 23 /socket/reuse/udp 1127s # End of reuse tests 1127s # Start of get_available tests 1127s ok 24 /socket/get_available/datagram 1127s ok 25 /socket/get_available/stream 1127s # End of get_available tests 1127s # Start of credentials tests 1127s # Supported on this OS: GCredentials:linux-ucred:pid=0 1127s ok 26 /socket/credentials/tcp_client 1127s # Supported on this OS: GCredentials:linux-ucred:pid=0 1127s ok 27 /socket/credentials/tcp_server 1127s # Supported on this OS: GCredentials:linux-ucred:pid=27046,uid=1000,gid=1000 1127s ok 28 /socket/credentials/unix_socketpair 1127s # End of credentials tests 1127s # Start of accept tests 1127s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1127s ok - glib/socket.test 1127s # Running test: glib/network-monitor-race.test 1127s ok 29 /socket/accept/cancelled 1127s # End of accept tests 1127s # Start of connect tests 1127s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1127s ok 30 /socket/connect/cancelled 1127s # End of connect tests 1127s # End of socket tests 1127s TAP version 14 1127s # random seed: R02Sa0ba96e95374f07595f182c5ce85c018 1127s 1..1 1127s # Start of network-monitor tests 1127s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793727 1129s ok - glib/network-monitor-race.test 1129s ok 1 /network-monitor/create-in-thread 1129s # slow test /network-monitor/create-in-thread executed in 2.08 secs 1129s # End of network-monitor tests 1129s # Running test: glib/utf8-pointer.test 1129s TAP version 14 1129s # random seed: R02S169106a8ceb18a4c8fde64fbbbb56d48 1129s 1..3 1129s # Start of utf8 tests 1130s ok 1 /utf8/offsets 1130s # slow test /utf8/offsets executed in 0.66 secs 1130s ok 2 /utf8/lengths 1130s ok 3 /utf8/find 1130s # End of utf8 tests 1130s ok - glib/utf8-pointer.test 1130s # Running test: glib/type-flags.test 1130s TAP version 14 1130s # random seed: R02S1086c290a80b26c1e4b77d0608f97dbe 1130s 1..4 1130s # Start of type tests 1130s # Start of flags tests 1130s ok 1 /type/flags/interface 1130s ok - glib/type-flags.test 1130s # Running test: glib/network-address.test 1130s ok 2 /type/flags/final 1130s # /type/flags/deprecated summary: Test that trying to instantiate a deprecated type results in a warning. 1130s ok 3 /type/flags/deprecated 1130s # Start of final tests 1130s ok 4 /type/flags/final/instance-check 1130s # End of final tests 1130s # End of flags tests 1130s # End of type tests 1130s TAP version 14 1130s # random seed: R02S8e8fb75393e4c765ef49ed06008a62a8 1130s 1..72 1130s # Start of network-address tests 1130s ok 1 /network-address/basic 1130s ok 2 /network-address/scope-id 1130s ok 3 /network-address/uri-scope-id 1130s ok 4 /network-address/to-string 1130s # Start of parse-host tests 1130s ok 5 /network-address/parse-host/0 1130s ok 6 /network-address/parse-host/1 1130s ok 7 /network-address/parse-host/2 1130s ok 8 /network-address/parse-host/3 1130s ok 9 /network-address/parse-host/4 1130s ok 10 /network-address/parse-host/5 1130s ok 11 /network-address/parse-host/6 1130s ok 12 /network-address/parse-host/7 1130s ok 13 /network-address/parse-host/8 1130s ok 14 /network-address/parse-host/9 1130s ok 15 /network-address/parse-host/10 1130s ok 16 /network-address/parse-host/11 1130s ok 17 /network-address/parse-host/12 1130s ok 18 /network-address/parse-host/13 1130s # End of parse-host tests 1130s # Start of parse-uri tests 1130s ok 19 /network-address/parse-uri/0 1130s ok 20 /network-address/parse-uri/1 1130s ok 21 /network-address/parse-uri/2 1130s ok 22 /network-address/parse-uri/3 1130s ok 23 /network-address/parse-uri/4 1130s ok 24 /network-address/parse-uri/5 1130s ok 25 /network-address/parse-uri/6 1130s ok 26 /network-address/parse-uri/7 1130s ok 27 /network-address/parse-uri/8 1130s ok 28 /network-address/parse-uri/9 1130s # End of parse-uri tests 1130s # Start of resolve-address tests 1130s # Input: 192.168.1.2 1130s ok 29 /network-address/resolve-address/0 1130s # Input: fe80::42 1130s ok 30 /network-address/resolve-address/1 1130s # Input: 192.168.1.2:80 1130s ok 31 /network-address/resolve-address/2 1130s # Input: [fe80::42] 1130s ok 32 /network-address/resolve-address/3 1130s # Input: [fe80::42]:80 1130s ok 33 /network-address/resolve-address/4 1130s # Input: 192.168.258 1130s ok 34 /network-address/resolve-address/5 1130s # Input: 192.11010306 1130s ok 35 /network-address/resolve-address/6 1130s # Input: 3232235778 1130s ok 36 /network-address/resolve-address/7 1130s # Input: 0300.0250.0001.0001 1130s ok 37 /network-address/resolve-address/8 1130s # Input: 0xC0.0xA8.0x01.0x02 1130s ok 38 /network-address/resolve-address/9 1130s # Input: 0xc0.0xa8.0x01.0x02 1130s ok 39 /network-address/resolve-address/10 1130s # Input: 0xc0a80102 1130s ok 40 /network-address/resolve-address/11 1130s # End of resolve-address tests 1130s # Start of loopback tests 1130s ok 41 /network-address/loopback/basic 1130s ok 42 /network-address/loopback/sync 1130s ok 43 /network-address/loopback/async 1130s # End of loopback tests 1130s # Start of localhost tests 1130s ok 44 /network-address/localhost/async 1130s ok 45 /network-address/localhost/sync 1130s # End of localhost tests 1130s # Start of happy-eyeballs tests 1130s ok 46 /network-address/happy-eyeballs/basic 1130s ok 47 /network-address/happy-eyeballs/parallel 1130s ok 48 /network-address/happy-eyeballs/slow-ipv4 1130s ok 49 /network-address/happy-eyeballs/slow-ipv6 1130s ok 50 /network-address/happy-eyeballs/very-slow-ipv6 1131s # Executing: glib/network-address.test 1131s ok 51 /network-address/happy-eyeballs/slow-connection-and-ipv4 1131s # slow test /network-address/happy-eyeballs/slow-connection-and-ipv4 executed in 0.80 secs 1131s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1131s ok 52 /network-address/happy-eyeballs/ipv6-error-ipv4-first 1131s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1131s ok 53 /network-address/happy-eyeballs/ipv6-error-ipv6-first 1131s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/865 1131s # /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. 1131s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1131s ok 54 /network-address/happy-eyeballs/ipv6-error-ipv4-very-slow 1131s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1131s ok 55 /network-address/happy-eyeballs/ipv4-error-ipv6-first 1131s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1131s ok 56 /network-address/happy-eyeballs/ipv4-error-ipv4-first 1131s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1131s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1131s ok 57 /network-address/happy-eyeballs/both-error 1131s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1131s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1131s ok 58 /network-address/happy-eyeballs/both-error-delays-1 1131s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1131s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1131s ok 59 /network-address/happy-eyeballs/both-error-delays-2 1131s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1131s ok 60 /network-address/happy-eyeballs/both-error-delays-3 1131s # End of happy-eyeballs tests 1131s # End of network-address tests 1131s # Start of gresolver tests 1131s # Start of resolve-address tests 1131s # Input: 192.168.1.2 1131s ok 61 /gresolver/resolve-address/0 1131s # Input: fe80::42 1131s ok 62 /gresolver/resolve-address/1 1131s # Input: 192.168.1.2:80 1131s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 192.168.1.2:80 1131s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 1131s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 1131s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ‘gio-network-monitor’ 1131s # Error: Error resolving “192.168.1.2:80”: Name or service not known 1131s ok 63 /gresolver/resolve-address/2 1131s # Input: [fe80::42] 1131s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [fe80::42] 1131s # Error: Error resolving “[fe80::42]”: Name or service not known 1131s ok 64 /gresolver/resolve-address/3 1131s # Input: [fe80::42]:80 1131s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [fe80::42]:80 1131s # Error: Error resolving “[fe80::42]:80”: Name or service not known 1131s ok 65 /gresolver/resolve-address/4 1131s # Input: 192.168.258 1131s # Error: Error resolving “192.168.258”: Name or service not known 1131s ok 66 /gresolver/resolve-address/5 1131s # Input: 192.11010306 1131s # Error: Error resolving “192.11010306”: Name or service not known 1131s ok 67 /gresolver/resolve-address/6 1131s # Input: 3232235778 1131s # Error: Error resolving “3232235778”: Name or service not known 1131s ok 68 /gresolver/resolve-address/7 1131s # Input: 0300.0250.0001.0001 1131s # Error: Error resolving “0300.0250.0001.0001”: Name or service not known 1131s ok 69 /gresolver/resolve-address/8 1131s # Input: 0xC0.0xA8.0x01.0x02 1131s # Error: Error resolving “0xC0.0xA8.0x01.0x02”: Name or service not known 1131s ok 70 /gresolver/resolve-address/9 1131s # Input: 0xc0.0xa8.0x01.0x02 1131s # Error: Error resolving “0xc0.0xa8.0x01.0x02”: Name or service not known 1131s ok 71 /gresolver/resolve-address/10 1131s # Input: 0xc0a80102 1131s # Error: Error resolving “0xc0a80102”: Name or service not known 1131s ok 72 /gresolver/resolve-address/11 1131s # End of resolve-address tests 1131s # End of gresolver tests 1131s ok - glib/network-address.test 1131s # Running test: glib/enums.test 1131s ok - glib/enums.test 1131s # Running test: glib/print.test 1131s ok - glib/print.test 1131s # Running test: glib/asyncqueue.test 1131s TAP version 14 1131s # random seed: R02S4db12041e03d8a410f13f24c83b35188 1131s 1..4 1131s # Start of enum tests 1131s ok 1 /enum/basic 1131s ok 2 /enum/define-type 1131s # End of enum tests 1131s # Start of flags tests 1131s ok 3 /flags/basic 1131s ok 4 /flags/define-type 1131s # End of flags tests 1131s TAP version 14 1131s # random seed: R02Sa7e979eccea97dce5f91723aa40de61c 1131s 1..1 1131s ok 1 /print-console # SKIP Testing console output only supported on Windows 1131s TAP version 14 1131s # random seed: R02S28949a93ae5577b2637363985638043c 1131s 1..7 1131s # Start of asyncqueue tests 1131s ok 1 /asyncqueue/basics 1131s ok 2 /asyncqueue/sort 1131s ok 3 /asyncqueue/destroy 1131s ok 4 /asyncqueue/threads 1132s ok 5 /asyncqueue/timed 1132s ok 6 /asyncqueue/remove 1132s ok 7 /asyncqueue/push_front 1132s # End of asyncqueue tests 1132s ok - glib/asyncqueue.test 1132s # Running test: glib/debugcontroller.test 1132s TAP version 14 1132s # random seed: R02S4aa3e19d25d12a8665210893ad9cc64c 1132s 1..3 1132s # Start of debug-controller tests 1132s # Start of dbus tests 1132s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 1132s # GLib-GIO-DEBUG: Debug output enabled 1132s # GLib-GIO-DEBUG: Debug output disabled 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s ok 1 /debug-controller/dbus/basic 1132s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s ok - glib/debugcontroller.test 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s ok 2 /debug-controller/dbus/duplicate 1132s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 1132s ok 3 /debug-controller/dbus/properties # SKIP https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2486#note_1384102 1132s # End of dbus tests 1132s # End of debug-controller tests 1132s # Running test: glib/converter-stream.test 1132s TAP version 14 1132s # random seed: R02S77d382c816476900b220cdd4c0343655 1132s 1..17 1132s # Start of converter tests 1132s ok 1 /converter/basics 1132s # End of converter tests 1132s # Start of converter-input-stream tests 1132s ok 2 /converter-input-stream/expander 1132s ok 3 /converter-input-stream/compressor 1132s # Start of truncation tests 1132s ok 4 /converter-input-stream/truncation/zlib 1132s ok 5 /converter-input-stream/truncation/gzip 1132s ok 6 /converter-input-stream/truncation/raw 1132s # End of truncation tests 1132s # Start of charset tests 1132s ok 7 /converter-input-stream/charset/utf8->latin1 1132s ok 8 /converter-input-stream/charset/latin1->utf8 1132s ok 9 /converter-input-stream/charset/fallbacks 1132s # End of charset tests 1132s # End of converter-input-stream tests 1132s # Start of converter-output-stream tests 1132s # Start of roundtrip tests 1132s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1132s ok 10 /converter-output-stream/roundtrip/zlib-0 1132s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1132s ok 11 /converter-output-stream/roundtrip/zlib-9 1132s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1132s ok 12 /converter-output-stream/roundtrip/gzip-0 1132s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1132s ok 13 /converter-output-stream/roundtrip/gzip-9 1132s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1132s ok 14 /converter-output-stream/roundtrip/raw-0 1132s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1132s ok 15 /converter-output-stream/roundtrip/raw-9 1132s # End of roundtrip tests 1132s # End of converter-output-stream tests 1132s # Start of converter-stream tests 1132s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1132s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa1aa74400 and GSocketClientAsyncConnectData 0x2aa1aa6cb60 1132s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1132s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1132s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa1aa759a0 for GSocketClientAsyncConnectData 0x2aa1aa6cb60 1132s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1132s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1132s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1132s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1132s ok 16 /converter-stream/pollable 1132s ok 17 /converter-stream/leftover 1132s # End of converter-stream tests 1132s ok - glib/converter-stream.test 1132s # Running test: glib/ifaceproperties.test 1132s ok - glib/ifaceproperties.test 1132s TAP version 14 1132s # random seed: R02Sb2d93fa6f36667e0778227ae33fa0224 1132s 1..7 1132s # Start of interface tests 1132s # Start of properties tests 1132s ok 1 /interface/properties/set 1132s ok 2 /interface/properties/notify 1132s ok 3 /interface/properties/find-overridden 1132s ok 4 /interface/properties/list-overridden 1132s ok 5 /interface/properties/find-interface 1132s ok 6 /interface/properties/list-interface 1132s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=637738 1132s ok 7 /interface/properties/not-overridden 1132s # End of properties tests 1132s # End of interface tests 1132s # Running test: glib/signal-handler.test 1132s TAP version 14 1132s # random seed: R02Sca5e99d2c185d76355db141b98c4da53 1132s 1..7 1132s # Start of signal tests 1132s # Start of handler tests 1132s # min perf: connected 1 handlers in 0.000 seconds 1132s ok 1 /signal/handler/connect-many 1132s # min perf: disconnected 1 handlers in 0.000 seconds 1132s ok 2 /signal/handler/disconnect-many-ordered 1132s # min perf: disconnected 1 handlers in 0.000 seconds 1132s ok - glib/signal-handler.test 1132s # Running test: glib/642026-ec.test 1132s ok - glib/642026-ec.test 1132s # Running test: glib/spawn-test.test 1132s ok 3 /signal/handler/disconnect-many-inverse 1132s # min perf: disconnected 1 handlers in 0.000 seconds 1132s ok 4 /signal/handler/disconnect-many-random 1132s # min perf: disconnected 1 handlers in 0.000 seconds 1132s ok 5 /signal/handler/disconnect-2-signals 1132s # min perf: disconnected 1 handlers in 0.000 seconds 1132s ok 6 /signal/handler/disconnect-2-objects 1132s # min perf: blocked and unblocked 1 handlers in 0.000 seconds 1132s ok 7 /signal/handler/block-many 1132s # End of handler tests 1132s # End of signal tests 1132s TAP version 14 1132s # random seed: R02S6986927d3af67254916df3aa9f1ca3aa 1132s 1..1 1132s # Start of glib tests 1132s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1132s ok 1 /glib/642026 1132s # End of glib tests 1132s TAP version 14 1132s # random seed: R02S68f5e80fc68acdbdd003f9829cdd1828 1132s 1..2 1132s # Start of spawn tests 1132s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_GUA6B3/spawn/basics/.dirs/home 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_GUA6B3/spawn/basics/.dirs/cache 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_GUA6B3/spawn/basics/.dirs/system-config1:/tmp/test_spawn-test_GUA6B3/spawn/basics/.dirs/system-config2 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_GUA6B3/spawn/basics/.dirs/config 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_GUA6B3/spawn/basics/.dirs/system-data1:/tmp/test_spawn-test_GUA6B3/spawn/basics/.dirs/system-data2 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_GUA6B3/spawn/basics/.dirs/data 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_GUA6B3/spawn/basics/.dirs/state 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_GUA6B3/spawn/basics/.dirs/runtime 1132s ok 1 /spawn/basics 1132s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_GUA6B3/spawn/stdio-overwrite/.dirs/home 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_GUA6B3/spawn/stdio-overwrite/.dirs/cache 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_GUA6B3/spawn/stdio-overwrite/.dirs/system-config1:/tmp/test_spawn-test_GUA6B3/spawn/stdio-overwrite/.dirs/system-config2 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_GUA6B3/spawn/stdio-overwrite/.dirs/config 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_GUA6B3/spawn/stdio-overwrite/.dirs/system-data1:/tmp/test_spawn-test_GUA6B3/spawn/stdio-overwrite/.dirs/system-data2 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_GUA6B3/spawn/stdio-overwrite/.dirs/data 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_GUA6B3/spawn/stdio-overwrite/.dirs/state 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_GUA6B3/spawn/stdio-overwrite/.dirs/runtime 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/16 1132s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr open 1132s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr already closed 1132s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr open 1132s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr already closed 1132s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr open 1132s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr already closed 1132s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr open 1132s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr already closed 1132s # Fetching GSpawn result output with stdin open, stdout open, stderr open 1132s # Fetching GSpawn result output with stdin open, stdout open, stderr already closed 1132s # Fetching GSpawn result output with stdin open, stdout already closed, stderr open 1132s # Fetching GSpawn result output with stdin open, stdout already closed, stderr already closed 1132s # Fetching GSpawn result output with stdin already closed, stdout open, stderr open 1132s # Fetching GSpawn result output with stdin already closed, stdout open, stderr already closed 1132s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr open 1132s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr already closed 1132s # Fetching GSpawn result error output with stdin open, stdout open, stderr open 1132s # Fetching GSpawn result error output with stdin open, stdout open, stderr already closed 1132s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr open 1132s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr already closed 1132s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr open 1132s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr already closed 1132s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr open 1132s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr already closed 1132s # Fetching GSpawn result with stdin open, stdout open, stderr open 1132s # Fetching GSpawn result with stdin open, stdout open, stderr already closed 1132s # Fetching GSpawn result with stdin open, stdout already closed, stderr open 1132s # Fetching GSpawn result with stdin open, stdout already closed, stderr already closed 1132s # Fetching GSpawn result with stdin already closed, stdout open, stderr open 1132s # Fetching GSpawn result with stdin already closed, stdout open, stderr already closed 1132s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr open 1132s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr already closed 1132s ok 2 /spawn/stdio-overwrite 1132s # End of spawn tests 1132s TAP version 14 1132s # random seed: R02S6fe652cc39d4e68d9874feae0bd99357 1132s 1..1 1132s # Start of unicode tests 1132s ok 1 /unicode/encoding 1132s # End of unicode tests 1132s TAP version 14 1132s # random seed: R02S8b17670eece779a4dcafa8bf448792b2 1132s 1..3 1132s # Start of dir tests 1132s ok 1 /dir/read 1132s ok 2 /dir/nonexisting 1132s # /dir/refcounting summary: Test refcounting interactions with g_dir_close() 1132s ok 3 /dir/refcounting 1132s # End of dir tests 1132s TAP version 14 1132s # random seed: R02S43c6f8fdef79097568f706518d482be5 1132s 1..41 1132s # Start of utils tests 1132s ok 1 /utils/language-names 1132s # Testing locale ‘en’ 1132s # Testing locale ‘sr@latin’ 1132s # Testing locale ‘fr_BE’ 1132s # Testing locale ‘sr_SR@latin’ 1132s # Testing locale ‘sr_SR@latin.UTF-8’ 1132s # Testing locale ‘sr@latin_invalid’ 1132s # Testing locale ‘sr.UTF-8@latin’ 1132s # Testing locale ‘sr.UTF-8_latin’ 1132s # Testing locale ‘sr.UTF-8@latin_invalid’ 1132s ok 2 /utils/locale-variants 1132s ok 3 /utils/version 1132s ok 4 /utils/appname 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1132s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1132s ok - glib/spawn-test.test 1132s # Running test: glib/unicode-encoding.test 1132s ok - glib/unicode-encoding.test 1132s # Running test: glib/dir.test 1132s ok - glib/dir.test 1132s # Running test: glib/utils-c-17.test 1132s ok 5 /utils/prgname-thread-safety 1132s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1132s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1132s ok 6 /utils/tmpdir 1132s ok 7 /utils/basic_bits 1132s ok 8 /utils/bits 1132s ok 9 /utils/swap 1132s ok 10 /utils/find-program 1132s ok 11 /utils/find-program-for-path 1132s ok 12 /utils/debug 1132s ok 13 /utils/codeset 1132s ok 14 /utils/codeset2 1132s ok 15 /utils/console-charset 1132s ok 16 /utils/gettext 1132s ok 17 /utils/username 1132s ok 18 /utils/realname 1132s ok 19 /utils/hostname 1132s ok 20 /utils/xdgdirs 1132s ok 21 /utils/specialdir 1132s # NAME: Ubuntu 1132s ok 22 /utils/os-info 1132s ok 23 /utils/clear-pointer 1132s ok 24 /utils/clear-pointer-cast 1132s ok 25 /utils/take-pointer 1132s ok 26 /utils/clear-source 1132s ok 27 /utils/misc-mem 1132s # /utils/aligned-mem summary: Aligned memory allocator 1132s # Alignment must not be zero 1132s # Alignment must be a power of two 1132s # Alignment must be a multiple of sizeof(void*) 1132s ok 28 /utils/aligned-mem 1132s # /utils/free-sized summary: Check that g_free_sized() works 1132s ok 29 /utils/free-sized 1132s ok 30 /utils/nullify 1132s ok 31 /utils/atexit 1132s ok 32 /utils/check-setuid 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1132s ok 33 /utils/int-limits 1132s ok 34 /utils/clear-list 1132s ok 35 /utils/clear-slist 1132s ok 36 /utils/steal-handle-id 1132s # Start of specialdir tests 1132s ok 37 /utils/specialdir/desktop 1132s # End of specialdir tests 1132s # Start of clear-pointer tests 1132s ok 38 /utils/clear-pointer/side-effects 1132s # End of clear-pointer tests 1132s # Start of aligned-mem tests 1132s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1132s ok 39 /utils/aligned-mem/alignment 1132s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1132s ok - glib/utils-c-17.test 1132s # Running test: glib/fdo-notification-backend.test 1132s ok 40 /utils/aligned-mem/zeroed 1132s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1132s ok 41 /utils/aligned-mem/free-sized 1132s # Start of subprocess tests 1132s # End of subprocess tests 1132s # End of aligned-mem tests 1132s # End of utils tests 1132s TAP version 14 1132s # random seed: R02S02dc4eeee6a6346e98c8a0f89aa209c2 1132s 1..2 1132s # Start of fdo-notification-backend tests 1132s # Test constructing a GFdoNotificationBackend 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s ok 1 /fdo-notification-backend/construction 1132s # Start of dbus tests 1132s # /fdo-notification-backend/dbus/activate-action summary: Test how the backend handles valid and invalid ActionInvoked signals from the daemon 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s ok - glib/fdo-notification-backend.test 1132s # Running test: glib/g-file-info.test 1132s ok - glib/g-file-info.test 1132s # Running test: glib/value.test 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1132s ok 2 /fdo-notification-backend/dbus/activate-action 1132s # End of dbus tests 1132s # End of fdo-notification-backend tests 1132s TAP version 14 1132s # random seed: R02Sc775fe11c50adeed275ed89abaa35195 1132s 1..6 1132s # Start of g-file-info tests 1132s ok 1 /g-file-info/test_g_file_info 1132s # /g-file-info/xattrs summary: Test setting and getting escaped xattrs 1132s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1132s ok 2 /g-file-info/xattrs 1132s # /g-file-info/set-modified-date-time-precision summary: Test that g_file_info_set_modified_date_time() preserves microseconds 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3116 1132s ok 3 /g-file-info/set-modified-date-time-precision 1132s # Start of test_g_file_info tests 1132s # /g-file-info/test_g_file_info/modification-time summary: Test that getting the modification time of a file works. 1132s ok 4 /g-file-info/test_g_file_info/modification-time 1132s # /g-file-info/test_g_file_info/access-time summary: Test that getting the access time of a file works. 1132s ok 5 /g-file-info/test_g_file_info/access-time 1132s # /g-file-info/test_g_file_info/creation-time summary: Test that getting the creation time of a file works. 1132s ok 6 /g-file-info/test_g_file_info/creation-time 1132s # End of test_g_file_info tests 1132s # End of g-file-info tests 1132s TAP version 14 1132s # random seed: R02S7ec88c4af5403720d70dd695d1df3722 1132s 1..9 1132s # Start of value tests 1132s ok 1 /value/basic 1132s ok 2 /value/collection 1132s ok 3 /value/copying 1132s ok 4 /value/enum-transformation 1132s ok 5 /value/gtype 1132s # /value/string summary: Test that G_TYPE_STRING GValue copy properly 1132s ok 6 /value/string 1132s # Next: GObject object in GValue of GObject to GValue of GObject 1132s # Next: GObject object in GValue of GObject to GValue of TestInterface 1132s # Next: GObject object in GValue of GObject to GValue of TestObjectA 1132s # Next: GObject object in GValue of GObject to GValue of TestObjectB 1132s # Next: GObject object in GValue of GObject to GValue of TestObjectA1 1132s # Next: GObject object in GValue of GObject to GValue of TestObjectA2 1132s # Next: TestObjectA object in GValue of GObject to GValue of GObject 1132s # Next: TestObjectA object in GValue of GObject to GValue of TestInterface 1132s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA 1132s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectB 1132s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA1 1132s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA2 1132s # Next: TestObjectA object in GValue of TestObjectA to GValue of GObject 1132s ok - glib/value.test 1132s # Running test: glib/resolver-parsing.test 1132s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestInterface 1132s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA 1132s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectB 1132s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA1 1132s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA2 1132s # Next: TestObjectB object in GValue of GObject to GValue of GObject 1132s # Next: TestObjectB object in GValue of GObject to GValue of TestInterface 1132s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA 1132s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectB 1132s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA1 1132s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA2 1132s # Next: TestObjectB object in GValue of TestInterface to GValue of GObject 1132s # Next: TestObjectB object in GValue of TestInterface to GValue of TestInterface 1132s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA 1132s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectB 1132s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA1 1132s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA2 1132s # Next: TestObjectB object in GValue of TestObjectB to GValue of GObject 1132s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestInterface 1132s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA 1132s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectB 1132s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA1 1132s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA2 1132s # Next: TestObjectA1 object in GValue of GObject to GValue of GObject 1132s # Next: TestObjectA1 object in GValue of GObject to GValue of TestInterface 1132s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA 1132s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectB 1132s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA1 1132s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA2 1132s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of GObject 1132s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestInterface 1132s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA 1132s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectB 1132s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA1 1132s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA2 1132s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of GObject 1132s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestInterface 1132s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA 1132s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectB 1132s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA1 1132s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA2 1132s # Next: TestObjectA2 object in GValue of GObject to GValue of GObject 1132s # Next: TestObjectA2 object in GValue of GObject to GValue of TestInterface 1132s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA 1132s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectB 1132s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA1 1132s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA2 1132s # Next: TestObjectA2 object in GValue of TestInterface to GValue of GObject 1132s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestInterface 1132s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA 1132s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectB 1132s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA1 1132s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA2 1132s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of GObject 1132s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestInterface 1132s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA 1132s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectB 1132s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA1 1132s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA2 1132s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of GObject 1132s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestInterface 1132s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA 1132s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectB 1132s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA1 1132s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA2 1132s ok 7 /value/transform-object 1132s # Start of array tests 1132s ok 8 /value/array/basic 1132s ok 9 /value/array/sort-with-data 1132s # End of array tests 1132s # End of value tests 1132s TAP version 14 1133s ok - glib/resolver-parsing.test 1133s # random seed: R02Sb51a8c94d190832af301a1628ae00ab0 1133s 1..21 1133s # Start of gresolver tests 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/invalid-header/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/invalid-header/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/invalid-header/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/invalid-header/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/invalid-header/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/invalid-header/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/invalid-header/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/invalid-header/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/invalid-header/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/invalid-header/.dirs/runtime 1133s ok 1 /gresolver/invalid-header 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/record-ownership/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/record-ownership/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/record-ownership/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/record-ownership/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/record-ownership/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/record-ownership/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/record-ownership/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/record-ownership/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/record-ownership/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/record-ownership/.dirs/runtime 1133s ok 2 /gresolver/record-ownership 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/unknown-record-type/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/unknown-record-type/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/unknown-record-type/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/unknown-record-type/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/unknown-record-type/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/unknown-record-type/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/unknown-record-type/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/unknown-record-type/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/unknown-record-type/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/unknown-record-type/.dirs/runtime 1133s # GLib-GIO-DEBUG: Unrecognized DNS record type 20 1133s ok 3 /gresolver/unknown-record-type 1133s # Start of mx tests 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/valid/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/valid/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/valid/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/mx/valid/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/valid/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/valid/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/mx/valid/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/valid/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/valid/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/valid/.dirs/runtime 1133s ok 4 /gresolver/mx/valid 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/.dirs/runtime 1133s ok 5 /gresolver/mx/invalid 1133s # Start of invalid tests 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short/.dirs/runtime 1133s ok 6 /gresolver/mx/invalid/too-short 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short2/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short2/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short2/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short2/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short2/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short2/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short2/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/mx/invalid/too-short2/.dirs/runtime 1133s ok 7 /gresolver/mx/invalid/too-short2 1133s # End of invalid tests 1133s # End of mx tests 1133s # Start of ns tests 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/ns/valid/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/ns/valid/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/ns/valid/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/ns/valid/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/ns/valid/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/ns/valid/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/ns/valid/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/ns/valid/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/ns/valid/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/ns/valid/.dirs/runtime 1133s ok 8 /gresolver/ns/valid 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/ns/invalid/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/ns/invalid/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/ns/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/ns/invalid/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/ns/invalid/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/ns/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/ns/invalid/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/ns/invalid/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/ns/invalid/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/ns/invalid/.dirs/runtime 1133s ok 9 /gresolver/ns/invalid 1133s # End of ns tests 1133s # Start of soa tests 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/valid/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/valid/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/valid/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/soa/valid/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/valid/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/valid/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/soa/valid/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/valid/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/valid/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/valid/.dirs/runtime 1133s ok 10 /gresolver/soa/valid 1133s # Start of invalid tests 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/mname/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/mname/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/mname/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/mname/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/mname/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/mname/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/mname/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/mname/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/mname/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/mname/.dirs/runtime 1133s ok 11 /gresolver/soa/invalid/mname 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/rname/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/rname/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/rname/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/rname/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/rname/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/rname/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/rname/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/rname/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/rname/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/rname/.dirs/runtime 1133s ok 12 /gresolver/soa/invalid/rname 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/too-short/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/too-short/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/too-short/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/too-short/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/too-short/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/too-short/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/too-short/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/soa/invalid/too-short/.dirs/runtime 1133s ok 13 /gresolver/soa/invalid/too-short 1133s # End of invalid tests 1133s # End of soa tests 1133s # Start of srv tests 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/valid/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/valid/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/valid/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/srv/valid/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/valid/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/valid/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/srv/valid/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/valid/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/valid/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/valid/.dirs/runtime 1133s ok 14 /gresolver/srv/valid 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/.dirs/runtime 1133s ok 15 /gresolver/srv/invalid 1133s # Start of invalid tests 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short/.dirs/runtime 1133s ok 16 /gresolver/srv/invalid/too-short 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short2/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short2/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short2/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short2/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short2/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short2/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short2/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/srv/invalid/too-short2/.dirs/runtime 1133s ok 17 /gresolver/srv/invalid/too-short2 1133s # End of invalid tests 1133s # End of srv tests 1133s # Start of txt tests 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/.dirs/runtime 1133s ok 18 /gresolver/txt/valid 1133s # Start of valid tests 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/multiple-strings/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/multiple-strings/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/multiple-strings/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/multiple-strings/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/multiple-strings/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/multiple-strings/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/multiple-strings/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/multiple-strings/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/multiple-strings/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/valid/multiple-strings/.dirs/runtime 1133s ok 19 /gresolver/txt/valid/multiple-strings 1133s # End of valid tests 1133s # Start of invalid tests 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/empty/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/empty/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/empty/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/empty/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/empty/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/empty/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/empty/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/empty/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/empty/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/empty/.dirs/runtime 1133s ok 20 /gresolver/txt/invalid/empty 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/overflow/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/overflow/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/overflow/.dirs/system-config1:/tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/overflow/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/overflow/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/overflow/.dirs/system-data1:/tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/overflow/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/overflow/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/overflow/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_KP29B3/gresolver/txt/invalid/overflow/.dirs/runtime 1133s ok 21 /gresolver/txt/invalid/overflow 1133s # End of invalid tests 1133s # End of txt tests 1133s # End of gresolver tests 1133s TAP version 14 1133s # random seed: R02Sb4afd5f3480990bce5aaebd5e0fbee02 1133s 1..2 1133s # Start of bitlock tests 1133s # Start of performance tests 1133s # max perf: iterations per second 1133s ok 1 /bitlock/performance/uncontended 1133s ok 2 /bitlock/performance/parallel 1133s # End of performance tests 1133s # End of bitlock tests 1133s TAP version 14 1133s # random seed: R02Sd7be5f6c4a4f0d54786949840c2c4857 1133s 1..1 1133s # Start of closure tests 1133s # Init 0x2aa238afdb0 1133s # Yielding from main thread 1133s # Yielding from thread1 1133s # Yielding from main thread 1133s # Running test: glib/bitlock.test 1133s ok - glib/bitlock.test 1133s # Running test: glib/closure-refcount.test 1133s # Yielding from main thread 1133s # Yielding from thread1 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from thread1 1133s # Yielding from thread2 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from thread2 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from thread1 1133s # Yielding from thread2 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from thread2 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from thread1 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from thread2 1133s # Yielding from main thread 1133s # Yielding from thread1 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from thread2 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from thread1 1133s # Yielding from main thread 1133s # Yielding from thread2 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from thread2 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from thread1 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from thread2 1133s # Yielding from thread1 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from thread2 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from thread1 1133s # Yielding from main thread 1133s # Yielding from thread2 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from thread2 1133s # Yielding from main thread 1133s # Yielding from thread1 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from thread1 1133s # Yielding from main thread 1133s # Yielding from thread2 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from main thread 1133s # Yielding from thread1 1133s # Yielding from main thread 1133s # Yielding from thread2 1133s # Yielding from main thread 1133s # Yielding from thread1 1133s # Yielding from main thread 1133s # Yielding from thread2 1133s # Yielding from main thread 1133s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from thread1 1134s # Yielding from main thread 1134s # Yielding from thread2 1134s # Yielding from main thread 1134s # Yielding from thread1 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from thread2 1134s # Yielding from main thread 1134s # Yielding from thread1 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from thread2 1134s # Yielding from main thread 1134s # Yielding from thread1 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from thread2 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from thread1 1134s # Yielding from main thread 1134s # Yielding from thread2 1134s # Yielding from thread1 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from thread1 1134s # Yielding from main thread 1134s # Yielding from thread2 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from thread1 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from thread2 1134s # Yielding from thread1 1134s # Yielding from main thread 1134s # Yielding from main thread 1134s # Yielding from thread2 1134s # Yielding from main thread 1134s ok - glib/closure-refcount.test 1134s # Stopping 1134s # Stopped 1134s ok 1 /closure/refcount 1134s # slow test /closure/refcount executed in 1.66 secs 1134s # End of closure tests 1134s # Running test: glib/cxx-2b.test 1134s TAP version 14 1134s # random seed: R02Sa053c63aa05468618e9b94dd14980bd4 1134s 1..2 1134s # Start of gtask tests 1134s # 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. 1134s ok 1 /gtask/name 1134s # Start of name tests 1134s # 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. 1134s ok 2 /gtask/name/macro-wrapper 1134s # End of name tests 1134s # End of gtask tests 1134s ok - glib/cxx-2b.test 1134s # Running test: glib/registered-type-info.test 1134s ok - glib/registered-type-info.test 1134s TAP version 14 1134s # random seed: R02S2ac0cbd760fe78295677dccb2a0c9967 1134s 1..1 1134s # Start of registered-type-info tests 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_registered-type-info_MF6ZB3/registered-type-info/boxed/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_registered-type-info_MF6ZB3/registered-type-info/boxed/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_registered-type-info_MF6ZB3/registered-type-info/boxed/.dirs/system-config1:/tmp/test_registered-type-info_MF6ZB3/registered-type-info/boxed/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_registered-type-info_MF6ZB3/registered-type-info/boxed/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_registered-type-info_MF6ZB3/registered-type-info/boxed/.dirs/system-data1:/tmp/test_registered-type-info_MF6ZB3/registered-type-info/boxed/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_registered-type-info_MF6ZB3/registered-type-info/boxed/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_registered-type-info_MF6ZB3/registered-type-info/boxed/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_registered-type-info_MF6ZB3/registered-type-info/boxed/.dirs/runtime 1134s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1134s # /registered-type-info/boxed summary: Test various boxed and non-boxed types for GIRegisteredTypeInfo 1134s # Expecting CClosure to not be boxed 1134s # Expecting TypeCValue to not be boxed 1134s # Expecting InitiallyUnownedClass to not be boxed 1134s # Expecting BookmarkFile to be boxed 1134s # Expecting Closure to be boxed 1134s # Expecting Object to not be boxed 1134s ok 1 /registered-type-info/boxed 1134s # End of registered-type-info tests 1134s # Running test: glib/collate.test 1134s TAP version 14 1134s # random seed: R02S31e40ed93418494c7900ff5405f83d6a 1134s 1..9 1134s # Start of unicode tests 1134s # Start of collate tests 1134s ok 1 /unicode/collate/0 1134s ok - glib/collate.test 1134s ok 2 /unicode/collate/1 1134s ok 3 /unicode/collate/2 1134s # End of collate tests 1134s # Start of collate-key tests 1134s ok 4 /unicode/collate-key/0 1134s ok 5 /unicode/collate-key/1 1134s ok 6 /unicode/collate-key/2 1134s # End of collate-key tests 1134s # Start of collate-filename tests 1134s ok 7 /unicode/collate-filename/0 1134s ok 8 /unicode/collate-filename/1 1134s ok 9 /unicode/collate-filename/2 1134s # End of collate-filename tests 1134s # End of unicode tests 1134s # Running test: glib/gdbus-connection-slow.test 1134s TAP version 14 1134s # random seed: R02S64f5aab25fed3b2302922ad81f60927c 1134s 1..2 1134s # Start of gdbus tests 1134s # Start of connection tests 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/flush/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/flush/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/flush/.dirs/system-config1:/tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/flush/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/flush/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/flush/.dirs/system-data1:/tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/flush/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/flush/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/flush/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/flush/.dirs/runtime 1134s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1134s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1134s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1134s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1134s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1134s ok 1 /gdbus/connection/flush 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/large_message/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/large_message/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/large_message/.dirs/system-config1:/tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/large_message/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/large_message/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/large_message/.dirs/system-data1:/tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/large_message/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/large_message/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/large_message/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_WCA0B3/gdbus/connection/large_message/.dirs/runtime 1134s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1134s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1134s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1134s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1134s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1134s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1134s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1134s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1134s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1134s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1134s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1134s ok 2 /gdbus/connection/large_message 1134s # End of connection tests 1134s # End of gdbus tests 1134s ok - glib/gdbus-connection-slow.test 1134s # Running test: glib/unix-fd.test 1134s TAP version 14 1134s # random seed: R02S5cb2a193271683b718f4da69c8fd7aa6 1134s 1..2 1134s # Start of unix-fd tests 1134s ok 1 /unix-fd/fd-list 1134s ok 2 /unix-fd/scm 1134s # End of unix-fd tests 1134s ok - glib/unix-fd.test 1134s # Running test: glib/pathbuf.test 1134s TAP version 14 1134s # random seed: R02S8fb6abdf819cc78fe13364008ed330cc 1134s 1..3 1134s # Start of pathbuf tests 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_UDR9B3/pathbuf/init/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_UDR9B3/pathbuf/init/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_UDR9B3/pathbuf/init/.dirs/system-config1:/tmp/test_pathbuf_UDR9B3/pathbuf/init/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_UDR9B3/pathbuf/init/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_UDR9B3/pathbuf/init/.dirs/system-data1:/tmp/test_pathbuf_UDR9B3/pathbuf/init/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_UDR9B3/pathbuf/init/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_UDR9B3/pathbuf/init/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_UDR9B3/pathbuf/init/.dirs/runtime 1134s # Initializing empty path buf 1134s # Initializing with empty path 1134s # Initializing with full path 1134s # Initializing with no path 1134s # Allocating GPathBuf on the heap 1134s ok 1 /pathbuf/init 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_UDR9B3/pathbuf/push-pop/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_UDR9B3/pathbuf/push-pop/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_UDR9B3/pathbuf/push-pop/.dirs/system-config1:/tmp/test_pathbuf_UDR9B3/pathbuf/push-pop/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_UDR9B3/pathbuf/push-pop/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_UDR9B3/pathbuf/push-pop/.dirs/system-data1:/tmp/test_pathbuf_UDR9B3/pathbuf/push-pop/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_UDR9B3/pathbuf/push-pop/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_UDR9B3/pathbuf/push-pop/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_UDR9B3/pathbuf/push-pop/.dirs/runtime 1134s # Pushing relative path component 1134s # Pushing absolute path component 1134s # Popping a path component 1134s # Can't pop the last element of a path buffer 1134s ok 2 /pathbuf/push-pop 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_UDR9B3/pathbuf/filename-extension/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_UDR9B3/pathbuf/filename-extension/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_UDR9B3/pathbuf/filename-extension/.dirs/system-config1:/tmp/test_pathbuf_UDR9B3/pathbuf/filename-extension/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_UDR9B3/pathbuf/filename-extension/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_UDR9B3/pathbuf/filename-extension/.dirs/system-data1:/tmp/test_pathbuf_UDR9B3/pathbuf/filename-extension/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_UDR9B3/pathbuf/filename-extension/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_UDR9B3/pathbuf/filename-extension/.dirs/state 1134s ok - glib/pathbuf.test 1134s # Running test: glib/timer.test 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_UDR9B3/pathbuf/filename-extension/.dirs/runtime 1134s ok 3 /pathbuf/filename-extension 1134s # End of pathbuf tests 1134s TAP version 14 1134s # random seed: R02Sb33e9e5e637bb670a3f9d58327752f06 1134s 1..10 1134s # Start of timer tests 1134s ok 1 /timer/basic # SKIP Not reliable due to floating-point rounding (glib#820) 1134s ok 2 /timer/stop 1134s ok 3 /timer/continue 1134s ok 4 /timer/reset 1134s ok 5 /timer/is_active 1134s # End of timer tests 1134s # Start of timeval tests 1134s ok 6 /timeval/add 1134s ok 7 /timeval/from-iso8601 1134s ok 8 /timeval/to-iso8601 1134s # Start of to-iso8601 tests 1134s ok 9 /timeval/to-iso8601/overflow 1134s # End of to-iso8601 tests 1134s # End of timeval tests 1134s # Start of usleep tests 1134s ok 10 /usleep/with-zero-wait 1134s # End of usleep tests 1134s ok - glib/timer.test 1134s # Running test: glib/cmph-bdz.test 1134s TAP version 14 1134s # random seed: R02Scf0f8015b11b6480e9701d539c7686d5 1134s 1..2 1134s # Start of cmph-bdz tests 1134s ok 1 /cmph-bdz/search 1134s ok 2 /cmph-bdz/search-packed 1134s # End of cmph-bdz tests 1134s ok - glib/cmph-bdz.test 1134s # Running test: glib/singleton.test 1134s TAP version 14 1134s # random seed: R02S5f92afce21bdd256c9911e63bc1eb5af 1134s 1..2 1134s # Start of gobject tests 1134s # Start of singleton tests 1134s ok 1 /gobject/singleton/construction 1134s # /gobject/singleton/construct-property summary: Test that creating a singleton with a construct-time property works 1134s ok - glib/singleton.test 1134s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2666 1134s ok 2 /gobject/singleton/construct-property 1134s # End of singleton tests 1134s # End of gobject tests 1134s # Running test: glib/refstring.test 1134s TAP version 14 1134s # random seed: R02Scf7bbe3fbaf6ecd0324d846c233b3dbd 1134s 1..8 1134s # Start of refstring tests 1134s # s = 'hello, world' (0x2aa10adc2b0) 1134s ok 1 /refstring/base 1134s ok 2 /refstring/length 1134s ok 3 /refstring/length-auto 1134s ok 4 /refstring/length-nuls 1134s # s = 'hello, world' (0x2aa10adc150) 1134s # p = s = 'hello, world' (0x2aa10adc150) 1134s # releasing p[0x2aa10adc150] ('hello, world') 1134s # p = 'goodbye, world' (0x2aa10adc2b0) 1134s # releasing p[0x2aa10adc2b0] ('goodbye, world') 1134s # releasing s[0x2aa10adc150] ('hello, world') 1134s ok 5 /refstring/intern 1134s # /refstring/hash_equal summary: Test g_ref_string_equal() in GHashTable 1134s ok 6 /refstring/hash_equal 1134s # /refstring/equal summary: Test g_ref_string_equal() standalone 1134s ok 7 /refstring/equal 1135s ok 8 /refstring/intern-thread-safety 1135s # End of refstring tests 1135s ok - glib/refstring.test 1135s # Running test: glib/markup-collect.test 1135s TAP version 14 1135s # random seed: R02Sab10f2ac803e278b1093efc41eb2519a 1135s 1..21 1135s # Start of markup tests 1135s # Start of collect tests 1135s ok 1 /markup/collect/0 1135s ok 2 /markup/collect/1 1135s ok 3 /markup/collect/2 1135s ok 4 /markup/collect/3 1135s ok 5 /markup/collect/4 1135s ok 6 /markup/collect/5 1135s ok 7 /markup/collect/6 1135s ok 8 /markup/collect/7 1135s ok 9 /markup/collect/8 1135s ok 10 /markup/collect/9 1135s ok 11 /markup/collect/10 1135s ok 12 /markup/collect/11 1135s ok 13 /markup/collect/12 1135s ok 14 /markup/collect/13 1135s ok 15 /markup/collect/14 1135s ok 16 /markup/collect/15 1135s ok 17 /markup/collect/16 1135s ok - glib/markup-collect.test 1135s ok 18 /markup/collect/17 1135s ok 19 /markup/collect/18 1135s ok 20 /markup/collect/19 1135s ok 21 /markup/collect/cleanup 1135s # End of collect tests 1135s # End of markup tests 1135s # Running test: glib/gdbus-exit-on-close.test 1135s TAP version 14 1135s # random seed: R02Sbff0dd99bd94883ddef79c731361ce1a 1135s 1..4 1135s # Start of gdbus tests 1135s # Start of exit-on-close tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/default/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/default/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/default/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/default/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/default/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/default/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/default/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/default/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/default/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/default/.dirs/runtime 1135s ok 1 /gdbus/exit-on-close/default 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/true/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/true/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/true/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/true/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/true/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/true/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/true/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/true/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/true/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/true/.dirs/runtime 1135s ok 2 /gdbus/exit-on-close/true 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/false/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/false/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/false/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/false/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/false/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/false/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/false/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/false/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/false/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/false/.dirs/runtime 1135s ok 3 /gdbus/exit-on-close/false 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/we-close/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/we-close/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/we-close/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/we-close/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/we-close/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/we-close/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/we-close/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/we-close/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/we-close/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_7VODC3/gdbus/exit-on-close/we-close/.dirs/runtime 1135s ok 4 /gdbus/exit-on-close/we-close 1135s # Start of default tests 1135s # End of default tests 1135s # Start of true tests 1135s # End of true tests 1135s # Start of false tests 1135s # End of false tests 1135s # Start of we-close tests 1135s # End of we-close tests 1135s # End of exit-on-close tests 1135s # End of gdbus tests 1135s ok - glib/gdbus-exit-on-close.test 1135s # Running test: glib/proxy-test.test 1135s TAP version 14 1135s # random seed: R02S13bf3107760abd32374f67f62476980f 1135s 1..11 1135s # Start of proxy tests 1135s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestProxyResolver) for ‘gio-proxy-resolver’ 1135s ok 1 /proxy/direct_sync 1135s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1135s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa2fc85b10 and GSocketClientAsyncConnectData 0x2aa2fc85030 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1135s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa2fc86630 for GSocketClientAsyncConnectData 0x2aa2fc85030 1135s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1135s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1135s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1135s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1135s ok 2 /proxy/direct_async 1135s ok 3 /proxy/single_sync 1135s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1135s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa2fc860f0 and GSocketClientAsyncConnectData 0x2aa2fc85030 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1135s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa2fc87790 for GSocketClientAsyncConnectData 0x2aa2fc85030 1135s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1135s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1135s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1135s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1135s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1135s ok 4 /proxy/single_async 1135s ok 5 /proxy/multiple_sync 1135s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1135s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa2fc863e0 and GSocketClientAsyncConnectData 0x2aa2fc86370 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1135s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa2fc87cd0 for GSocketClientAsyncConnectData 0x2aa2fc86370 1135s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1135s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1135s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1135s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1135s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa2fc87c70 for GSocketClientAsyncConnectData 0x2aa2fc86370 1135s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1135s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1135s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1135s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1135s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1135s ok 6 /proxy/multiple_async 1135s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1135s ok 7 /proxy/invalid-uris-sync 1135s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1135s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1135s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa2fc85fd0 and GSocketClientAsyncConnectData 0x2aa2fc87e60 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1135s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1135s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1135s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa2fc860f0 and GSocketClientAsyncConnectData 0x2aa2fc86370 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1135s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1135s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1135s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa2fc85fd0 and GSocketClientAsyncConnectData 0x2aa2fc87e60 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1135s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa2fc86690 for GSocketClientAsyncConnectData 0x2aa2fc87e60 1135s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1135s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1135s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1135s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1135s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1135s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa2fc860f0 and GSocketClientAsyncConnectData 0x2aa2fc87e60 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1135s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa2fc87ed0 for GSocketClientAsyncConnectData 0x2aa2fc87e60 1135s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1135s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1135s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1135s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1135s ok 8 /proxy/invalid-uris-async 1135s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1135s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa2fc85b10 and GSocketClientAsyncConnectData 0x2aa2fc87e60 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: IPv6 DNS error: Not found 1135s # GLib-GIO-DEBUG: IPv4 DNS error: Not found 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Not found 1135s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Not found 1135s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1135s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa2fc87ff0 and GSocketClientAsyncConnectData 0x2aa2fc86580 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1135s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa2fc875f0 for GSocketClientAsyncConnectData 0x2aa2fc86580 1135s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1135s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1135s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1135s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1135s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1135s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1135s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa2fc85fd0 and GSocketClientAsyncConnectData 0x2aa2fc86370 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1135s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa2fc86690 for GSocketClientAsyncConnectData 0x2aa2fc86370 1135s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1135s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1135s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1135s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1135s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1135s ok 9 /proxy/dns 1135s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1135s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa2fc85b10 and GSocketClientAsyncConnectData 0x2aa2fc86370 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1135s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa2fc86690 for GSocketClientAsyncConnectData 0x2aa2fc86370 1135s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1135s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1135s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1135s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1135s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1135s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1135s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa2fc85fd0 and GSocketClientAsyncConnectData 0x2aa2fc861b0 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1135s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa2fc875f0 for GSocketClientAsyncConnectData 0x2aa2fc861b0 1135s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1135s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1135s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1135s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1135s ok - glib/proxy-test.test 1135s # Running test: glib/gdbus-non-socket.test 1135s ok - glib/gdbus-non-socket.test 1135s # Running test: glib/objects-refcount1.test 1135s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1135s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1135s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa2fc85b10 and GSocketClientAsyncConnectData 0x2aa2fc87e60 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1135s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa2fc87cd0 for GSocketClientAsyncConnectData 0x2aa2fc87e60 1135s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1135s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1135s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1135s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1135s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1135s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1135s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1135s ok 10 /proxy/override 1135s ok 11 /proxy/enumerator-ports 1135s # End of proxy tests 1135s TAP version 14 1135s # random seed: R02S0473f4c1d2ca84bd166ed9a2222d6c84 1135s 1..1 1135s # Start of gdbus tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-non-socket_GFD1B3/gdbus/non-socket/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-non-socket_GFD1B3/gdbus/non-socket/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-non-socket_GFD1B3/gdbus/non-socket/.dirs/system-config1:/tmp/test_gdbus-non-socket_GFD1B3/gdbus/non-socket/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-non-socket_GFD1B3/gdbus/non-socket/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-non-socket_GFD1B3/gdbus/non-socket/.dirs/system-data1:/tmp/test_gdbus-non-socket_GFD1B3/gdbus/non-socket/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-non-socket_GFD1B3/gdbus/non-socket/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-non-socket_GFD1B3/gdbus/non-socket/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-non-socket_GFD1B3/gdbus/non-socket/.dirs/runtime 1135s ok 1 /gdbus/non-socket 1135s # End of gdbus tests 1135s TAP version 14 1135s # random seed: R02S78897fc467856f5774793a6e717c9999 1135s 1..1 1135s # Start of gobject tests 1135s # Start of refcount tests 1135s # init 0x2aa0fab6d80 1135s # 1135s # init 0x2aa0fab6e80 1135s # 1136s # Executing: glib/objects-refcount1.test 1140s # dispose 0x2aa0fab6d80! 1140s # 1140s # dispose 0x2aa0fab6e80! 1140s # 1140s ok 1 /gobject/refcount/object-basics 1140s # slow test /gobject/refcount/object-basics executed in 5.00 secs 1140s # End of refcount tests 1140s # End of gobject tests 1140s ok - glib/objects-refcount1.test 1140s # Running test: glib/atomic.test 1140s TAP version 14 1140s # random seed: R02Sed15986c8396350cf86e15a2e4534a67 1140s 1..2 1140s # Start of atomic tests 1140s ok 1 /atomic/types 1140s ok - glib/atomic.test 1140s ok 2 /atomic/threaded 1140s # End of atomic tests 1140s # Running test: glib/macros-c-17.test 1140s ok - glib/macros-c-17.test 1140s # Running test: glib/dynamictype.test 1140s ok - glib/dynamictype.test 1140s # Running test: glib/include.test 1140s ok - glib/include.test 1140s # Running test: glib/utils-c-89.test 1140s TAP version 14 1140s # random seed: R02Sa8cc475bd1b6be1d1955e836e859dafe 1140s 1..4 1140s # Start of C tests 1140s ok 1 /C/standard-17 1140s # End of C tests 1140s # Start of alignof tests 1140s ok 2 /alignof/fallback 1140s # End of alignof tests 1140s # Start of assert tests 1140s ok 3 /assert/static 1140s # End of assert tests 1140s # Start of struct tests 1140s ok 4 /struct/sizeof_member 1140s # End of struct tests 1140s TAP version 14 1140s # random seed: R02S3895b74302641f3ae53768e11121a1ec 1140s 1..2 1140s # Start of gobject tests 1140s ok 1 /gobject/dynamic-type 1140s # Start of dynamic-type tests 1140s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/623 1140s ok 2 /gobject/dynamic-type/query 1140s # End of dynamic-type tests 1140s # End of gobject tests 1140s TAP version 14 1140s # random seed: R02S1499bf9af4ad33af83fcfbe36e085d49 1140s 1..1 1140s # Start of include tests 1140s ok 1 /include/rwlock 1140s # End of include tests 1140s TAP version 14 1140s # random seed: R02S44124b6d839be64827c026db10881721 1140s 1..41 1140s # Start of utils tests 1140s ok 1 /utils/language-names 1140s # Testing locale ‘en’ 1140s # Testing locale ‘sr@latin’ 1140s # Testing locale ‘fr_BE’ 1140s # Testing locale ‘sr_SR@latin’ 1140s # Testing locale ‘sr_SR@latin.UTF-8’ 1140s # Testing locale ‘sr@latin_invalid’ 1140s # Testing locale ‘sr.UTF-8@latin’ 1140s # Testing locale ‘sr.UTF-8_latin’ 1140s # Testing locale ‘sr.UTF-8@latin_invalid’ 1140s ok 2 /utils/locale-variants 1140s ok 3 /utils/version 1140s ok 4 /utils/appname 1140s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1140s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1140s ok 5 /utils/prgname-thread-safety 1140s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1140s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1140s ok 6 /utils/tmpdir 1140s ok 7 /utils/basic_bits 1140s ok 8 /utils/bits 1140s ok 9 /utils/swap 1140s ok 10 /utils/find-program 1140s ok 11 /utils/find-program-for-path 1140s ok 12 /utils/debug 1140s ok 13 /utils/codeset 1140s ok 14 /utils/codeset2 1140s ok 15 /utils/console-charset 1140s ok 16 /utils/gettext 1140s ok 17 /utils/username 1140s ok 18 /utils/realname 1140s ok - glib/utils-c-89.test 1140s # Running test: glib/unix-mounts.test 1140s ok 19 /utils/hostname 1140s ok 20 /utils/xdgdirs 1140s ok 21 /utils/specialdir 1140s # NAME: Ubuntu 1140s ok 22 /utils/os-info 1140s ok 23 /utils/clear-pointer 1140s ok 24 /utils/clear-pointer-cast 1140s ok 25 /utils/take-pointer 1140s ok 26 /utils/clear-source 1140s ok 27 /utils/misc-mem 1140s # /utils/aligned-mem summary: Aligned memory allocator 1140s # Alignment must not be zero 1140s # Alignment must be a power of two 1140s # Alignment must be a multiple of sizeof(void*) 1140s ok 28 /utils/aligned-mem 1140s # /utils/free-sized summary: Check that g_free_sized() works 1140s ok 29 /utils/free-sized 1140s ok 30 /utils/nullify 1140s ok 31 /utils/atexit 1140s ok 32 /utils/check-setuid 1140s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1140s ok 33 /utils/int-limits 1140s ok 34 /utils/clear-list 1140s ok 35 /utils/clear-slist 1140s ok 36 /utils/steal-handle-id 1140s # Start of specialdir tests 1140s ok 37 /utils/specialdir/desktop 1140s # End of specialdir tests 1140s # Start of clear-pointer tests 1140s ok 38 /utils/clear-pointer/side-effects 1140s # End of clear-pointer tests 1140s # Start of aligned-mem tests 1140s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1140s ok 39 /utils/aligned-mem/alignment 1140s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1140s ok 40 /utils/aligned-mem/zeroed 1140s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1140s ok 41 /utils/aligned-mem/free-sized 1140s # Start of subprocess tests 1140s # End of subprocess tests 1140s # End of aligned-mem tests 1140s # End of utils tests 1140s TAP version 14 1140s # random seed: R02S423f7c172ef218050f9dea16c6d561c4 1140s 1..4 1140s # Start of unix-mounts tests 1140s ok 1 /unix-mounts/is-system-fs-type 1140s ok 2 /unix-mounts/is-system-device-path 1140s # /unix-mounts/get-mount-points summary: Basic test of g_unix_mount_points_get_from_file() 1140s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1140s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1140s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1140s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1140s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1140s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1140s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1140s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1140s ok 3 /unix-mounts/get-mount-points 1140s # /unix-mounts/get-mount-entries summary: Basic test of g_unix_mounts_get_from_file() 1140s ok 4 /unix-mounts/get-mount-entries 1140s # End of unix-mounts tests 1140s ok - glib/unix-mounts.test 1140s # Running test: glib/memory-settings-backend.test 1140s ok - glib/memory-settings-backend.test 1140s # Running test: glib/custom-dispatch.test 1140s ok - glib/custom-dispatch.test 1140s # Running test: glib/buffered-input-stream.test 1140s ok - glib/buffered-input-stream.test 1140s # Running test: glib/slice.test 1140s TAP version 14 1140s # random seed: R02S5b45cb3baebb9eb039580503343d3b0f 1140s 1..1 1140s # Start of memory-settings-backend tests 1140s ok 1 /memory-settings-backend/extension-point-registered 1140s # End of memory-settings-backend tests 1140s TAP version 14 1140s # random seed: R02Sdb75c6e77e04d5b87d9d06bb7d73f47f 1140s 1..2 1140s # Start of properties tests 1140s # Start of custom-dispatch tests 1140s # /properties/custom-dispatch/init summary: Test that custom dispatch_properties_changed is called on initialization 1140s ok 1 /properties/custom-dispatch/init 1140s # /properties/custom-dispatch/set summary: Test that custom dispatch_properties_changed is called regardless of connected notify handlers 1140s ok 2 /properties/custom-dispatch/set 1140s # End of custom-dispatch tests 1140s # End of properties tests 1140s TAP version 14 1140s # random seed: R02Sfecce6bf6bf996304025391364449881 1140s 1..10 1140s # Start of buffered-input-stream tests 1140s ok 1 /buffered-input-stream/peek 1140s ok 2 /buffered-input-stream/peek-buffer 1140s ok 3 /buffered-input-stream/set-buffer-size 1140s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=562393 1140s ok 4 /buffered-input-stream/read-byte 1140s ok 5 /buffered-input-stream/read 1140s ok 6 /buffered-input-stream/read-async 1140s ok 7 /buffered-input-stream/skip 1140s ok 8 /buffered-input-stream/skip-async 1140s ok 9 /buffered-input-stream/seek 1140s # End of buffered-input-stream tests 1140s # Start of filter-input-stream tests 1140s ok 10 /filter-input-stream/close 1140s # End of filter-input-stream tests 1140s TAP version 14 1140s # random seed: R02Sd39ce5cfa89099d0ecaa2cf02ce45577 1140s 1..3 1140s # Start of slice tests 1140s ok 1 /slice/copy 1140s ok 2 /slice/chain 1140s ok 3 /slice/allocate 1140s # End of slice tests 1140s ok - glib/slice.test 1140s # Running test: glib/gdbus-peer-object-manager.test 1140s TAP version 14 1140s # random seed: R02S502dd58a06a7390a93422d58a2aa3edb 1140s 1..2 1140s # Start of gdbus tests 1140s # Start of peer-object-manager tests 1140s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/normal/.dirs/home 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/normal/.dirs/cache 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/normal/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/normal/.dirs/system-config2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/normal/.dirs/config 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/normal/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/normal/.dirs/system-data2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/normal/.dirs/data 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/normal/.dirs/state 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/normal/.dirs/runtime 1140s ok 1 /gdbus/peer-object-manager/normal 1140s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/root/.dirs/home 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/root/.dirs/cache 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/root/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/root/.dirs/system-config2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/root/.dirs/config 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/root/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/root/.dirs/system-data2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/root/.dirs/data 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/root/.dirs/state 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_0N36B3/gdbus/peer-object-manager/root/.dirs/runtime 1140s ok - glib/gdbus-peer-object-manager.test 1140s ok 2 /gdbus/peer-object-manager/root 1140s # End of peer-object-manager tests 1140s # End of gdbus tests 1140s # Running test: glib/gdbus-auth.test 1140s TAP version 14 1140s # random seed: R02Sa5521cebc86601995e02e13c84a93e8a 1140s 1..5 1140s # Start of gdbus tests 1140s # Start of auth tests 1140s # Start of client tests 1140s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/EXTERNAL/.dirs/home 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/EXTERNAL/.dirs/cache 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/EXTERNAL/.dirs/system-config2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/EXTERNAL/.dirs/config 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/EXTERNAL/.dirs/system-data2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/EXTERNAL/.dirs/data 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/EXTERNAL/.dirs/state 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/EXTERNAL/.dirs/runtime 1140s ok 1 /gdbus/auth/client/EXTERNAL 1140s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/home 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/cache 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/config 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/data 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/state 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/runtime 1140s ok 2 /gdbus/auth/client/DBUS_COOKIE_SHA1 1140s # End of client tests 1140s # Start of server tests 1140s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/ANONYMOUS/.dirs/home 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/ANONYMOUS/.dirs/cache 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/ANONYMOUS/.dirs/system-config1:/tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/ANONYMOUS/.dirs/system-config2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/ANONYMOUS/.dirs/config 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/ANONYMOUS/.dirs/system-data1:/tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/ANONYMOUS/.dirs/system-data2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/ANONYMOUS/.dirs/data 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/ANONYMOUS/.dirs/state 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/ANONYMOUS/.dirs/runtime 1140s ok 3 /gdbus/auth/server/ANONYMOUS 1140s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/EXTERNAL/.dirs/home 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/EXTERNAL/.dirs/cache 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/EXTERNAL/.dirs/system-config2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/EXTERNAL/.dirs/config 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/EXTERNAL/.dirs/system-data2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/EXTERNAL/.dirs/data 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/EXTERNAL/.dirs/state 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/EXTERNAL/.dirs/runtime 1140s ok 4 /gdbus/auth/server/EXTERNAL 1140s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/home 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/cache 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/config 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/data 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/state 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_K4U6B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/runtime 1140s ok 5 /gdbus/auth/server/DBUS_COOKIE_SHA1 1140s # End of server tests 1140s # End of auth tests 1140s # End of gdbus tests 1140s ok - glib/gdbus-auth.test 1140s # Running test: glib/signals.test 1140s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1140s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1140s TAP version 14 1140s # random seed: R02S901a627b0cc83122fb87fd233d220f18 1140s 1..31 1140s # Start of gobject tests 1140s # Start of signals tests 1140s ok 1 /gobject/signals/all-types 1140s ok 2 /gobject/signals/variant 1140s ok 3 /gobject/signals/destroy-target-object 1140s ok 4 /gobject/signals/generic-marshaller-1 1140s ok 5 /gobject/signals/generic-marshaller-2 1140s ok 6 /gobject/signals/generic-marshaller-enum-return-signed 1140s ok 7 /gobject/signals/generic-marshaller-enum-return-unsigned 1140s ok 8 /gobject/signals/generic-marshaller-int-return 1140s ok 9 /gobject/signals/generic-marshaller-uint-return 1140s ok 10 /gobject/signals/generic-marshaller-interface-return 1140s ok 11 /gobject/signals/custom-marshaller 1140s ok 12 /gobject/signals/connect 1140s ok 13 /gobject/signals/emission-hook 1140s ok 14 /gobject/signals/emitv 1140s ok 15 /gobject/signals/accumulator 1140s # Signal: accumulator-class-first 1140s # Signal: accumulator-class-last 1140s # Signal: accumulator-class-cleanup 1140s # Signal: accumulator-class-first-last 1140s # Signal: accumulator-class-first-last-cleanup 1140s # Signal: accumulator-class-last-cleanup 1140s ok 16 /gobject/signals/accumulator-class 1140s ok 17 /gobject/signals/introspection 1140s ok 18 /gobject/signals/block-handler 1140s ok 19 /gobject/signals/stop-emission 1140s ok 20 /gobject/signals/invocation-hint 1140s ok 21 /gobject/signals/test-disconnection-wrong-object 1140s ok 22 /gobject/signals/clear-signal-handler 1140s # /gobject/signals/lookup summary: Test that g_signal_lookup() works with a variety of inputs. 1140s ok 23 /gobject/signals/lookup 1140s # /gobject/signals/parse-name summary: Test that g_signal_parse_name() works with a variety of inputs. 1140s ok 24 /gobject/signals/parse-name 1140s ok 25 /gobject/signals/is-valid-name 1140s ok 26 /gobject/signals/weak-ref-disconnect 1140s # Start of lookup tests 1140s # /gobject/signals/lookup/invalid summary: Test that g_signal_lookup() emits a warning if looking up an invalid signal name. 1140s ok 27 /gobject/signals/lookup/invalid 1140s # End of lookup tests 1140s # Start of parse-name tests 1140s # /gobject/signals/parse-name/invalid summary: Test that g_signal_parse_name() ignores a variety of invalid inputs. 1140s # Parser input: 1140s # Parser input: 7zip 1140s # Parser input: invalid:signal 1140s # Parser input: simple-detailed:: 1140s # Parser input: simple-detailed: 1140s # Parser input: : 1140s # Parser input: :: 1140s # Parser input: :valid-detail 1140s # Parser input: ::valid-detail 1140s ok 28 /gobject/signals/parse-name/invalid 1140s # End of parse-name tests 1140s # Start of invalid-name tests 1140s # /gobject/signals/invalid-name/colon summary: Check that g_signal_new() rejects invalid signal names. 1140s ok 29 /gobject/signals/invalid-name/colon 1140s # /gobject/signals/invalid-name/first-char summary: Check that g_signal_new() rejects invalid signal names. 1140s ok 30 /gobject/signals/invalid-name/first-char 1140s # /gobject/signals/invalid-name/empty summary: Check that g_signal_new() rejects invalid signal names. 1140s ok 31 /gobject/signals/invalid-name/empty 1140s # End of invalid-name tests 1140s # End of signals tests 1140s # End of gobject tests 1140s TAP version 14 1140s # random seed: R02Sb445b73453df3965ee5f7774fc7a5d3e 1140s 1..1 1140s # Start of gdbus tests 1140s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-unique-name_SXQ6B3/gdbus/proxy-unique-name/.dirs/home 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-unique-name_SXQ6B3/gdbus/proxy-unique-name/.dirs/cache 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-unique-name_SXQ6B3/gdbus/proxy-unique-name/.dirs/system-config1:/tmp/test_gdbus-proxy-unique-name_SXQ6B3/gdbus/proxy-unique-name/.dirs/system-config2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-unique-name_SXQ6B3/gdbus/proxy-unique-name/.dirs/config 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-unique-name_SXQ6B3/gdbus/proxy-unique-name/.dirs/system-data1:/tmp/test_gdbus-proxy-unique-name_SXQ6B3/gdbus/proxy-unique-name/.dirs/system-data2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-unique-name_SXQ6B3/gdbus/proxy-unique-name/.dirs/data 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-unique-name_SXQ6B3/gdbus/proxy-unique-name/.dirs/state 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-unique-name_SXQ6B3/gdbus/proxy-unique-name/.dirs/runtime 1140s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1140s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1140s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1140s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1140s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1140s ok 1 /gdbus/proxy-unique-name 1140s # End of gdbus tests 1140s TAP version 14 1140s # random seed: R02S8b42bf6fceabad0428d308ebedb9a695 1140s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=787731 1140s 1..2 1140s # Start of g-file-info-filesystem-readonly tests 1140s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/home 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/cache 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/config 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/data 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/state 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/runtime 1140s ok 1 /g-file-info-filesystem-readonly/test-fs-ro # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1140s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/home 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/cache 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/config 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/data 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/state 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_VEN6B3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/runtime 1140s ok 2 /g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1140s # End of g-file-info-filesystem-readonly tests 1140s TAP version 14 1140s # random seed: R02Se615e9e4f9c989c2fa059f8886437755 1140s 1..25 1140s # Start of string tests 1140s ok 1 /string/chunks 1140s ok 2 /string/chunk-insert 1140s ok 3 /string/new 1140s ok 4 /string/printf 1140s ok 5 /string/assign 1140s ok 6 /string/append-c 1140s ok 7 /string/append 1140s ok 8 /string/append-vprintf 1140s ok 9 /string/prepend-c 1140s ok 10 /string/prepend 1140s ok 11 /string/insert 1140s ok 12 /string/insert-unichar 1140s ok 13 /string/equal 1140s ok 14 /string/truncate 1140s ok 15 /string/overwrite 1140s ok 16 /string/nul-handling 1140s ok 17 /string/up-down 1140s ok 18 /string/set-size 1140s ok 19 /string/to-bytes 1140s # 0: Replacing "bar" with "baz" (limit 0) in "foo bar foo baz foo bar foobarbaz" 1140s # -> 3 replacements, "foo baz foo baz foo baz foobazbaz" 1140s # 1: Replacing "baz" with "bar" (limit 3) in "foo baz foo baz foo baz foobazbaz" 1140s # -> 3 replacements, "foo bar foo bar foo bar foobazbaz" 1140s # 2: Replacing "foobar" with "bar" (limit 1) in "foo bar foo bar foo bar foobazbaz" 1140s # -> 0 replacements, "foo bar foo bar foo bar foobazbaz" 1140s # 3: Replacing "a" with "abcdefghijkl" (limit 0) in "aaaaaaaa" 1140s # -> 8 replacements, "abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl" 1140s # 4: Replacing "$LIB" with "lib32" (limit 0) in "/usr/$LIB/libMangoHud.so" 1140s # -> 1 replacements, "/usr/lib32/libMangoHud.so" 1140s # 5: Replacing "o" with "" (limit 0) in "food for foals" 1140s # -> 4 replacements, "fd fr fals" 1140s # 6: Replacing "a" with "aaa" (limit 0) in "aaa" 1140s # -> 3 replacements, "aaaaaaaaa" 1140s # 7: Replacing "a" with "" (limit 0) in "aaa" 1140s # -> 3 replacements, "" 1140s # 8: Replacing "aa" with "bb" (limit 0) in "aaa" 1140s # -> 1 replacements, "bba" 1140s # 9: Replacing "" with "bar" (limit 0) in "foo" 1140s # -> 4 replacements, "barfbarobarobar" 1140s # 10: Replacing "" with "bar" (limit 1) in "foo" 1140s # -> 1 replacements, "barfoo" 1140s # 11: Replacing "" with "bar" (limit 2) in "foo" 1140s # -> 2 replacements, "barfbaroo" 1140s # 12: Replacing "" with "bar" (limit 3) in "foo" 1140s # -> 3 replacements, "barfbarobaro" 1140s # 13: Replacing "" with "bar" (limit 4) in "foo" 1140s # -> 4 replacements, "barfbarobarobar" 1140s # 14: Replacing "" with "bar" (limit 5) in "foo" 1140s # -> 4 replacements, "barfbarobarobar" 1140s # 15: Replacing "" with "x" (limit 0) in "" 1140s # -> 1 replacements, "x" 1140s # 16: Replacing "" with "" (limit 0) in "" 1140s # -> 1 replacements, "" 1140s # 17: Replacing "" with "aaaaaaaaaaaa" (limit 0) in "bbbbbbbbb" 1140s # -> 10 replacements, "aaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaa" 1140s ok 20 /string/replace 1140s ok 21 /string/steal 1140s ok 22 /string/new-take 1140s ok 23 /string/copy 1140s ok 24 /string/sized-new 1140s # Start of new-take tests 1140s ok 25 /string/new-take/null 1140s # End of new-take tests 1140s # End of string tests 1140s TAP version 14 1140s # random seed: R02S2ebae48a75ab91baa4ff69eab46e45f4 1140s 1..1 1140s # Start of gobject tests 1140s # Start of refcount tests 1140s ok - glib/signals.test 1140s # Running test: glib/gdbus-proxy-unique-name.test 1140s ok - glib/gdbus-proxy-unique-name.test 1140s # Running test: glib/g-file-info-filesystem-readonly.test 1140s ok - glib/g-file-info-filesystem-readonly.test 1140s # Running test: glib/string.test 1140s ok - glib/string.test 1140s # Running test: glib/properties-refcount3.test 1141s # Executing: glib/properties-refcount3.test 1146s # Executing: glib/properties-refcount3.test 1151s # Executing: glib/properties-refcount3.test 1156s # Executing: glib/properties-refcount3.test 1161s # Executing: glib/properties-refcount3.test 1166s # Executing: glib/properties-refcount3.test 1170s # 1170s # stopping 1170s # 1170s # stopped 1170s # 1170s # 43174008 121969 1170s # 1170s ok 1 /gobject/refcount/properties-3 1170s # slow test /gobject/refcount/properties-3 executed in 30.00 secs 1170s # End of refcount tests 1170s # End of gobject tests 1170s ok - glib/properties-refcount3.test 1170s # Running test: glib/mappedfile.test 1170s TAP version 14 1170s # random seed: R02Sbb8427da5d5431741846ebc94f8729b0 1170s 1..7 1170s # Start of mappedfile tests 1170s ok 1 /mappedfile/basic 1170s ok 2 /mappedfile/empty 1170s ok 3 /mappedfile/device 1170s ok 4 /mappedfile/nonexisting 1170s ok 5 /mappedfile/writable 1170s ok - glib/mappedfile.test 1170s ok 6 /mappedfile/writable_fd 1170s ok 7 /mappedfile/gbytes 1170s # End of mappedfile tests 1170s # Running test: glib/performance.test 1171s # Executing: glib/performance.test 1176s # Executing: glib/performance.test 1177s simple-construction: Millions of constructed objects per second: 22.440 1179s simple-construction1: Millions of constructed objects per second: 81.342 1181s # Executing: glib/performance.test 1182s complex-construction: Millions of constructed objects per second: 7.840 1186s # Executing: glib/performance.test 1187s complex-construction1: Millions of constructed objects per second: 14.418 1191s # Executing: glib/performance.test 1191s complex-construction2: Millions of constructed objects per second: 15.521 1193s finalization: Millions of finalized objects per second: 4.790 1194s type-check: Million type checks per second: 74.22 1195s emit-unhandled: Emissions per second: 8015562 1196s # Executing: glib/performance.test 1196s emit-unhandled-empty: Emissions per second: 53020030 1197s emit-unhandled-generic: Emissions per second: 12684531 1199s emit-unhandled-generic-empty: Emissions per second: 53333546 1200s emit-unhandled-args: Emissions per second: 6138872 1201s # Executing: glib/performance.test 1201s emit-handled: Emissions per second: 5132815 1202s emit-handled-empty: Emissions per second: 5314775 1203s emit-handled-generic: Emissions per second: 5310192 1204s emit-handled-generic-empty: Emissions per second: 10116081 1206s # Executing: glib/performance.test 1206s emit-handled-args: Emissions per second: 4385815 1207s notify-unhandled: Notify (unhandled) per second: 36717832 1208s notify-by-pspec-unhandled: Notify (unhandled) per second: 133419863 1209s notify-handled: Notify per second: 2749463 1210s notify-by-pspec-handled: Notify per second: 2858027 1211s # Executing: glib/performance.test 1212s property-set: Property set per second: 21336801 1213s property-set-signaled: Property set per second: 5711192 1214s property-get: Property get per second: 21268345 1215s refcount: Million refs+unref per second: 54.96 1216s # Executing: glib/performance.test 1216s refcount-1: Million refs+unref per second: 154.24 1217s refcount-toggle: Million refs+unref per second: 96.23 1217s ok - glib/performance.test 1217s # Running test: glib/gdbus-sasl.test 1217s TAP version 14 1217s # random seed: R02S86e6bbff02f03db3183c0921a4784de6 1217s 1..1 1217s # Start of gdbus tests 1217s # Start of sasl tests 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-sasl_6ZS6B3/gdbus/sasl/server/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-sasl_6ZS6B3/gdbus/sasl/server/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-sasl_6ZS6B3/gdbus/sasl/server/.dirs/system-config1:/tmp/test_gdbus-sasl_6ZS6B3/gdbus/sasl/server/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-sasl_6ZS6B3/gdbus/sasl/server/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-sasl_6ZS6B3/gdbus/sasl/server/.dirs/system-data1:/tmp/test_gdbus-sasl_6ZS6B3/gdbus/sasl/server/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-sasl_6ZS6B3/gdbus/sasl/server/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-sasl_6ZS6B3/gdbus/sasl/server/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-sasl_6ZS6B3/gdbus/sasl/server/.dirs/runtime 1217s # New handshake: EXTERNAL with incorrect initial response 1217s # C:“AUTH EXTERNAL 30” 1217s # Expect: /^REJECTED.*$/ 1217s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 1217s # New handshake: EXTERNAL without initial response, failing to authenticate 1217s # C:“AUTH EXTERNAL” 1217s # Expect: /^DATA$/ 1217s # S:“DATA” 1217s # C:“DATA 30” 1217s # Expect: /^REJECTED.*$/ 1217s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 1217s # New handshake: EXTERNAL with initial response 1217s # C:“AUTH EXTERNAL 31303030” 1217s # Expect: /^OK [0-9a-f]+$/ 1217s # S:“OK 778ff17450da3f09213e97bf68b9e629” 1217s # New handshake: EXTERNAL without initial response 1217s # C:“AUTH EXTERNAL” 1217s # Expect: /^DATA$/ 1217s # S:“DATA” 1217s # C:“DATA 31303030” 1217s # Expect: /^OK [0-9a-f]+$/ 1217s # S:“OK 778ff17450da3f09213e97bf68b9e629” 1217s # New handshake: EXTERNAL with empty authorization identity 1217s # C:“AUTH EXTERNAL” 1217s # Expect: /^DATA$/ 1217s # S:“DATA” 1217s # C:“DATA” 1217s # Expect: /^OK [0-9a-f]+$/ 1217s # S:“OK 778ff17450da3f09213e97bf68b9e629” 1217s # New handshake: EXTERNAL with empty authorization identity and whitespace 1217s # C:“AUTH EXTERNAL” 1217s # Expect: /^DATA$/ 1217s ok - glib/gdbus-sasl.test 1217s # Running test: glib/checksum.test 1217s # S:“DATA” 1217s # C:“DATA ” 1217s # Expect: /^OK [0-9a-f]+$/ 1217s # S:“OK 778ff17450da3f09213e97bf68b9e629” 1217s ok 1 /gdbus/sasl/server 1217s # End of sasl tests 1217s # End of gdbus tests 1217s TAP version 14 1217s # random seed: R02Sffaa38f818e7f58f0cd9c7d7541b2f76 1217s 1..1851 1217s # Start of checksum tests 1217s ok 1 /checksum/unsupported 1217s # Start of MD5 tests 1217s ok 2 /checksum/MD5/0 1217s ok 3 /checksum/MD5/1 1217s ok 4 /checksum/MD5/2 1217s ok 5 /checksum/MD5/3 1217s ok 6 /checksum/MD5/4 1217s ok 7 /checksum/MD5/5 1217s ok 8 /checksum/MD5/6 1217s ok 9 /checksum/MD5/7 1217s ok 10 /checksum/MD5/8 1217s ok 11 /checksum/MD5/9 1217s ok 12 /checksum/MD5/10 1217s ok 13 /checksum/MD5/11 1217s ok 14 /checksum/MD5/12 1217s ok 15 /checksum/MD5/13 1217s ok 16 /checksum/MD5/14 1217s ok 17 /checksum/MD5/15 1217s ok 18 /checksum/MD5/16 1217s ok 19 /checksum/MD5/17 1217s ok 20 /checksum/MD5/18 1217s ok 21 /checksum/MD5/19 1217s ok 22 /checksum/MD5/20 1217s ok 23 /checksum/MD5/21 1217s ok 24 /checksum/MD5/22 1217s ok 25 /checksum/MD5/23 1217s ok 26 /checksum/MD5/24 1217s ok 27 /checksum/MD5/25 1217s ok 28 /checksum/MD5/26 1217s ok 29 /checksum/MD5/27 1217s ok 30 /checksum/MD5/28 1217s ok 31 /checksum/MD5/29 1217s ok 32 /checksum/MD5/30 1217s ok 33 /checksum/MD5/31 1217s ok 34 /checksum/MD5/32 1217s ok 35 /checksum/MD5/33 1217s ok 36 /checksum/MD5/34 1217s ok 37 /checksum/MD5/35 1217s ok 38 /checksum/MD5/36 1217s ok 39 /checksum/MD5/37 1217s ok 40 /checksum/MD5/38 1217s ok 41 /checksum/MD5/39 1217s ok 42 /checksum/MD5/40 1217s ok 43 /checksum/MD5/41 1217s ok 44 /checksum/MD5/42 1217s ok 45 /checksum/MD5/43 1217s ok 46 /checksum/MD5/44 1217s ok 47 /checksum/MD5/45 1217s ok 48 /checksum/MD5/46 1217s ok 49 /checksum/MD5/47 1217s ok 50 /checksum/MD5/48 1217s ok 51 /checksum/MD5/49 1217s ok 52 /checksum/MD5/50 1217s ok 53 /checksum/MD5/51 1217s ok 54 /checksum/MD5/52 1217s ok 55 /checksum/MD5/53 1217s ok 56 /checksum/MD5/54 1217s ok 57 /checksum/MD5/55 1217s ok 58 /checksum/MD5/56 1217s ok 59 /checksum/MD5/57 1217s ok 60 /checksum/MD5/58 1217s ok 61 /checksum/MD5/59 1217s ok 62 /checksum/MD5/60 1217s ok 63 /checksum/MD5/61 1217s ok 64 /checksum/MD5/62 1217s ok 65 /checksum/MD5/63 1217s ok 66 /checksum/MD5/64 1217s ok 67 /checksum/MD5/65 1217s ok 68 /checksum/MD5/66 1217s ok 69 /checksum/MD5/67 1217s ok 70 /checksum/MD5/68 1217s ok 71 /checksum/MD5/69 1217s ok 72 /checksum/MD5/70 1217s ok 73 /checksum/MD5/71 1217s ok 74 /checksum/MD5/72 1217s ok 75 /checksum/MD5/73 1217s ok 76 /checksum/MD5/74 1217s ok 77 /checksum/MD5/75 1217s ok 78 /checksum/MD5/76 1217s ok 79 /checksum/MD5/77 1217s ok 80 /checksum/MD5/78 1217s ok 81 /checksum/MD5/79 1217s ok 82 /checksum/MD5/80 1217s ok 83 /checksum/MD5/81 1217s ok 84 /checksum/MD5/82 1217s ok 85 /checksum/MD5/83 1217s ok 86 /checksum/MD5/84 1217s ok 87 /checksum/MD5/85 1217s ok 88 /checksum/MD5/86 1217s ok 89 /checksum/MD5/87 1217s ok 90 /checksum/MD5/88 1217s ok 91 /checksum/MD5/89 1217s ok 92 /checksum/MD5/90 1217s ok 93 /checksum/MD5/91 1217s ok 94 /checksum/MD5/92 1217s ok 95 /checksum/MD5/93 1217s ok 96 /checksum/MD5/94 1217s ok 97 /checksum/MD5/95 1217s ok 98 /checksum/MD5/96 1217s ok 99 /checksum/MD5/97 1217s ok 100 /checksum/MD5/98 1217s ok 101 /checksum/MD5/99 1217s ok 102 /checksum/MD5/100 1217s ok 103 /checksum/MD5/101 1217s ok 104 /checksum/MD5/102 1217s ok 105 /checksum/MD5/103 1217s ok 106 /checksum/MD5/104 1217s ok 107 /checksum/MD5/105 1217s ok 108 /checksum/MD5/106 1217s ok 109 /checksum/MD5/107 1217s ok 110 /checksum/MD5/108 1217s ok 111 /checksum/MD5/109 1217s ok 112 /checksum/MD5/110 1217s ok 113 /checksum/MD5/111 1217s ok 114 /checksum/MD5/112 1217s ok 115 /checksum/MD5/113 1217s ok 116 /checksum/MD5/114 1217s ok 117 /checksum/MD5/115 1217s ok 118 /checksum/MD5/116 1217s ok 119 /checksum/MD5/117 1217s ok 120 /checksum/MD5/118 1217s ok 121 /checksum/MD5/119 1217s ok 122 /checksum/MD5/120 1217s ok 123 /checksum/MD5/121 1217s ok 124 /checksum/MD5/122 1217s ok 125 /checksum/MD5/123 1217s ok 126 /checksum/MD5/124 1217s ok 127 /checksum/MD5/125 1217s ok 128 /checksum/MD5/126 1217s ok 129 /checksum/MD5/127 1217s ok 130 /checksum/MD5/128 1217s ok 131 /checksum/MD5/129 1217s ok 132 /checksum/MD5/130 1217s ok 133 /checksum/MD5/131 1217s ok 134 /checksum/MD5/132 1217s ok 135 /checksum/MD5/133 1217s ok 136 /checksum/MD5/134 1217s ok 137 /checksum/MD5/135 1217s ok 138 /checksum/MD5/136 1217s ok 139 /checksum/MD5/137 1217s ok 140 /checksum/MD5/138 1217s ok 141 /checksum/MD5/139 1217s ok 142 /checksum/MD5/140 1217s ok 143 /checksum/MD5/141 1217s ok 144 /checksum/MD5/142 1217s ok 145 /checksum/MD5/143 1217s ok 146 /checksum/MD5/144 1217s ok 147 /checksum/MD5/145 1217s ok 148 /checksum/MD5/146 1217s ok 149 /checksum/MD5/147 1217s ok 150 /checksum/MD5/148 1217s ok 151 /checksum/MD5/149 1217s ok 152 /checksum/MD5/150 1217s ok 153 /checksum/MD5/151 1217s ok 154 /checksum/MD5/152 1217s ok 155 /checksum/MD5/153 1217s ok 156 /checksum/MD5/154 1217s ok 157 /checksum/MD5/155 1217s ok 158 /checksum/MD5/156 1217s ok 159 /checksum/MD5/157 1217s ok 160 /checksum/MD5/158 1217s ok 161 /checksum/MD5/159 1217s ok 162 /checksum/MD5/160 1217s ok 163 /checksum/MD5/161 1217s ok 164 /checksum/MD5/162 1217s ok 165 /checksum/MD5/163 1217s ok 166 /checksum/MD5/164 1217s ok 167 /checksum/MD5/165 1217s ok 168 /checksum/MD5/166 1217s ok 169 /checksum/MD5/167 1217s ok 170 /checksum/MD5/168 1217s ok 171 /checksum/MD5/169 1217s ok 172 /checksum/MD5/170 1217s ok 173 /checksum/MD5/171 1217s ok 174 /checksum/MD5/172 1217s ok 175 /checksum/MD5/173 1217s ok 176 /checksum/MD5/174 1217s ok 177 /checksum/MD5/175 1217s ok 178 /checksum/MD5/176 1217s ok 179 /checksum/MD5/177 1217s ok 180 /checksum/MD5/178 1217s ok 181 /checksum/MD5/179 1217s ok 182 /checksum/MD5/180 1217s ok 183 /checksum/MD5/181 1217s ok 184 /checksum/MD5/182 1217s ok 185 /checksum/MD5/183 1217s ok 186 /checksum/MD5/string 1217s ok 187 /checksum/MD5/bytes 1217s # Start of reset tests 1217s ok 188 /checksum/MD5/reset/0 1217s ok 189 /checksum/MD5/reset/1 1217s ok 190 /checksum/MD5/reset/2 1217s ok 191 /checksum/MD5/reset/3 1217s ok 192 /checksum/MD5/reset/4 1217s ok 193 /checksum/MD5/reset/5 1217s ok 194 /checksum/MD5/reset/6 1217s ok 195 /checksum/MD5/reset/7 1217s ok 196 /checksum/MD5/reset/8 1217s ok 197 /checksum/MD5/reset/9 1217s ok 198 /checksum/MD5/reset/10 1217s ok 199 /checksum/MD5/reset/11 1217s ok 200 /checksum/MD5/reset/12 1217s ok 201 /checksum/MD5/reset/13 1217s ok 202 /checksum/MD5/reset/14 1217s ok 203 /checksum/MD5/reset/15 1217s ok 204 /checksum/MD5/reset/16 1217s ok 205 /checksum/MD5/reset/17 1217s ok 206 /checksum/MD5/reset/18 1217s ok 207 /checksum/MD5/reset/19 1217s ok 208 /checksum/MD5/reset/20 1217s ok 209 /checksum/MD5/reset/21 1217s ok 210 /checksum/MD5/reset/22 1217s ok 211 /checksum/MD5/reset/23 1217s ok 212 /checksum/MD5/reset/24 1217s ok 213 /checksum/MD5/reset/25 1217s ok 214 /checksum/MD5/reset/26 1217s ok 215 /checksum/MD5/reset/27 1217s ok 216 /checksum/MD5/reset/28 1217s ok 217 /checksum/MD5/reset/29 1217s ok 218 /checksum/MD5/reset/30 1217s ok 219 /checksum/MD5/reset/31 1217s ok 220 /checksum/MD5/reset/32 1217s ok 221 /checksum/MD5/reset/33 1217s ok 222 /checksum/MD5/reset/34 1217s ok 223 /checksum/MD5/reset/35 1217s ok 224 /checksum/MD5/reset/36 1217s ok 225 /checksum/MD5/reset/37 1217s ok 226 /checksum/MD5/reset/38 1217s ok 227 /checksum/MD5/reset/39 1217s ok 228 /checksum/MD5/reset/40 1217s ok 229 /checksum/MD5/reset/41 1217s ok 230 /checksum/MD5/reset/42 1217s ok 231 /checksum/MD5/reset/43 1217s ok 232 /checksum/MD5/reset/44 1217s ok 233 /checksum/MD5/reset/45 1217s ok 234 /checksum/MD5/reset/46 1217s ok 235 /checksum/MD5/reset/47 1217s ok 236 /checksum/MD5/reset/48 1217s ok 237 /checksum/MD5/reset/49 1217s ok 238 /checksum/MD5/reset/50 1217s ok 239 /checksum/MD5/reset/51 1217s ok 240 /checksum/MD5/reset/52 1217s ok 241 /checksum/MD5/reset/53 1217s ok 242 /checksum/MD5/reset/54 1217s ok 243 /checksum/MD5/reset/55 1217s ok 244 /checksum/MD5/reset/56 1217s ok 245 /checksum/MD5/reset/57 1217s ok 246 /checksum/MD5/reset/58 1217s ok 247 /checksum/MD5/reset/59 1217s ok 248 /checksum/MD5/reset/60 1217s ok 249 /checksum/MD5/reset/61 1217s ok 250 /checksum/MD5/reset/62 1217s ok 251 /checksum/MD5/reset/63 1217s ok 252 /checksum/MD5/reset/64 1217s ok 253 /checksum/MD5/reset/65 1217s ok 254 /checksum/MD5/reset/66 1217s ok 255 /checksum/MD5/reset/67 1217s ok 256 /checksum/MD5/reset/68 1217s ok 257 /checksum/MD5/reset/69 1217s ok 258 /checksum/MD5/reset/70 1217s ok 259 /checksum/MD5/reset/71 1217s ok 260 /checksum/MD5/reset/72 1217s ok 261 /checksum/MD5/reset/73 1217s ok 262 /checksum/MD5/reset/74 1217s ok 263 /checksum/MD5/reset/75 1217s ok 264 /checksum/MD5/reset/76 1217s ok 265 /checksum/MD5/reset/77 1217s ok 266 /checksum/MD5/reset/78 1217s ok 267 /checksum/MD5/reset/79 1217s ok 268 /checksum/MD5/reset/80 1217s ok 269 /checksum/MD5/reset/81 1217s ok 270 /checksum/MD5/reset/82 1217s ok 271 /checksum/MD5/reset/83 1217s ok 272 /checksum/MD5/reset/84 1217s ok 273 /checksum/MD5/reset/85 1217s ok 274 /checksum/MD5/reset/86 1217s ok 275 /checksum/MD5/reset/87 1217s ok 276 /checksum/MD5/reset/88 1217s ok 277 /checksum/MD5/reset/89 1217s ok 278 /checksum/MD5/reset/90 1217s ok 279 /checksum/MD5/reset/91 1217s ok 280 /checksum/MD5/reset/92 1217s ok 281 /checksum/MD5/reset/93 1217s ok 282 /checksum/MD5/reset/94 1217s ok 283 /checksum/MD5/reset/95 1217s ok 284 /checksum/MD5/reset/96 1217s ok 285 /checksum/MD5/reset/97 1217s ok 286 /checksum/MD5/reset/98 1217s ok 287 /checksum/MD5/reset/99 1217s ok 288 /checksum/MD5/reset/100 1217s ok 289 /checksum/MD5/reset/101 1217s ok 290 /checksum/MD5/reset/102 1217s ok 291 /checksum/MD5/reset/103 1217s ok 292 /checksum/MD5/reset/104 1217s ok 293 /checksum/MD5/reset/105 1217s ok 294 /checksum/MD5/reset/106 1217s ok 295 /checksum/MD5/reset/107 1217s ok 296 /checksum/MD5/reset/108 1217s ok 297 /checksum/MD5/reset/109 1217s ok 298 /checksum/MD5/reset/110 1217s ok 299 /checksum/MD5/reset/111 1217s ok 300 /checksum/MD5/reset/112 1217s ok 301 /checksum/MD5/reset/113 1217s ok 302 /checksum/MD5/reset/114 1217s ok 303 /checksum/MD5/reset/115 1217s ok 304 /checksum/MD5/reset/116 1217s ok 305 /checksum/MD5/reset/117 1217s ok 306 /checksum/MD5/reset/118 1217s ok 307 /checksum/MD5/reset/119 1217s ok 308 /checksum/MD5/reset/120 1217s ok 309 /checksum/MD5/reset/121 1217s ok 310 /checksum/MD5/reset/122 1217s ok 311 /checksum/MD5/reset/123 1217s ok 312 /checksum/MD5/reset/124 1217s ok 313 /checksum/MD5/reset/125 1217s ok 314 /checksum/MD5/reset/126 1217s ok 315 /checksum/MD5/reset/127 1217s ok 316 /checksum/MD5/reset/128 1217s ok 317 /checksum/MD5/reset/129 1217s ok 318 /checksum/MD5/reset/130 1217s ok 319 /checksum/MD5/reset/131 1217s ok 320 /checksum/MD5/reset/132 1217s ok 321 /checksum/MD5/reset/133 1217s ok 322 /checksum/MD5/reset/134 1217s ok 323 /checksum/MD5/reset/135 1217s ok 324 /checksum/MD5/reset/136 1217s ok 325 /checksum/MD5/reset/137 1217s ok 326 /checksum/MD5/reset/138 1217s ok 327 /checksum/MD5/reset/139 1217s ok 328 /checksum/MD5/reset/140 1217s ok 329 /checksum/MD5/reset/141 1217s ok 330 /checksum/MD5/reset/142 1217s ok 331 /checksum/MD5/reset/143 1217s ok 332 /checksum/MD5/reset/144 1217s ok 333 /checksum/MD5/reset/145 1217s ok 334 /checksum/MD5/reset/146 1217s ok 335 /checksum/MD5/reset/147 1217s ok 336 /checksum/MD5/reset/148 1217s ok 337 /checksum/MD5/reset/149 1217s ok 338 /checksum/MD5/reset/150 1217s ok 339 /checksum/MD5/reset/151 1217s ok 340 /checksum/MD5/reset/152 1217s ok 341 /checksum/MD5/reset/153 1217s ok 342 /checksum/MD5/reset/154 1217s ok 343 /checksum/MD5/reset/155 1217s ok 344 /checksum/MD5/reset/156 1217s ok 345 /checksum/MD5/reset/157 1217s ok 346 /checksum/MD5/reset/158 1217s ok 347 /checksum/MD5/reset/159 1217s ok 348 /checksum/MD5/reset/160 1217s ok 349 /checksum/MD5/reset/161 1217s ok 350 /checksum/MD5/reset/162 1217s ok 351 /checksum/MD5/reset/163 1217s ok 352 /checksum/MD5/reset/164 1217s ok 353 /checksum/MD5/reset/165 1217s ok 354 /checksum/MD5/reset/166 1217s ok 355 /checksum/MD5/reset/167 1217s ok 356 /checksum/MD5/reset/168 1217s ok 357 /checksum/MD5/reset/169 1217s ok 358 /checksum/MD5/reset/170 1217s ok 359 /checksum/MD5/reset/171 1217s ok 360 /checksum/MD5/reset/172 1217s ok 361 /checksum/MD5/reset/173 1217s ok 362 /checksum/MD5/reset/174 1217s ok 363 /checksum/MD5/reset/175 1217s ok 364 /checksum/MD5/reset/176 1217s ok 365 /checksum/MD5/reset/177 1217s ok 366 /checksum/MD5/reset/178 1217s ok 367 /checksum/MD5/reset/179 1217s ok 368 /checksum/MD5/reset/180 1217s ok 369 /checksum/MD5/reset/181 1217s ok 370 /checksum/MD5/reset/182 1217s ok 371 /checksum/MD5/reset/183 1217s # End of reset tests 1217s # End of MD5 tests 1217s # Start of SHA1 tests 1217s ok 372 /checksum/SHA1/0 1217s ok 373 /checksum/SHA1/1 1217s ok 374 /checksum/SHA1/2 1217s ok 375 /checksum/SHA1/3 1217s ok 376 /checksum/SHA1/4 1217s ok 377 /checksum/SHA1/5 1217s ok 378 /checksum/SHA1/6 1217s ok 379 /checksum/SHA1/7 1217s ok 380 /checksum/SHA1/8 1217s ok 381 /checksum/SHA1/9 1217s ok 382 /checksum/SHA1/10 1217s ok 383 /checksum/SHA1/11 1217s ok 384 /checksum/SHA1/12 1217s ok 385 /checksum/SHA1/13 1217s ok 386 /checksum/SHA1/14 1217s ok 387 /checksum/SHA1/15 1217s ok 388 /checksum/SHA1/16 1217s ok 389 /checksum/SHA1/17 1217s ok 390 /checksum/SHA1/18 1217s ok 391 /checksum/SHA1/19 1217s ok 392 /checksum/SHA1/20 1217s ok 393 /checksum/SHA1/21 1217s ok 394 /checksum/SHA1/22 1217s ok 395 /checksum/SHA1/23 1217s ok 396 /checksum/SHA1/24 1217s ok 397 /checksum/SHA1/25 1217s ok 398 /checksum/SHA1/26 1217s ok 399 /checksum/SHA1/27 1217s ok 400 /checksum/SHA1/28 1217s ok 401 /checksum/SHA1/29 1217s ok 402 /checksum/SHA1/30 1217s ok 403 /checksum/SHA1/31 1217s ok 404 /checksum/SHA1/32 1217s ok 405 /checksum/SHA1/33 1217s ok 406 /checksum/SHA1/34 1217s ok 407 /checksum/SHA1/35 1217s ok 408 /checksum/SHA1/36 1217s ok 409 /checksum/SHA1/37 1217s ok 410 /checksum/SHA1/38 1217s ok 411 /checksum/SHA1/39 1217s ok 412 /checksum/SHA1/40 1217s ok 413 /checksum/SHA1/41 1217s ok 414 /checksum/SHA1/42 1217s ok 415 /checksum/SHA1/43 1217s ok 416 /checksum/SHA1/44 1217s ok 417 /checksum/SHA1/45 1217s ok 418 /checksum/SHA1/46 1217s ok 419 /checksum/SHA1/47 1217s ok 420 /checksum/SHA1/48 1217s ok 421 /checksum/SHA1/49 1217s ok 422 /checksum/SHA1/50 1217s ok 423 /checksum/SHA1/51 1217s ok 424 /checksum/SHA1/52 1217s ok 425 /checksum/SHA1/53 1217s ok 426 /checksum/SHA1/54 1217s ok 427 /checksum/SHA1/55 1217s ok 428 /checksum/SHA1/56 1217s ok 429 /checksum/SHA1/57 1217s ok 430 /checksum/SHA1/58 1217s ok 431 /checksum/SHA1/59 1217s ok 432 /checksum/SHA1/60 1217s ok 433 /checksum/SHA1/61 1217s ok 434 /checksum/SHA1/62 1217s ok 435 /checksum/SHA1/63 1217s ok 436 /checksum/SHA1/64 1217s ok 437 /checksum/SHA1/65 1217s ok 438 /checksum/SHA1/66 1217s ok 439 /checksum/SHA1/67 1217s ok 440 /checksum/SHA1/68 1217s ok 441 /checksum/SHA1/69 1217s ok 442 /checksum/SHA1/70 1217s ok 443 /checksum/SHA1/71 1217s ok 444 /checksum/SHA1/72 1217s ok 445 /checksum/SHA1/73 1217s ok 446 /checksum/SHA1/74 1217s ok 447 /checksum/SHA1/75 1217s ok 448 /checksum/SHA1/76 1217s ok 449 /checksum/SHA1/77 1217s ok 450 /checksum/SHA1/78 1217s ok 451 /checksum/SHA1/79 1217s ok 452 /checksum/SHA1/80 1217s ok 453 /checksum/SHA1/81 1217s ok 454 /checksum/SHA1/82 1217s ok 455 /checksum/SHA1/83 1217s ok 456 /checksum/SHA1/84 1217s ok 457 /checksum/SHA1/85 1217s ok 458 /checksum/SHA1/86 1217s ok 459 /checksum/SHA1/87 1217s ok 460 /checksum/SHA1/88 1217s ok 461 /checksum/SHA1/89 1217s ok 462 /checksum/SHA1/90 1217s ok 463 /checksum/SHA1/91 1217s ok 464 /checksum/SHA1/92 1217s ok 465 /checksum/SHA1/93 1217s ok 466 /checksum/SHA1/94 1217s ok 467 /checksum/SHA1/95 1217s ok 468 /checksum/SHA1/96 1217s ok 469 /checksum/SHA1/97 1217s ok 470 /checksum/SHA1/98 1217s ok 471 /checksum/SHA1/99 1217s ok 472 /checksum/SHA1/100 1217s ok 473 /checksum/SHA1/101 1217s ok 474 /checksum/SHA1/102 1217s ok 475 /checksum/SHA1/103 1217s ok 476 /checksum/SHA1/104 1217s ok 477 /checksum/SHA1/105 1217s ok 478 /checksum/SHA1/106 1217s ok 479 /checksum/SHA1/107 1217s ok 480 /checksum/SHA1/108 1217s ok 481 /checksum/SHA1/109 1217s ok 482 /checksum/SHA1/110 1217s ok 483 /checksum/SHA1/111 1217s ok 484 /checksum/SHA1/112 1217s ok 485 /checksum/SHA1/113 1217s ok 486 /checksum/SHA1/114 1217s ok 487 /checksum/SHA1/115 1217s ok 488 /checksum/SHA1/116 1217s ok 489 /checksum/SHA1/117 1217s ok 490 /checksum/SHA1/118 1217s ok 491 /checksum/SHA1/119 1217s ok 492 /checksum/SHA1/120 1217s ok 493 /checksum/SHA1/121 1217s ok 494 /checksum/SHA1/122 1217s ok 495 /checksum/SHA1/123 1217s ok 496 /checksum/SHA1/124 1217s ok 497 /checksum/SHA1/125 1217s ok 498 /checksum/SHA1/126 1217s ok 499 /checksum/SHA1/127 1217s ok 500 /checksum/SHA1/128 1217s ok 501 /checksum/SHA1/129 1217s ok 502 /checksum/SHA1/130 1217s ok 503 /checksum/SHA1/131 1217s ok 504 /checksum/SHA1/132 1217s ok 505 /checksum/SHA1/133 1217s ok 506 /checksum/SHA1/134 1217s ok 507 /checksum/SHA1/135 1217s ok 508 /checksum/SHA1/136 1217s ok 509 /checksum/SHA1/137 1217s ok 510 /checksum/SHA1/138 1217s ok 511 /checksum/SHA1/139 1217s ok 512 /checksum/SHA1/140 1217s ok 513 /checksum/SHA1/141 1217s ok 514 /checksum/SHA1/142 1217s ok 515 /checksum/SHA1/143 1217s ok 516 /checksum/SHA1/144 1217s ok 517 /checksum/SHA1/145 1217s ok 518 /checksum/SHA1/146 1217s ok 519 /checksum/SHA1/147 1217s ok 520 /checksum/SHA1/148 1217s ok 521 /checksum/SHA1/149 1217s ok 522 /checksum/SHA1/150 1217s ok 523 /checksum/SHA1/151 1217s ok 524 /checksum/SHA1/152 1217s ok 525 /checksum/SHA1/153 1217s ok 526 /checksum/SHA1/154 1217s ok 527 /checksum/SHA1/155 1217s ok 528 /checksum/SHA1/156 1217s ok 529 /checksum/SHA1/157 1217s ok 530 /checksum/SHA1/158 1217s ok 531 /checksum/SHA1/159 1217s ok 532 /checksum/SHA1/160 1217s ok 533 /checksum/SHA1/161 1217s ok 534 /checksum/SHA1/162 1217s ok 535 /checksum/SHA1/163 1217s ok 536 /checksum/SHA1/164 1217s ok 537 /checksum/SHA1/165 1217s ok 538 /checksum/SHA1/166 1217s ok 539 /checksum/SHA1/167 1217s ok 540 /checksum/SHA1/168 1217s ok 541 /checksum/SHA1/169 1217s ok 542 /checksum/SHA1/170 1217s ok 543 /checksum/SHA1/171 1217s ok 544 /checksum/SHA1/172 1217s ok 545 /checksum/SHA1/173 1217s ok 546 /checksum/SHA1/174 1217s ok 547 /checksum/SHA1/175 1217s ok 548 /checksum/SHA1/176 1217s ok 549 /checksum/SHA1/177 1217s ok 550 /checksum/SHA1/178 1217s ok 551 /checksum/SHA1/179 1217s ok 552 /checksum/SHA1/180 1217s ok 553 /checksum/SHA1/181 1217s ok 554 /checksum/SHA1/182 1217s ok 555 /checksum/SHA1/183 1217s ok 556 /checksum/SHA1/string 1217s ok 557 /checksum/SHA1/bytes 1217s # Start of reset tests 1217s ok 558 /checksum/SHA1/reset/0 1217s ok 559 /checksum/SHA1/reset/1 1217s ok 560 /checksum/SHA1/reset/2 1217s ok 561 /checksum/SHA1/reset/3 1217s ok 562 /checksum/SHA1/reset/4 1217s ok 563 /checksum/SHA1/reset/5 1217s ok 564 /checksum/SHA1/reset/6 1217s ok 565 /checksum/SHA1/reset/7 1217s ok 566 /checksum/SHA1/reset/8 1217s ok 567 /checksum/SHA1/reset/9 1217s ok 568 /checksum/SHA1/reset/10 1217s ok 569 /checksum/SHA1/reset/11 1217s ok 570 /checksum/SHA1/reset/12 1217s ok 571 /checksum/SHA1/reset/13 1217s ok 572 /checksum/SHA1/reset/14 1217s ok 573 /checksum/SHA1/reset/15 1217s ok 574 /checksum/SHA1/reset/16 1217s ok 575 /checksum/SHA1/reset/17 1217s ok 576 /checksum/SHA1/reset/18 1217s ok 577 /checksum/SHA1/reset/19 1217s ok 578 /checksum/SHA1/reset/20 1217s ok 579 /checksum/SHA1/reset/21 1217s ok 580 /checksum/SHA1/reset/22 1217s ok 581 /checksum/SHA1/reset/23 1217s ok 582 /checksum/SHA1/reset/24 1217s ok 583 /checksum/SHA1/reset/25 1217s ok 584 /checksum/SHA1/reset/26 1217s ok 585 /checksum/SHA1/reset/27 1217s ok 586 /checksum/SHA1/reset/28 1217s ok 587 /checksum/SHA1/reset/29 1217s ok 588 /checksum/SHA1/reset/30 1217s ok 589 /checksum/SHA1/reset/31 1217s ok 590 /checksum/SHA1/reset/32 1217s ok 591 /checksum/SHA1/reset/33 1217s ok 592 /checksum/SHA1/reset/34 1217s ok 593 /checksum/SHA1/reset/35 1217s ok 594 /checksum/SHA1/reset/36 1217s ok 595 /checksum/SHA1/reset/37 1217s ok 596 /checksum/SHA1/reset/38 1217s ok 597 /checksum/SHA1/reset/39 1217s ok 598 /checksum/SHA1/reset/40 1217s ok 599 /checksum/SHA1/reset/41 1217s ok 600 /checksum/SHA1/reset/42 1217s ok 601 /checksum/SHA1/reset/43 1217s ok 602 /checksum/SHA1/reset/44 1217s ok 603 /checksum/SHA1/reset/45 1217s ok 604 /checksum/SHA1/reset/46 1217s ok 605 /checksum/SHA1/reset/47 1217s ok 606 /checksum/SHA1/reset/48 1217s ok 607 /checksum/SHA1/reset/49 1217s ok 608 /checksum/SHA1/reset/50 1217s ok 609 /checksum/SHA1/reset/51 1217s ok 610 /checksum/SHA1/reset/52 1217s ok 611 /checksum/SHA1/reset/53 1217s ok 612 /checksum/SHA1/reset/54 1217s ok 613 /checksum/SHA1/reset/55 1217s ok 614 /checksum/SHA1/reset/56 1217s ok 615 /checksum/SHA1/reset/57 1217s ok 616 /checksum/SHA1/reset/58 1217s ok 617 /checksum/SHA1/reset/59 1217s ok 618 /checksum/SHA1/reset/60 1217s ok 619 /checksum/SHA1/reset/61 1217s ok 620 /checksum/SHA1/reset/62 1217s ok 621 /checksum/SHA1/reset/63 1217s ok 622 /checksum/SHA1/reset/64 1217s ok 623 /checksum/SHA1/reset/65 1217s ok 624 /checksum/SHA1/reset/66 1217s ok 625 /checksum/SHA1/reset/67 1217s ok 626 /checksum/SHA1/reset/68 1217s ok 627 /checksum/SHA1/reset/69 1217s ok 628 /checksum/SHA1/reset/70 1217s ok 629 /checksum/SHA1/reset/71 1217s ok 630 /checksum/SHA1/reset/72 1217s ok 631 /checksum/SHA1/reset/73 1217s ok 632 /checksum/SHA1/reset/74 1217s ok 633 /checksum/SHA1/reset/75 1217s ok 634 /checksum/SHA1/reset/76 1217s ok 635 /checksum/SHA1/reset/77 1217s ok 636 /checksum/SHA1/reset/78 1217s ok 637 /checksum/SHA1/reset/79 1217s ok 638 /checksum/SHA1/reset/80 1217s ok 639 /checksum/SHA1/reset/81 1217s ok 640 /checksum/SHA1/reset/82 1217s ok 641 /checksum/SHA1/reset/83 1217s ok 642 /checksum/SHA1/reset/84 1217s ok 643 /checksum/SHA1/reset/85 1217s ok 644 /checksum/SHA1/reset/86 1217s ok 645 /checksum/SHA1/reset/87 1217s ok 646 /checksum/SHA1/reset/88 1217s ok 647 /checksum/SHA1/reset/89 1217s ok 648 /checksum/SHA1/reset/90 1217s ok 649 /checksum/SHA1/reset/91 1217s ok 650 /checksum/SHA1/reset/92 1217s ok 651 /checksum/SHA1/reset/93 1217s ok 652 /checksum/SHA1/reset/94 1217s ok 653 /checksum/SHA1/reset/95 1217s ok 654 /checksum/SHA1/reset/96 1217s ok 655 /checksum/SHA1/reset/97 1217s ok 656 /checksum/SHA1/reset/98 1217s ok 657 /checksum/SHA1/reset/99 1217s ok 658 /checksum/SHA1/reset/100 1217s ok 659 /checksum/SHA1/reset/101 1217s ok 660 /checksum/SHA1/reset/102 1217s ok 661 /checksum/SHA1/reset/103 1217s ok 662 /checksum/SHA1/reset/104 1217s ok 663 /checksum/SHA1/reset/105 1217s ok 664 /checksum/SHA1/reset/106 1217s ok 665 /checksum/SHA1/reset/107 1217s ok 666 /checksum/SHA1/reset/108 1217s ok 667 /checksum/SHA1/reset/109 1217s ok 668 /checksum/SHA1/reset/110 1217s ok 669 /checksum/SHA1/reset/111 1217s ok 670 /checksum/SHA1/reset/112 1217s ok 671 /checksum/SHA1/reset/113 1217s ok 672 /checksum/SHA1/reset/114 1217s ok 673 /checksum/SHA1/reset/115 1217s ok 674 /checksum/SHA1/reset/116 1217s ok 675 /checksum/SHA1/reset/117 1217s ok 676 /checksum/SHA1/reset/118 1217s ok 677 /checksum/SHA1/reset/119 1217s ok 678 /checksum/SHA1/reset/120 1217s ok 679 /checksum/SHA1/reset/121 1217s ok 680 /checksum/SHA1/reset/122 1217s ok 681 /checksum/SHA1/reset/123 1217s ok 682 /checksum/SHA1/reset/124 1217s ok 683 /checksum/SHA1/reset/125 1217s ok 684 /checksum/SHA1/reset/126 1217s ok 685 /checksum/SHA1/reset/127 1217s ok 686 /checksum/SHA1/reset/128 1217s ok 687 /checksum/SHA1/reset/129 1217s ok 688 /checksum/SHA1/reset/130 1217s ok 689 /checksum/SHA1/reset/131 1217s ok 690 /checksum/SHA1/reset/132 1217s ok 691 /checksum/SHA1/reset/133 1217s ok 692 /checksum/SHA1/reset/134 1217s ok 693 /checksum/SHA1/reset/135 1217s ok 694 /checksum/SHA1/reset/136 1217s ok 695 /checksum/SHA1/reset/137 1217s ok 696 /checksum/SHA1/reset/138 1217s ok 697 /checksum/SHA1/reset/139 1217s ok 698 /checksum/SHA1/reset/140 1217s ok 699 /checksum/SHA1/reset/141 1217s ok 700 /checksum/SHA1/reset/142 1217s ok 701 /checksum/SHA1/reset/143 1217s ok 702 /checksum/SHA1/reset/144 1217s ok 703 /checksum/SHA1/reset/145 1217s ok 704 /checksum/SHA1/reset/146 1217s ok 705 /checksum/SHA1/reset/147 1217s ok 706 /checksum/SHA1/reset/148 1217s ok 707 /checksum/SHA1/reset/149 1217s ok 708 /checksum/SHA1/reset/150 1217s ok 709 /checksum/SHA1/reset/151 1217s ok 710 /checksum/SHA1/reset/152 1217s ok 711 /checksum/SHA1/reset/153 1217s ok 712 /checksum/SHA1/reset/154 1217s ok 713 /checksum/SHA1/reset/155 1217s ok 714 /checksum/SHA1/reset/156 1217s ok 715 /checksum/SHA1/reset/157 1217s ok 716 /checksum/SHA1/reset/158 1217s ok 717 /checksum/SHA1/reset/159 1217s ok 718 /checksum/SHA1/reset/160 1217s ok 719 /checksum/SHA1/reset/161 1217s ok 720 /checksum/SHA1/reset/162 1217s ok 721 /checksum/SHA1/reset/163 1217s ok 722 /checksum/SHA1/reset/164 1217s ok 723 /checksum/SHA1/reset/165 1217s ok 724 /checksum/SHA1/reset/166 1217s ok 725 /checksum/SHA1/reset/167 1217s ok 726 /checksum/SHA1/reset/168 1217s ok 727 /checksum/SHA1/reset/169 1217s ok 728 /checksum/SHA1/reset/170 1217s ok 729 /checksum/SHA1/reset/171 1217s ok 730 /checksum/SHA1/reset/172 1217s ok 731 /checksum/SHA1/reset/173 1217s ok 732 /checksum/SHA1/reset/174 1217s ok 733 /checksum/SHA1/reset/175 1217s ok 734 /checksum/SHA1/reset/176 1217s ok 735 /checksum/SHA1/reset/177 1217s ok 736 /checksum/SHA1/reset/178 1217s ok 737 /checksum/SHA1/reset/179 1217s ok 738 /checksum/SHA1/reset/180 1217s ok 739 /checksum/SHA1/reset/181 1217s ok 740 /checksum/SHA1/reset/182 1217s ok 741 /checksum/SHA1/reset/183 1217s # End of reset tests 1217s # End of SHA1 tests 1217s # Start of SHA256 tests 1217s ok 742 /checksum/SHA256/0 1217s ok 743 /checksum/SHA256/1 1217s ok 744 /checksum/SHA256/2 1217s ok 745 /checksum/SHA256/3 1217s ok 746 /checksum/SHA256/4 1217s ok 747 /checksum/SHA256/5 1217s ok 748 /checksum/SHA256/6 1217s ok 749 /checksum/SHA256/7 1217s ok 750 /checksum/SHA256/8 1217s ok 751 /checksum/SHA256/9 1217s ok 752 /checksum/SHA256/10 1217s ok 753 /checksum/SHA256/11 1217s ok 754 /checksum/SHA256/12 1217s ok 755 /checksum/SHA256/13 1217s ok 756 /checksum/SHA256/14 1217s ok 757 /checksum/SHA256/15 1217s ok 758 /checksum/SHA256/16 1217s ok 759 /checksum/SHA256/17 1217s ok 760 /checksum/SHA256/18 1217s ok 761 /checksum/SHA256/19 1217s ok 762 /checksum/SHA256/20 1217s ok 763 /checksum/SHA256/21 1217s ok 764 /checksum/SHA256/22 1217s ok 765 /checksum/SHA256/23 1217s ok 766 /checksum/SHA256/24 1217s ok 767 /checksum/SHA256/25 1217s ok 768 /checksum/SHA256/26 1217s ok 769 /checksum/SHA256/27 1217s ok 770 /checksum/SHA256/28 1217s ok 771 /checksum/SHA256/29 1217s ok 772 /checksum/SHA256/30 1217s ok 773 /checksum/SHA256/31 1217s ok 774 /checksum/SHA256/32 1217s ok 775 /checksum/SHA256/33 1217s ok 776 /checksum/SHA256/34 1217s ok 777 /checksum/SHA256/35 1217s ok 778 /checksum/SHA256/36 1217s ok 779 /checksum/SHA256/37 1217s ok 780 /checksum/SHA256/38 1217s ok 781 /checksum/SHA256/39 1217s ok 782 /checksum/SHA256/40 1217s ok 783 /checksum/SHA256/41 1217s ok 784 /checksum/SHA256/42 1217s ok 785 /checksum/SHA256/43 1217s ok 786 /checksum/SHA256/44 1217s ok 787 /checksum/SHA256/45 1217s ok 788 /checksum/SHA256/46 1217s ok 789 /checksum/SHA256/47 1217s ok 790 /checksum/SHA256/48 1217s ok 791 /checksum/SHA256/49 1217s ok 792 /checksum/SHA256/50 1217s ok 793 /checksum/SHA256/51 1217s ok 794 /checksum/SHA256/52 1217s ok 795 /checksum/SHA256/53 1217s ok 796 /checksum/SHA256/54 1217s ok 797 /checksum/SHA256/55 1217s ok 798 /checksum/SHA256/56 1217s ok 799 /checksum/SHA256/57 1217s ok 800 /checksum/SHA256/58 1217s ok 801 /checksum/SHA256/59 1217s ok 802 /checksum/SHA256/60 1217s ok 803 /checksum/SHA256/61 1217s ok 804 /checksum/SHA256/62 1217s ok 805 /checksum/SHA256/63 1217s ok 806 /checksum/SHA256/64 1217s ok 807 /checksum/SHA256/65 1217s ok 808 /checksum/SHA256/66 1217s ok 809 /checksum/SHA256/67 1217s ok 810 /checksum/SHA256/68 1217s ok 811 /checksum/SHA256/69 1217s ok 812 /checksum/SHA256/70 1217s ok 813 /checksum/SHA256/71 1217s ok 814 /checksum/SHA256/72 1217s ok 815 /checksum/SHA256/73 1217s ok 816 /checksum/SHA256/74 1217s ok 817 /checksum/SHA256/75 1217s ok 818 /checksum/SHA256/76 1217s ok 819 /checksum/SHA256/77 1217s ok 820 /checksum/SHA256/78 1217s ok 821 /checksum/SHA256/79 1217s ok 822 /checksum/SHA256/80 1217s ok 823 /checksum/SHA256/81 1217s ok 824 /checksum/SHA256/82 1217s ok 825 /checksum/SHA256/83 1217s ok 826 /checksum/SHA256/84 1217s ok 827 /checksum/SHA256/85 1217s ok 828 /checksum/SHA256/86 1217s ok 829 /checksum/SHA256/87 1217s ok 830 /checksum/SHA256/88 1217s ok 831 /checksum/SHA256/89 1217s ok 832 /checksum/SHA256/90 1217s ok 833 /checksum/SHA256/91 1217s ok 834 /checksum/SHA256/92 1217s ok 835 /checksum/SHA256/93 1217s ok 836 /checksum/SHA256/94 1217s ok 837 /checksum/SHA256/95 1217s ok 838 /checksum/SHA256/96 1217s ok 839 /checksum/SHA256/97 1217s ok 840 /checksum/SHA256/98 1217s ok 841 /checksum/SHA256/99 1217s ok 842 /checksum/SHA256/100 1217s ok 843 /checksum/SHA256/101 1217s ok 844 /checksum/SHA256/102 1217s ok 845 /checksum/SHA256/103 1217s ok 846 /checksum/SHA256/104 1217s ok 847 /checksum/SHA256/105 1217s ok 848 /checksum/SHA256/106 1217s ok 849 /checksum/SHA256/107 1217s ok 850 /checksum/SHA256/108 1217s ok 851 /checksum/SHA256/109 1217s ok 852 /checksum/SHA256/110 1217s ok 853 /checksum/SHA256/111 1217s ok 854 /checksum/SHA256/112 1217s ok 855 /checksum/SHA256/113 1217s ok 856 /checksum/SHA256/114 1217s ok 857 /checksum/SHA256/115 1217s ok 858 /checksum/SHA256/116 1217s ok 859 /checksum/SHA256/117 1217s ok 860 /checksum/SHA256/118 1217s ok 861 /checksum/SHA256/119 1217s ok 862 /checksum/SHA256/120 1217s ok 863 /checksum/SHA256/121 1217s ok 864 /checksum/SHA256/122 1217s ok 865 /checksum/SHA256/123 1217s ok 866 /checksum/SHA256/124 1217s ok 867 /checksum/SHA256/125 1217s ok 868 /checksum/SHA256/126 1217s ok 869 /checksum/SHA256/127 1217s ok 870 /checksum/SHA256/128 1217s ok 871 /checksum/SHA256/129 1217s ok 872 /checksum/SHA256/130 1217s ok 873 /checksum/SHA256/131 1217s ok 874 /checksum/SHA256/132 1217s ok 875 /checksum/SHA256/133 1217s ok 876 /checksum/SHA256/134 1217s ok 877 /checksum/SHA256/135 1217s ok 878 /checksum/SHA256/136 1217s ok 879 /checksum/SHA256/137 1217s ok 880 /checksum/SHA256/138 1217s ok 881 /checksum/SHA256/139 1217s ok 882 /checksum/SHA256/140 1217s ok 883 /checksum/SHA256/141 1217s ok 884 /checksum/SHA256/142 1217s ok 885 /checksum/SHA256/143 1217s ok 886 /checksum/SHA256/144 1217s ok 887 /checksum/SHA256/145 1217s ok 888 /checksum/SHA256/146 1217s ok 889 /checksum/SHA256/147 1217s ok 890 /checksum/SHA256/148 1217s ok 891 /checksum/SHA256/149 1217s ok 892 /checksum/SHA256/150 1217s ok 893 /checksum/SHA256/151 1217s ok 894 /checksum/SHA256/152 1217s ok 895 /checksum/SHA256/153 1217s ok 896 /checksum/SHA256/154 1217s ok 897 /checksum/SHA256/155 1217s ok 898 /checksum/SHA256/156 1217s ok 899 /checksum/SHA256/157 1217s ok 900 /checksum/SHA256/158 1217s ok 901 /checksum/SHA256/159 1217s ok 902 /checksum/SHA256/160 1217s ok 903 /checksum/SHA256/161 1217s ok 904 /checksum/SHA256/162 1217s ok 905 /checksum/SHA256/163 1217s ok 906 /checksum/SHA256/164 1217s ok 907 /checksum/SHA256/165 1217s ok 908 /checksum/SHA256/166 1217s ok 909 /checksum/SHA256/167 1217s ok 910 /checksum/SHA256/168 1217s ok 911 /checksum/SHA256/169 1217s ok 912 /checksum/SHA256/170 1217s ok 913 /checksum/SHA256/171 1217s ok 914 /checksum/SHA256/172 1217s ok 915 /checksum/SHA256/173 1217s ok 916 /checksum/SHA256/174 1217s ok 917 /checksum/SHA256/175 1217s ok 918 /checksum/SHA256/176 1217s ok 919 /checksum/SHA256/177 1217s ok 920 /checksum/SHA256/178 1217s ok 921 /checksum/SHA256/179 1217s ok 922 /checksum/SHA256/180 1217s ok 923 /checksum/SHA256/181 1217s ok 924 /checksum/SHA256/182 1217s ok 925 /checksum/SHA256/183 1217s ok 926 /checksum/SHA256/string 1217s ok 927 /checksum/SHA256/bytes 1217s # Start of reset tests 1217s ok 928 /checksum/SHA256/reset/0 1217s ok 929 /checksum/SHA256/reset/1 1217s ok 930 /checksum/SHA256/reset/2 1217s ok 931 /checksum/SHA256/reset/3 1217s ok 932 /checksum/SHA256/reset/4 1217s ok 933 /checksum/SHA256/reset/5 1217s ok 934 /checksum/SHA256/reset/6 1217s ok 935 /checksum/SHA256/reset/7 1217s ok 936 /checksum/SHA256/reset/8 1217s ok 937 /checksum/SHA256/reset/9 1217s ok 938 /checksum/SHA256/reset/10 1217s ok 939 /checksum/SHA256/reset/11 1217s ok 940 /checksum/SHA256/reset/12 1217s ok 941 /checksum/SHA256/reset/13 1217s ok 942 /checksum/SHA256/reset/14 1217s ok 943 /checksum/SHA256/reset/15 1217s ok 944 /checksum/SHA256/reset/16 1217s ok 945 /checksum/SHA256/reset/17 1217s ok 946 /checksum/SHA256/reset/18 1217s ok 947 /checksum/SHA256/reset/19 1217s ok 948 /checksum/SHA256/reset/20 1217s ok 949 /checksum/SHA256/reset/21 1217s ok 950 /checksum/SHA256/reset/22 1217s ok 951 /checksum/SHA256/reset/23 1217s ok 952 /checksum/SHA256/reset/24 1217s ok 953 /checksum/SHA256/reset/25 1217s ok 954 /checksum/SHA256/reset/26 1217s ok 955 /checksum/SHA256/reset/27 1217s ok 956 /checksum/SHA256/reset/28 1217s ok 957 /checksum/SHA256/reset/29 1217s ok 958 /checksum/SHA256/reset/30 1217s ok 959 /checksum/SHA256/reset/31 1217s ok 960 /checksum/SHA256/reset/32 1217s ok 961 /checksum/SHA256/reset/33 1217s ok 962 /checksum/SHA256/reset/34 1217s ok 963 /checksum/SHA256/reset/35 1217s ok 964 /checksum/SHA256/reset/36 1217s ok 965 /checksum/SHA256/reset/37 1217s ok 966 /checksum/SHA256/reset/38 1217s ok 967 /checksum/SHA256/reset/39 1217s ok 968 /checksum/SHA256/reset/40 1217s ok 969 /checksum/SHA256/reset/41 1217s ok 970 /checksum/SHA256/reset/42 1217s ok 971 /checksum/SHA256/reset/43 1217s ok 972 /checksum/SHA256/reset/44 1217s ok 973 /checksum/SHA256/reset/45 1217s ok 974 /checksum/SHA256/reset/46 1217s ok 975 /checksum/SHA256/reset/47 1217s ok 976 /checksum/SHA256/reset/48 1217s ok 977 /checksum/SHA256/reset/49 1217s ok 978 /checksum/SHA256/reset/50 1217s ok 979 /checksum/SHA256/reset/51 1217s ok 980 /checksum/SHA256/reset/52 1217s ok 981 /checksum/SHA256/reset/53 1217s ok 982 /checksum/SHA256/reset/54 1217s ok 983 /checksum/SHA256/reset/55 1217s ok 984 /checksum/SHA256/reset/56 1217s ok 985 /checksum/SHA256/reset/57 1217s ok 986 /checksum/SHA256/reset/58 1217s ok 987 /checksum/SHA256/reset/59 1217s ok 988 /checksum/SHA256/reset/60 1217s ok 989 /checksum/SHA256/reset/61 1217s ok 990 /checksum/SHA256/reset/62 1217s ok 991 /checksum/SHA256/reset/63 1217s ok 992 /checksum/SHA256/reset/64 1217s ok 993 /checksum/SHA256/reset/65 1217s ok 994 /checksum/SHA256/reset/66 1217s ok 995 /checksum/SHA256/reset/67 1217s ok 996 /checksum/SHA256/reset/68 1217s ok 997 /checksum/SHA256/reset/69 1217s ok 998 /checksum/SHA256/reset/70 1217s ok 999 /checksum/SHA256/reset/71 1217s ok 1000 /checksum/SHA256/reset/72 1217s ok 1001 /checksum/SHA256/reset/73 1217s ok 1002 /checksum/SHA256/reset/74 1217s ok 1003 /checksum/SHA256/reset/75 1217s ok 1004 /checksum/SHA256/reset/76 1217s ok 1005 /checksum/SHA256/reset/77 1217s ok 1006 /checksum/SHA256/reset/78 1217s ok 1007 /checksum/SHA256/reset/79 1217s ok 1008 /checksum/SHA256/reset/80 1217s ok 1009 /checksum/SHA256/reset/81 1217s ok 1010 /checksum/SHA256/reset/82 1217s ok 1011 /checksum/SHA256/reset/83 1217s ok 1012 /checksum/SHA256/reset/84 1217s ok 1013 /checksum/SHA256/reset/85 1217s ok 1014 /checksum/SHA256/reset/86 1217s ok 1015 /checksum/SHA256/reset/87 1217s ok 1016 /checksum/SHA256/reset/88 1217s ok 1017 /checksum/SHA256/reset/89 1217s ok 1018 /checksum/SHA256/reset/90 1217s ok 1019 /checksum/SHA256/reset/91 1217s ok 1020 /checksum/SHA256/reset/92 1217s ok 1021 /checksum/SHA256/reset/93 1217s ok 1022 /checksum/SHA256/reset/94 1217s ok 1023 /checksum/SHA256/reset/95 1217s ok 1024 /checksum/SHA256/reset/96 1217s ok 1025 /checksum/SHA256/reset/97 1217s ok 1026 /checksum/SHA256/reset/98 1217s ok 1027 /checksum/SHA256/reset/99 1217s ok 1028 /checksum/SHA256/reset/100 1217s ok 1029 /checksum/SHA256/reset/101 1217s ok 1030 /checksum/SHA256/reset/102 1217s ok 1031 /checksum/SHA256/reset/103 1217s ok 1032 /checksum/SHA256/reset/104 1217s ok 1033 /checksum/SHA256/reset/105 1217s ok 1034 /checksum/SHA256/reset/106 1217s ok 1035 /checksum/SHA256/reset/107 1217s ok 1036 /checksum/SHA256/reset/108 1217s ok 1037 /checksum/SHA256/reset/109 1217s ok 1038 /checksum/SHA256/reset/110 1217s ok 1039 /checksum/SHA256/reset/111 1217s ok 1040 /checksum/SHA256/reset/112 1217s ok 1041 /checksum/SHA256/reset/113 1217s ok 1042 /checksum/SHA256/reset/114 1217s ok 1043 /checksum/SHA256/reset/115 1217s ok 1044 /checksum/SHA256/reset/116 1217s ok 1045 /checksum/SHA256/reset/117 1217s ok 1046 /checksum/SHA256/reset/118 1217s ok 1047 /checksum/SHA256/reset/119 1217s ok 1048 /checksum/SHA256/reset/120 1217s ok 1049 /checksum/SHA256/reset/121 1217s ok 1050 /checksum/SHA256/reset/122 1217s ok 1051 /checksum/SHA256/reset/123 1217s ok 1052 /checksum/SHA256/reset/124 1217s ok 1053 /checksum/SHA256/reset/125 1217s ok 1054 /checksum/SHA256/reset/126 1217s ok 1055 /checksum/SHA256/reset/127 1217s ok 1056 /checksum/SHA256/reset/128 1217s ok 1057 /checksum/SHA256/reset/129 1217s ok 1058 /checksum/SHA256/reset/130 1217s ok 1059 /checksum/SHA256/reset/131 1217s ok 1060 /checksum/SHA256/reset/132 1217s ok 1061 /checksum/SHA256/reset/133 1217s ok 1062 /checksum/SHA256/reset/134 1217s ok 1063 /checksum/SHA256/reset/135 1217s ok 1064 /checksum/SHA256/reset/136 1217s ok 1065 /checksum/SHA256/reset/137 1217s ok 1066 /checksum/SHA256/reset/138 1217s ok 1067 /checksum/SHA256/reset/139 1217s ok 1068 /checksum/SHA256/reset/140 1217s ok 1069 /checksum/SHA256/reset/141 1217s ok 1070 /checksum/SHA256/reset/142 1217s ok 1071 /checksum/SHA256/reset/143 1217s ok 1072 /checksum/SHA256/reset/144 1217s ok 1073 /checksum/SHA256/reset/145 1217s ok 1074 /checksum/SHA256/reset/146 1217s ok 1075 /checksum/SHA256/reset/147 1217s ok 1076 /checksum/SHA256/reset/148 1217s ok 1077 /checksum/SHA256/reset/149 1217s ok 1078 /checksum/SHA256/reset/150 1217s ok 1079 /checksum/SHA256/reset/151 1217s ok 1080 /checksum/SHA256/reset/152 1217s ok 1081 /checksum/SHA256/reset/153 1217s ok 1082 /checksum/SHA256/reset/154 1217s ok 1083 /checksum/SHA256/reset/155 1217s ok 1084 /checksum/SHA256/reset/156 1217s ok 1085 /checksum/SHA256/reset/157 1217s ok 1086 /checksum/SHA256/reset/158 1217s ok 1087 /checksum/SHA256/reset/159 1217s ok 1088 /checksum/SHA256/reset/160 1217s ok 1089 /checksum/SHA256/reset/161 1217s ok 1090 /checksum/SHA256/reset/162 1217s ok 1091 /checksum/SHA256/reset/163 1217s ok 1092 /checksum/SHA256/reset/164 1217s ok 1093 /checksum/SHA256/reset/165 1217s ok 1094 /checksum/SHA256/reset/166 1217s ok 1095 /checksum/SHA256/reset/167 1217s ok 1096 /checksum/SHA256/reset/168 1217s ok 1097 /checksum/SHA256/reset/169 1217s ok 1098 /checksum/SHA256/reset/170 1217s ok 1099 /checksum/SHA256/reset/171 1217s ok 1100 /checksum/SHA256/reset/172 1217s ok 1101 /checksum/SHA256/reset/173 1217s ok 1102 /checksum/SHA256/reset/174 1217s ok 1103 /checksum/SHA256/reset/175 1217s ok 1104 /checksum/SHA256/reset/176 1217s ok 1105 /checksum/SHA256/reset/177 1217s ok 1106 /checksum/SHA256/reset/178 1218s ok 1107 /checksum/SHA256/reset/179 1218s ok 1108 /checksum/SHA256/reset/180 1218s ok 1109 /checksum/SHA256/reset/181 1218s ok 1110 /checksum/SHA256/reset/182 1218s ok 1111 /checksum/SHA256/reset/183 1218s # End of reset tests 1218s # End of SHA256 tests 1218s # Start of SHA384 tests 1218s ok 1112 /checksum/SHA384/0 1218s ok 1113 /checksum/SHA384/1 1218s ok 1114 /checksum/SHA384/2 1218s ok 1115 /checksum/SHA384/3 1218s ok 1116 /checksum/SHA384/4 1218s ok 1117 /checksum/SHA384/5 1218s ok 1118 /checksum/SHA384/6 1218s ok 1119 /checksum/SHA384/7 1218s ok 1120 /checksum/SHA384/8 1218s ok 1121 /checksum/SHA384/9 1218s ok 1122 /checksum/SHA384/10 1218s ok 1123 /checksum/SHA384/11 1218s ok 1124 /checksum/SHA384/12 1218s ok 1125 /checksum/SHA384/13 1218s ok 1126 /checksum/SHA384/14 1218s ok 1127 /checksum/SHA384/15 1218s ok 1128 /checksum/SHA384/16 1218s ok 1129 /checksum/SHA384/17 1218s ok 1130 /checksum/SHA384/18 1218s ok 1131 /checksum/SHA384/19 1218s ok 1132 /checksum/SHA384/20 1218s ok 1133 /checksum/SHA384/21 1218s ok 1134 /checksum/SHA384/22 1218s ok 1135 /checksum/SHA384/23 1218s ok 1136 /checksum/SHA384/24 1218s ok 1137 /checksum/SHA384/25 1218s ok 1138 /checksum/SHA384/26 1218s ok 1139 /checksum/SHA384/27 1218s ok 1140 /checksum/SHA384/28 1218s ok 1141 /checksum/SHA384/29 1218s ok 1142 /checksum/SHA384/30 1218s ok 1143 /checksum/SHA384/31 1218s ok 1144 /checksum/SHA384/32 1218s ok 1145 /checksum/SHA384/33 1218s ok 1146 /checksum/SHA384/34 1218s ok 1147 /checksum/SHA384/35 1218s ok 1148 /checksum/SHA384/36 1218s ok 1149 /checksum/SHA384/37 1218s ok 1150 /checksum/SHA384/38 1218s ok 1151 /checksum/SHA384/39 1218s ok 1152 /checksum/SHA384/40 1218s ok 1153 /checksum/SHA384/41 1218s ok 1154 /checksum/SHA384/42 1218s ok 1155 /checksum/SHA384/43 1218s ok 1156 /checksum/SHA384/44 1218s ok 1157 /checksum/SHA384/45 1218s ok 1158 /checksum/SHA384/46 1218s ok 1159 /checksum/SHA384/47 1218s ok 1160 /checksum/SHA384/48 1218s ok 1161 /checksum/SHA384/49 1218s ok 1162 /checksum/SHA384/50 1218s ok 1163 /checksum/SHA384/51 1218s ok 1164 /checksum/SHA384/52 1218s ok 1165 /checksum/SHA384/53 1218s ok 1166 /checksum/SHA384/54 1218s ok 1167 /checksum/SHA384/55 1218s ok 1168 /checksum/SHA384/56 1218s ok 1169 /checksum/SHA384/57 1218s ok 1170 /checksum/SHA384/58 1218s ok 1171 /checksum/SHA384/59 1218s ok 1172 /checksum/SHA384/60 1218s ok 1173 /checksum/SHA384/61 1218s ok 1174 /checksum/SHA384/62 1218s ok 1175 /checksum/SHA384/63 1218s ok 1176 /checksum/SHA384/64 1218s ok 1177 /checksum/SHA384/65 1218s ok 1178 /checksum/SHA384/66 1218s ok 1179 /checksum/SHA384/67 1218s ok 1180 /checksum/SHA384/68 1218s ok 1181 /checksum/SHA384/69 1218s ok 1182 /checksum/SHA384/70 1218s ok 1183 /checksum/SHA384/71 1218s ok 1184 /checksum/SHA384/72 1218s ok 1185 /checksum/SHA384/73 1218s ok 1186 /checksum/SHA384/74 1218s ok 1187 /checksum/SHA384/75 1218s ok 1188 /checksum/SHA384/76 1218s ok 1189 /checksum/SHA384/77 1218s ok 1190 /checksum/SHA384/78 1218s ok 1191 /checksum/SHA384/79 1218s ok 1192 /checksum/SHA384/80 1218s ok 1193 /checksum/SHA384/81 1218s ok 1194 /checksum/SHA384/82 1218s ok 1195 /checksum/SHA384/83 1218s ok 1196 /checksum/SHA384/84 1218s ok 1197 /checksum/SHA384/85 1218s ok 1198 /checksum/SHA384/86 1218s ok 1199 /checksum/SHA384/87 1218s ok 1200 /checksum/SHA384/88 1218s ok 1201 /checksum/SHA384/89 1218s ok 1202 /checksum/SHA384/90 1218s ok 1203 /checksum/SHA384/91 1218s ok 1204 /checksum/SHA384/92 1218s ok 1205 /checksum/SHA384/93 1218s ok 1206 /checksum/SHA384/94 1218s ok 1207 /checksum/SHA384/95 1218s ok 1208 /checksum/SHA384/96 1218s ok 1209 /checksum/SHA384/97 1218s ok 1210 /checksum/SHA384/98 1218s ok 1211 /checksum/SHA384/99 1218s ok 1212 /checksum/SHA384/100 1218s ok 1213 /checksum/SHA384/101 1218s ok 1214 /checksum/SHA384/102 1218s ok 1215 /checksum/SHA384/103 1218s ok 1216 /checksum/SHA384/104 1218s ok 1217 /checksum/SHA384/105 1218s ok 1218 /checksum/SHA384/106 1218s ok 1219 /checksum/SHA384/107 1218s ok 1220 /checksum/SHA384/108 1218s ok 1221 /checksum/SHA384/109 1218s ok 1222 /checksum/SHA384/110 1218s ok 1223 /checksum/SHA384/111 1218s ok 1224 /checksum/SHA384/112 1218s ok 1225 /checksum/SHA384/113 1218s ok 1226 /checksum/SHA384/114 1218s ok 1227 /checksum/SHA384/115 1218s ok 1228 /checksum/SHA384/116 1218s ok 1229 /checksum/SHA384/117 1218s ok 1230 /checksum/SHA384/118 1218s ok 1231 /checksum/SHA384/119 1218s ok 1232 /checksum/SHA384/120 1218s ok 1233 /checksum/SHA384/121 1218s ok 1234 /checksum/SHA384/122 1218s ok 1235 /checksum/SHA384/123 1218s ok 1236 /checksum/SHA384/124 1218s ok 1237 /checksum/SHA384/125 1218s ok 1238 /checksum/SHA384/126 1218s ok 1239 /checksum/SHA384/127 1218s ok 1240 /checksum/SHA384/128 1218s ok 1241 /checksum/SHA384/129 1218s ok 1242 /checksum/SHA384/130 1218s ok 1243 /checksum/SHA384/131 1218s ok 1244 /checksum/SHA384/132 1218s ok 1245 /checksum/SHA384/133 1218s ok 1246 /checksum/SHA384/134 1218s ok 1247 /checksum/SHA384/135 1218s ok 1248 /checksum/SHA384/136 1218s ok 1249 /checksum/SHA384/137 1218s ok 1250 /checksum/SHA384/138 1218s ok 1251 /checksum/SHA384/139 1218s ok 1252 /checksum/SHA384/140 1218s ok 1253 /checksum/SHA384/141 1218s ok 1254 /checksum/SHA384/142 1218s ok 1255 /checksum/SHA384/143 1218s ok 1256 /checksum/SHA384/144 1218s ok 1257 /checksum/SHA384/145 1218s ok 1258 /checksum/SHA384/146 1218s ok 1259 /checksum/SHA384/147 1218s ok 1260 /checksum/SHA384/148 1218s ok 1261 /checksum/SHA384/149 1218s ok 1262 /checksum/SHA384/150 1218s ok 1263 /checksum/SHA384/151 1218s ok 1264 /checksum/SHA384/152 1218s ok 1265 /checksum/SHA384/153 1218s ok 1266 /checksum/SHA384/154 1218s ok 1267 /checksum/SHA384/155 1218s ok 1268 /checksum/SHA384/156 1218s ok 1269 /checksum/SHA384/157 1218s ok 1270 /checksum/SHA384/158 1218s ok 1271 /checksum/SHA384/159 1218s ok 1272 /checksum/SHA384/160 1218s ok 1273 /checksum/SHA384/161 1218s ok 1274 /checksum/SHA384/162 1218s ok 1275 /checksum/SHA384/163 1218s ok 1276 /checksum/SHA384/164 1218s ok 1277 /checksum/SHA384/165 1218s ok 1278 /checksum/SHA384/166 1218s ok 1279 /checksum/SHA384/167 1218s ok 1280 /checksum/SHA384/168 1218s ok 1281 /checksum/SHA384/169 1218s ok 1282 /checksum/SHA384/170 1218s ok 1283 /checksum/SHA384/171 1218s ok 1284 /checksum/SHA384/172 1218s ok 1285 /checksum/SHA384/173 1218s ok 1286 /checksum/SHA384/174 1218s ok 1287 /checksum/SHA384/175 1218s ok 1288 /checksum/SHA384/176 1218s ok 1289 /checksum/SHA384/177 1218s ok 1290 /checksum/SHA384/178 1218s ok 1291 /checksum/SHA384/179 1218s ok 1292 /checksum/SHA384/180 1218s ok 1293 /checksum/SHA384/181 1218s ok 1294 /checksum/SHA384/182 1218s ok 1295 /checksum/SHA384/183 1218s ok 1296 /checksum/SHA384/string 1218s ok 1297 /checksum/SHA384/bytes 1218s # Start of reset tests 1218s ok 1298 /checksum/SHA384/reset/0 1218s ok 1299 /checksum/SHA384/reset/1 1218s ok 1300 /checksum/SHA384/reset/2 1218s ok 1301 /checksum/SHA384/reset/3 1218s ok 1302 /checksum/SHA384/reset/4 1218s ok 1303 /checksum/SHA384/reset/5 1218s ok 1304 /checksum/SHA384/reset/6 1218s ok 1305 /checksum/SHA384/reset/7 1218s ok 1306 /checksum/SHA384/reset/8 1218s ok 1307 /checksum/SHA384/reset/9 1218s ok 1308 /checksum/SHA384/reset/10 1218s ok 1309 /checksum/SHA384/reset/11 1218s ok 1310 /checksum/SHA384/reset/12 1218s ok 1311 /checksum/SHA384/reset/13 1218s ok 1312 /checksum/SHA384/reset/14 1218s ok 1313 /checksum/SHA384/reset/15 1218s ok 1314 /checksum/SHA384/reset/16 1218s ok 1315 /checksum/SHA384/reset/17 1218s ok 1316 /checksum/SHA384/reset/18 1218s ok 1317 /checksum/SHA384/reset/19 1218s ok 1318 /checksum/SHA384/reset/20 1218s ok 1319 /checksum/SHA384/reset/21 1218s ok 1320 /checksum/SHA384/reset/22 1218s ok 1321 /checksum/SHA384/reset/23 1218s ok 1322 /checksum/SHA384/reset/24 1218s ok 1323 /checksum/SHA384/reset/25 1218s ok 1324 /checksum/SHA384/reset/26 1218s ok 1325 /checksum/SHA384/reset/27 1218s ok 1326 /checksum/SHA384/reset/28 1218s ok 1327 /checksum/SHA384/reset/29 1218s ok 1328 /checksum/SHA384/reset/30 1218s ok 1329 /checksum/SHA384/reset/31 1218s ok 1330 /checksum/SHA384/reset/32 1218s ok 1331 /checksum/SHA384/reset/33 1218s ok 1332 /checksum/SHA384/reset/34 1218s ok 1333 /checksum/SHA384/reset/35 1218s ok 1334 /checksum/SHA384/reset/36 1218s ok 1335 /checksum/SHA384/reset/37 1218s ok 1336 /checksum/SHA384/reset/38 1218s ok 1337 /checksum/SHA384/reset/39 1218s ok 1338 /checksum/SHA384/reset/40 1218s ok 1339 /checksum/SHA384/reset/41 1218s ok 1340 /checksum/SHA384/reset/42 1218s ok 1341 /checksum/SHA384/reset/43 1218s ok 1342 /checksum/SHA384/reset/44 1218s ok 1343 /checksum/SHA384/reset/45 1218s ok 1344 /checksum/SHA384/reset/46 1218s ok 1345 /checksum/SHA384/reset/47 1218s ok 1346 /checksum/SHA384/reset/48 1218s ok 1347 /checksum/SHA384/reset/49 1218s ok 1348 /checksum/SHA384/reset/50 1218s ok 1349 /checksum/SHA384/reset/51 1218s ok 1350 /checksum/SHA384/reset/52 1218s ok 1351 /checksum/SHA384/reset/53 1218s ok 1352 /checksum/SHA384/reset/54 1218s ok 1353 /checksum/SHA384/reset/55 1218s ok 1354 /checksum/SHA384/reset/56 1218s ok 1355 /checksum/SHA384/reset/57 1218s ok 1356 /checksum/SHA384/reset/58 1218s ok 1357 /checksum/SHA384/reset/59 1218s ok 1358 /checksum/SHA384/reset/60 1218s ok 1359 /checksum/SHA384/reset/61 1218s ok 1360 /checksum/SHA384/reset/62 1218s ok 1361 /checksum/SHA384/reset/63 1218s ok 1362 /checksum/SHA384/reset/64 1218s ok 1363 /checksum/SHA384/reset/65 1218s ok 1364 /checksum/SHA384/reset/66 1218s ok 1365 /checksum/SHA384/reset/67 1218s ok 1366 /checksum/SHA384/reset/68 1218s ok 1367 /checksum/SHA384/reset/69 1218s ok 1368 /checksum/SHA384/reset/70 1218s ok 1369 /checksum/SHA384/reset/71 1218s ok 1370 /checksum/SHA384/reset/72 1218s ok 1371 /checksum/SHA384/reset/73 1218s ok 1372 /checksum/SHA384/reset/74 1218s ok 1373 /checksum/SHA384/reset/75 1218s ok 1374 /checksum/SHA384/reset/76 1218s ok 1375 /checksum/SHA384/reset/77 1218s ok 1376 /checksum/SHA384/reset/78 1218s ok 1377 /checksum/SHA384/reset/79 1218s ok 1378 /checksum/SHA384/reset/80 1218s ok 1379 /checksum/SHA384/reset/81 1218s ok 1380 /checksum/SHA384/reset/82 1218s ok 1381 /checksum/SHA384/reset/83 1218s ok 1382 /checksum/SHA384/reset/84 1218s ok 1383 /checksum/SHA384/reset/85 1218s ok 1384 /checksum/SHA384/reset/86 1218s ok 1385 /checksum/SHA384/reset/87 1218s ok 1386 /checksum/SHA384/reset/88 1218s ok 1387 /checksum/SHA384/reset/89 1218s ok 1388 /checksum/SHA384/reset/90 1218s ok 1389 /checksum/SHA384/reset/91 1218s ok 1390 /checksum/SHA384/reset/92 1218s ok 1391 /checksum/SHA384/reset/93 1218s ok 1392 /checksum/SHA384/reset/94 1218s ok 1393 /checksum/SHA384/reset/95 1218s ok 1394 /checksum/SHA384/reset/96 1218s ok 1395 /checksum/SHA384/reset/97 1218s ok 1396 /checksum/SHA384/reset/98 1218s ok 1397 /checksum/SHA384/reset/99 1218s ok 1398 /checksum/SHA384/reset/100 1218s ok 1399 /checksum/SHA384/reset/101 1218s ok 1400 /checksum/SHA384/reset/102 1218s ok 1401 /checksum/SHA384/reset/103 1218s ok 1402 /checksum/SHA384/reset/104 1218s ok 1403 /checksum/SHA384/reset/105 1218s ok 1404 /checksum/SHA384/reset/106 1218s ok 1405 /checksum/SHA384/reset/107 1218s ok 1406 /checksum/SHA384/reset/108 1218s ok 1407 /checksum/SHA384/reset/109 1218s ok 1408 /checksum/SHA384/reset/110 1218s ok 1409 /checksum/SHA384/reset/111 1218s ok 1410 /checksum/SHA384/reset/112 1218s ok 1411 /checksum/SHA384/reset/113 1218s ok 1412 /checksum/SHA384/reset/114 1218s ok 1413 /checksum/SHA384/reset/115 1218s ok 1414 /checksum/SHA384/reset/116 1218s ok 1415 /checksum/SHA384/reset/117 1218s ok 1416 /checksum/SHA384/reset/118 1218s ok 1417 /checksum/SHA384/reset/119 1218s ok 1418 /checksum/SHA384/reset/120 1218s ok 1419 /checksum/SHA384/reset/121 1218s ok 1420 /checksum/SHA384/reset/122 1218s ok 1421 /checksum/SHA384/reset/123 1218s ok 1422 /checksum/SHA384/reset/124 1218s ok 1423 /checksum/SHA384/reset/125 1218s ok 1424 /checksum/SHA384/reset/126 1218s ok 1425 /checksum/SHA384/reset/127 1218s ok 1426 /checksum/SHA384/reset/128 1218s ok 1427 /checksum/SHA384/reset/129 1218s ok 1428 /checksum/SHA384/reset/130 1218s ok 1429 /checksum/SHA384/reset/131 1218s ok 1430 /checksum/SHA384/reset/132 1218s ok 1431 /checksum/SHA384/reset/133 1218s ok 1432 /checksum/SHA384/reset/134 1218s ok 1433 /checksum/SHA384/reset/135 1218s ok 1434 /checksum/SHA384/reset/136 1218s ok 1435 /checksum/SHA384/reset/137 1218s ok 1436 /checksum/SHA384/reset/138 1218s ok 1437 /checksum/SHA384/reset/139 1218s ok 1438 /checksum/SHA384/reset/140 1218s ok 1439 /checksum/SHA384/reset/141 1218s ok 1440 /checksum/SHA384/reset/142 1218s ok 1441 /checksum/SHA384/reset/143 1218s ok 1442 /checksum/SHA384/reset/144 1218s ok 1443 /checksum/SHA384/reset/145 1218s ok 1444 /checksum/SHA384/reset/146 1218s ok 1445 /checksum/SHA384/reset/147 1218s ok 1446 /checksum/SHA384/reset/148 1218s ok 1447 /checksum/SHA384/reset/149 1218s ok 1448 /checksum/SHA384/reset/150 1218s ok 1449 /checksum/SHA384/reset/151 1218s ok 1450 /checksum/SHA384/reset/152 1218s ok 1451 /checksum/SHA384/reset/153 1218s ok 1452 /checksum/SHA384/reset/154 1218s ok 1453 /checksum/SHA384/reset/155 1218s ok 1454 /checksum/SHA384/reset/156 1218s ok 1455 /checksum/SHA384/reset/157 1218s ok 1456 /checksum/SHA384/reset/158 1218s ok 1457 /checksum/SHA384/reset/159 1218s ok 1458 /checksum/SHA384/reset/160 1218s ok 1459 /checksum/SHA384/reset/161 1218s ok 1460 /checksum/SHA384/reset/162 1218s ok 1461 /checksum/SHA384/reset/163 1218s ok 1462 /checksum/SHA384/reset/164 1218s ok 1463 /checksum/SHA384/reset/165 1218s ok 1464 /checksum/SHA384/reset/166 1218s ok 1465 /checksum/SHA384/reset/167 1218s ok 1466 /checksum/SHA384/reset/168 1218s ok 1467 /checksum/SHA384/reset/169 1218s ok 1468 /checksum/SHA384/reset/170 1218s ok 1469 /checksum/SHA384/reset/171 1218s ok 1470 /checksum/SHA384/reset/172 1218s ok 1471 /checksum/SHA384/reset/173 1218s ok 1472 /checksum/SHA384/reset/174 1218s ok 1473 /checksum/SHA384/reset/175 1218s ok 1474 /checksum/SHA384/reset/176 1218s ok 1475 /checksum/SHA384/reset/177 1218s ok 1476 /checksum/SHA384/reset/178 1218s ok 1477 /checksum/SHA384/reset/179 1218s ok 1478 /checksum/SHA384/reset/180 1218s ok 1479 /checksum/SHA384/reset/181 1218s ok 1480 /checksum/SHA384/reset/182 1218s ok 1481 /checksum/SHA384/reset/183 1218s # End of reset tests 1218s # End of SHA384 tests 1218s # Start of SHA512 tests 1218s ok 1482 /checksum/SHA512/0 1218s ok 1483 /checksum/SHA512/1 1218s ok 1484 /checksum/SHA512/2 1218s ok 1485 /checksum/SHA512/3 1218s ok 1486 /checksum/SHA512/4 1218s ok 1487 /checksum/SHA512/5 1218s ok 1488 /checksum/SHA512/6 1218s ok 1489 /checksum/SHA512/7 1218s ok 1490 /checksum/SHA512/8 1218s ok 1491 /checksum/SHA512/9 1218s ok 1492 /checksum/SHA512/10 1218s ok 1493 /checksum/SHA512/11 1218s ok 1494 /checksum/SHA512/12 1218s ok 1495 /checksum/SHA512/13 1218s ok 1496 /checksum/SHA512/14 1218s ok 1497 /checksum/SHA512/15 1218s ok 1498 /checksum/SHA512/16 1218s ok 1499 /checksum/SHA512/17 1218s ok 1500 /checksum/SHA512/18 1218s ok 1501 /checksum/SHA512/19 1218s ok 1502 /checksum/SHA512/20 1218s ok 1503 /checksum/SHA512/21 1218s ok 1504 /checksum/SHA512/22 1218s ok 1505 /checksum/SHA512/23 1218s ok 1506 /checksum/SHA512/24 1218s ok 1507 /checksum/SHA512/25 1218s ok 1508 /checksum/SHA512/26 1218s ok 1509 /checksum/SHA512/27 1218s ok 1510 /checksum/SHA512/28 1218s ok 1511 /checksum/SHA512/29 1218s ok 1512 /checksum/SHA512/30 1218s ok 1513 /checksum/SHA512/31 1218s ok 1514 /checksum/SHA512/32 1218s ok 1515 /checksum/SHA512/33 1218s ok 1516 /checksum/SHA512/34 1218s ok 1517 /checksum/SHA512/35 1218s ok 1518 /checksum/SHA512/36 1218s ok 1519 /checksum/SHA512/37 1218s ok 1520 /checksum/SHA512/38 1218s ok 1521 /checksum/SHA512/39 1218s ok 1522 /checksum/SHA512/40 1218s ok 1523 /checksum/SHA512/41 1218s ok 1524 /checksum/SHA512/42 1218s ok 1525 /checksum/SHA512/43 1218s ok 1526 /checksum/SHA512/44 1218s ok 1527 /checksum/SHA512/45 1218s ok 1528 /checksum/SHA512/46 1218s ok 1529 /checksum/SHA512/47 1218s ok 1530 /checksum/SHA512/48 1218s ok 1531 /checksum/SHA512/49 1218s ok 1532 /checksum/SHA512/50 1218s ok 1533 /checksum/SHA512/51 1218s ok 1534 /checksum/SHA512/52 1218s ok 1535 /checksum/SHA512/53 1218s ok 1536 /checksum/SHA512/54 1218s ok 1537 /checksum/SHA512/55 1218s ok 1538 /checksum/SHA512/56 1218s ok 1539 /checksum/SHA512/57 1218s ok 1540 /checksum/SHA512/58 1218s ok 1541 /checksum/SHA512/59 1218s ok 1542 /checksum/SHA512/60 1218s ok 1543 /checksum/SHA512/61 1218s ok 1544 /checksum/SHA512/62 1218s ok 1545 /checksum/SHA512/63 1218s ok 1546 /checksum/SHA512/64 1218s ok 1547 /checksum/SHA512/65 1218s ok 1548 /checksum/SHA512/66 1218s ok 1549 /checksum/SHA512/67 1218s ok 1550 /checksum/SHA512/68 1218s ok 1551 /checksum/SHA512/69 1218s ok 1552 /checksum/SHA512/70 1218s ok 1553 /checksum/SHA512/71 1218s ok 1554 /checksum/SHA512/72 1218s ok 1555 /checksum/SHA512/73 1218s ok 1556 /checksum/SHA512/74 1218s ok 1557 /checksum/SHA512/75 1218s ok 1558 /checksum/SHA512/76 1218s ok 1559 /checksum/SHA512/77 1218s ok 1560 /checksum/SHA512/78 1218s ok 1561 /checksum/SHA512/79 1218s ok 1562 /checksum/SHA512/80 1218s ok 1563 /checksum/SHA512/81 1218s ok 1564 /checksum/SHA512/82 1218s ok 1565 /checksum/SHA512/83 1218s ok 1566 /checksum/SHA512/84 1218s ok 1567 /checksum/SHA512/85 1218s ok 1568 /checksum/SHA512/86 1218s ok 1569 /checksum/SHA512/87 1218s ok 1570 /checksum/SHA512/88 1218s ok 1571 /checksum/SHA512/89 1218s ok 1572 /checksum/SHA512/90 1218s ok 1573 /checksum/SHA512/91 1218s ok 1574 /checksum/SHA512/92 1218s ok 1575 /checksum/SHA512/93 1218s ok 1576 /checksum/SHA512/94 1218s ok 1577 /checksum/SHA512/95 1218s ok 1578 /checksum/SHA512/96 1218s ok 1579 /checksum/SHA512/97 1218s ok 1580 /checksum/SHA512/98 1218s ok 1581 /checksum/SHA512/99 1218s ok 1582 /checksum/SHA512/100 1218s ok 1583 /checksum/SHA512/101 1218s ok 1584 /checksum/SHA512/102 1218s ok 1585 /checksum/SHA512/103 1218s ok 1586 /checksum/SHA512/104 1218s ok 1587 /checksum/SHA512/105 1218s ok 1588 /checksum/SHA512/106 1218s ok 1589 /checksum/SHA512/107 1218s ok 1590 /checksum/SHA512/108 1218s ok 1591 /checksum/SHA512/109 1218s ok 1592 /checksum/SHA512/110 1218s ok 1593 /checksum/SHA512/111 1218s ok 1594 /checksum/SHA512/112 1218s ok 1595 /checksum/SHA512/113 1218s ok 1596 /checksum/SHA512/114 1218s ok 1597 /checksum/SHA512/115 1218s ok 1598 /checksum/SHA512/116 1218s ok 1599 /checksum/SHA512/117 1218s ok 1600 /checksum/SHA512/118 1218s ok 1601 /checksum/SHA512/119 1218s ok 1602 /checksum/SHA512/120 1218s ok 1603 /checksum/SHA512/121 1218s ok 1604 /checksum/SHA512/122 1218s ok 1605 /checksum/SHA512/123 1218s ok 1606 /checksum/SHA512/124 1218s ok 1607 /checksum/SHA512/125 1218s ok 1608 /checksum/SHA512/126 1218s ok 1609 /checksum/SHA512/127 1218s ok 1610 /checksum/SHA512/128 1218s ok 1611 /checksum/SHA512/129 1218s ok 1612 /checksum/SHA512/130 1218s ok 1613 /checksum/SHA512/131 1218s ok 1614 /checksum/SHA512/132 1218s ok 1615 /checksum/SHA512/133 1218s ok 1616 /checksum/SHA512/134 1218s ok 1617 /checksum/SHA512/135 1218s ok 1618 /checksum/SHA512/136 1218s ok 1619 /checksum/SHA512/137 1218s ok 1620 /checksum/SHA512/138 1218s ok 1621 /checksum/SHA512/139 1218s ok 1622 /checksum/SHA512/140 1218s ok 1623 /checksum/SHA512/141 1218s ok 1624 /checksum/SHA512/142 1218s ok 1625 /checksum/SHA512/143 1218s ok 1626 /checksum/SHA512/144 1218s ok 1627 /checksum/SHA512/145 1218s ok 1628 /checksum/SHA512/146 1218s ok 1629 /checksum/SHA512/147 1218s ok 1630 /checksum/SHA512/148 1218s ok 1631 /checksum/SHA512/149 1218s ok 1632 /checksum/SHA512/150 1218s ok 1633 /checksum/SHA512/151 1218s ok 1634 /checksum/SHA512/152 1218s ok 1635 /checksum/SHA512/153 1218s ok 1636 /checksum/SHA512/154 1218s ok 1637 /checksum/SHA512/155 1218s ok 1638 /checksum/SHA512/156 1218s ok 1639 /checksum/SHA512/157 1218s ok 1640 /checksum/SHA512/158 1218s ok 1641 /checksum/SHA512/159 1218s ok 1642 /checksum/SHA512/160 1218s ok 1643 /checksum/SHA512/161 1218s ok 1644 /checksum/SHA512/162 1218s ok 1645 /checksum/SHA512/163 1218s ok 1646 /checksum/SHA512/164 1218s ok 1647 /checksum/SHA512/165 1218s ok 1648 /checksum/SHA512/166 1218s ok 1649 /checksum/SHA512/167 1218s ok 1650 /checksum/SHA512/168 1218s ok 1651 /checksum/SHA512/169 1218s ok 1652 /checksum/SHA512/170 1218s ok 1653 /checksum/SHA512/171 1218s ok 1654 /checksum/SHA512/172 1218s ok 1655 /checksum/SHA512/173 1218s ok 1656 /checksum/SHA512/174 1218s ok 1657 /checksum/SHA512/175 1218s ok 1658 /checksum/SHA512/176 1218s ok 1659 /checksum/SHA512/177 1218s ok 1660 /checksum/SHA512/178 1218s ok 1661 /checksum/SHA512/179 1218s ok 1662 /checksum/SHA512/180 1218s ok 1663 /checksum/SHA512/181 1218s ok 1664 /checksum/SHA512/182 1218s ok 1665 /checksum/SHA512/183 1218s ok 1666 /checksum/SHA512/string 1218s ok 1667 /checksum/SHA512/bytes 1218s # Start of reset tests 1218s ok 1668 /checksum/SHA512/reset/0 1218s ok 1669 /checksum/SHA512/reset/1 1218s ok 1670 /checksum/SHA512/reset/2 1218s ok 1671 /checksum/SHA512/reset/3 1218s ok 1672 /checksum/SHA512/reset/4 1218s ok 1673 /checksum/SHA512/reset/5 1218s ok 1674 /checksum/SHA512/reset/6 1218s ok 1675 /checksum/SHA512/reset/7 1218s ok 1676 /checksum/SHA512/reset/8 1218s ok 1677 /checksum/SHA512/reset/9 1218s ok 1678 /checksum/SHA512/reset/10 1218s ok 1679 /checksum/SHA512/reset/11 1218s ok 1680 /checksum/SHA512/reset/12 1218s ok 1681 /checksum/SHA512/reset/13 1218s ok 1682 /checksum/SHA512/reset/14 1218s ok 1683 /checksum/SHA512/reset/15 1218s ok 1684 /checksum/SHA512/reset/16 1218s ok 1685 /checksum/SHA512/reset/17 1218s ok 1686 /checksum/SHA512/reset/18 1218s ok 1687 /checksum/SHA512/reset/19 1218s ok 1688 /checksum/SHA512/reset/20 1218s ok 1689 /checksum/SHA512/reset/21 1218s ok 1690 /checksum/SHA512/reset/22 1218s ok 1691 /checksum/SHA512/reset/23 1218s ok 1692 /checksum/SHA512/reset/24 1218s ok 1693 /checksum/SHA512/reset/25 1218s ok 1694 /checksum/SHA512/reset/26 1218s ok 1695 /checksum/SHA512/reset/27 1218s ok 1696 /checksum/SHA512/reset/28 1218s ok 1697 /checksum/SHA512/reset/29 1218s ok 1698 /checksum/SHA512/reset/30 1218s ok 1699 /checksum/SHA512/reset/31 1218s ok 1700 /checksum/SHA512/reset/32 1218s ok - glib/checksum.test 1218s # Running test: glib/io-stream.test 1218s ok - glib/io-stream.test 1218s # Running test: glib/utils-isolated.test 1218s ok 1701 /checksum/SHA512/reset/33 1218s ok 1702 /checksum/SHA512/reset/34 1218s ok 1703 /checksum/SHA512/reset/35 1218s ok 1704 /checksum/SHA512/reset/36 1218s ok 1705 /checksum/SHA512/reset/37 1218s ok 1706 /checksum/SHA512/reset/38 1218s ok 1707 /checksum/SHA512/reset/39 1218s ok 1708 /checksum/SHA512/reset/40 1218s ok 1709 /checksum/SHA512/reset/41 1218s ok 1710 /checksum/SHA512/reset/42 1218s ok 1711 /checksum/SHA512/reset/43 1218s ok 1712 /checksum/SHA512/reset/44 1218s ok 1713 /checksum/SHA512/reset/45 1218s ok 1714 /checksum/SHA512/reset/46 1218s ok 1715 /checksum/SHA512/reset/47 1218s ok 1716 /checksum/SHA512/reset/48 1218s ok 1717 /checksum/SHA512/reset/49 1218s ok 1718 /checksum/SHA512/reset/50 1218s ok 1719 /checksum/SHA512/reset/51 1218s ok 1720 /checksum/SHA512/reset/52 1218s ok 1721 /checksum/SHA512/reset/53 1218s ok 1722 /checksum/SHA512/reset/54 1218s ok 1723 /checksum/SHA512/reset/55 1218s ok 1724 /checksum/SHA512/reset/56 1218s ok 1725 /checksum/SHA512/reset/57 1218s ok 1726 /checksum/SHA512/reset/58 1218s ok 1727 /checksum/SHA512/reset/59 1218s ok 1728 /checksum/SHA512/reset/60 1218s ok 1729 /checksum/SHA512/reset/61 1218s ok 1730 /checksum/SHA512/reset/62 1218s ok 1731 /checksum/SHA512/reset/63 1218s ok 1732 /checksum/SHA512/reset/64 1218s ok 1733 /checksum/SHA512/reset/65 1218s ok 1734 /checksum/SHA512/reset/66 1218s ok 1735 /checksum/SHA512/reset/67 1218s ok 1736 /checksum/SHA512/reset/68 1218s ok 1737 /checksum/SHA512/reset/69 1218s ok 1738 /checksum/SHA512/reset/70 1218s ok 1739 /checksum/SHA512/reset/71 1218s ok 1740 /checksum/SHA512/reset/72 1218s ok 1741 /checksum/SHA512/reset/73 1218s ok 1742 /checksum/SHA512/reset/74 1218s ok 1743 /checksum/SHA512/reset/75 1218s ok 1744 /checksum/SHA512/reset/76 1218s ok 1745 /checksum/SHA512/reset/77 1218s ok 1746 /checksum/SHA512/reset/78 1218s ok 1747 /checksum/SHA512/reset/79 1218s ok 1748 /checksum/SHA512/reset/80 1218s ok 1749 /checksum/SHA512/reset/81 1218s ok 1750 /checksum/SHA512/reset/82 1218s ok 1751 /checksum/SHA512/reset/83 1218s ok 1752 /checksum/SHA512/reset/84 1218s ok 1753 /checksum/SHA512/reset/85 1218s ok 1754 /checksum/SHA512/reset/86 1218s ok 1755 /checksum/SHA512/reset/87 1218s ok 1756 /checksum/SHA512/reset/88 1218s ok 1757 /checksum/SHA512/reset/89 1218s ok 1758 /checksum/SHA512/reset/90 1218s ok 1759 /checksum/SHA512/reset/91 1218s ok 1760 /checksum/SHA512/reset/92 1218s ok 1761 /checksum/SHA512/reset/93 1218s ok 1762 /checksum/SHA512/reset/94 1218s ok 1763 /checksum/SHA512/reset/95 1218s ok 1764 /checksum/SHA512/reset/96 1218s ok 1765 /checksum/SHA512/reset/97 1218s ok 1766 /checksum/SHA512/reset/98 1218s ok 1767 /checksum/SHA512/reset/99 1218s ok 1768 /checksum/SHA512/reset/100 1218s ok 1769 /checksum/SHA512/reset/101 1218s ok 1770 /checksum/SHA512/reset/102 1218s ok 1771 /checksum/SHA512/reset/103 1218s ok 1772 /checksum/SHA512/reset/104 1218s ok 1773 /checksum/SHA512/reset/105 1218s ok 1774 /checksum/SHA512/reset/106 1218s ok 1775 /checksum/SHA512/reset/107 1218s ok 1776 /checksum/SHA512/reset/108 1218s ok 1777 /checksum/SHA512/reset/109 1218s ok 1778 /checksum/SHA512/reset/110 1218s ok 1779 /checksum/SHA512/reset/111 1218s ok 1780 /checksum/SHA512/reset/112 1218s ok 1781 /checksum/SHA512/reset/113 1218s ok 1782 /checksum/SHA512/reset/114 1218s ok 1783 /checksum/SHA512/reset/115 1218s ok 1784 /checksum/SHA512/reset/116 1218s ok 1785 /checksum/SHA512/reset/117 1218s ok 1786 /checksum/SHA512/reset/118 1218s ok 1787 /checksum/SHA512/reset/119 1218s ok 1788 /checksum/SHA512/reset/120 1218s ok 1789 /checksum/SHA512/reset/121 1218s ok 1790 /checksum/SHA512/reset/122 1218s ok 1791 /checksum/SHA512/reset/123 1218s ok 1792 /checksum/SHA512/reset/124 1218s ok 1793 /checksum/SHA512/reset/125 1218s ok 1794 /checksum/SHA512/reset/126 1218s ok 1795 /checksum/SHA512/reset/127 1218s ok 1796 /checksum/SHA512/reset/128 1218s ok 1797 /checksum/SHA512/reset/129 1218s ok 1798 /checksum/SHA512/reset/130 1218s ok 1799 /checksum/SHA512/reset/131 1218s ok 1800 /checksum/SHA512/reset/132 1218s ok 1801 /checksum/SHA512/reset/133 1218s ok 1802 /checksum/SHA512/reset/134 1218s ok 1803 /checksum/SHA512/reset/135 1218s ok 1804 /checksum/SHA512/reset/136 1218s ok 1805 /checksum/SHA512/reset/137 1218s ok 1806 /checksum/SHA512/reset/138 1218s ok 1807 /checksum/SHA512/reset/139 1218s ok 1808 /checksum/SHA512/reset/140 1218s ok 1809 /checksum/SHA512/reset/141 1218s ok 1810 /checksum/SHA512/reset/142 1218s ok 1811 /checksum/SHA512/reset/143 1218s ok 1812 /checksum/SHA512/reset/144 1218s ok 1813 /checksum/SHA512/reset/145 1218s ok 1814 /checksum/SHA512/reset/146 1218s ok 1815 /checksum/SHA512/reset/147 1218s ok 1816 /checksum/SHA512/reset/148 1218s ok 1817 /checksum/SHA512/reset/149 1218s ok 1818 /checksum/SHA512/reset/150 1218s ok 1819 /checksum/SHA512/reset/151 1218s ok 1820 /checksum/SHA512/reset/152 1218s ok 1821 /checksum/SHA512/reset/153 1218s ok 1822 /checksum/SHA512/reset/154 1218s ok 1823 /checksum/SHA512/reset/155 1218s ok 1824 /checksum/SHA512/reset/156 1218s ok 1825 /checksum/SHA512/reset/157 1218s ok 1826 /checksum/SHA512/reset/158 1218s ok 1827 /checksum/SHA512/reset/159 1218s ok 1828 /checksum/SHA512/reset/160 1218s ok 1829 /checksum/SHA512/reset/161 1218s ok 1830 /checksum/SHA512/reset/162 1218s ok 1831 /checksum/SHA512/reset/163 1218s ok 1832 /checksum/SHA512/reset/164 1218s ok 1833 /checksum/SHA512/reset/165 1218s ok 1834 /checksum/SHA512/reset/166 1218s ok 1835 /checksum/SHA512/reset/167 1218s ok 1836 /checksum/SHA512/reset/168 1218s ok 1837 /checksum/SHA512/reset/169 1218s ok 1838 /checksum/SHA512/reset/170 1218s ok 1839 /checksum/SHA512/reset/171 1218s ok 1840 /checksum/SHA512/reset/172 1218s ok 1841 /checksum/SHA512/reset/173 1218s ok 1842 /checksum/SHA512/reset/174 1218s ok 1843 /checksum/SHA512/reset/175 1218s ok 1844 /checksum/SHA512/reset/176 1218s ok 1845 /checksum/SHA512/reset/177 1218s ok 1846 /checksum/SHA512/reset/178 1218s ok 1847 /checksum/SHA512/reset/179 1218s ok 1848 /checksum/SHA512/reset/180 1218s ok 1849 /checksum/SHA512/reset/181 1218s ok 1850 /checksum/SHA512/reset/182 1218s ok 1851 /checksum/SHA512/reset/183 1218s # End of reset tests 1218s # End of SHA512 tests 1218s # End of checksum tests 1218s TAP version 14 1218s # random seed: R02S1e7c58bdbddda3c69cf60ac3d14dda94 1218s 1..3 1218s # Start of io-stream tests 1218s ok 1 /io-stream/copy-chunks 1218s # Start of close tests 1218s # Start of async tests 1218s ok 2 /io-stream/close/async/memory 1218s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1218s ok 3 /io-stream/close/async/file 1218s # End of async tests 1218s # End of close tests 1218s # End of io-stream tests 1218s TAP version 14 1218s # random seed: R02S5fb4a7105cad0cd7963897065c75da61 1218s 1..11 1218s # Start of utils-isolated tests 1218s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/tmp-dir/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/tmp-dir/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/tmp-dir/.dirs/system-config1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/tmp-dir/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/tmp-dir/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/tmp-dir/.dirs/system-data1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/tmp-dir/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/tmp-dir/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/tmp-dir/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8CSBC3/utils-isolated/tmp-dir/.dirs/runtime 1218s ok 1 /utils-isolated/tmp-dir 1218s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/home-dir/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/home-dir/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/home-dir/.dirs/system-config1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/home-dir/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/home-dir/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/home-dir/.dirs/system-data1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/home-dir/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/home-dir/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/home-dir/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8CSBC3/utils-isolated/home-dir/.dirs/runtime 1218s ok 2 /utils-isolated/home-dir 1218s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-cache-dir/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-cache-dir/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-cache-dir/.dirs/system-config1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/user-cache-dir/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-cache-dir/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-cache-dir/.dirs/system-data1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/user-cache-dir/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-cache-dir/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-cache-dir/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-cache-dir/.dirs/runtime 1218s ok 3 /utils-isolated/user-cache-dir 1218s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/system-config-dirs/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/system-config-dirs/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/system-config-dirs/.dirs/system-config1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/system-config-dirs/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/system-config-dirs/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/system-config-dirs/.dirs/system-data1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/system-config-dirs/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/system-config-dirs/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/system-config-dirs/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8CSBC3/utils-isolated/system-config-dirs/.dirs/runtime 1218s ok 4 /utils-isolated/system-config-dirs 1218s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-config-dir/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-config-dir/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-config-dir/.dirs/system-config1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/user-config-dir/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-config-dir/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-config-dir/.dirs/system-data1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/user-config-dir/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-config-dir/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-config-dir/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-config-dir/.dirs/runtime 1218s ok 5 /utils-isolated/user-config-dir 1218s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/system-data-dirs/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/system-data-dirs/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/system-data-dirs/.dirs/system-config1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/system-data-dirs/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/system-data-dirs/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/system-data-dirs/.dirs/system-data1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/system-data-dirs/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/system-data-dirs/.dirs/data 1218s ok - glib/utils-isolated.test 1218s # Running test: glib/testing-nonfatal.test 1218s ok - glib/testing-nonfatal.test 1218s # Running test: glib/task.test 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/system-data-dirs/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8CSBC3/utils-isolated/system-data-dirs/.dirs/runtime 1218s ok 6 /utils-isolated/system-data-dirs 1218s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-data-dir/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-data-dir/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-data-dir/.dirs/system-config1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/user-data-dir/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-data-dir/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-data-dir/.dirs/system-data1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/user-data-dir/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-data-dir/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-data-dir/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-data-dir/.dirs/runtime 1218s ok 7 /utils-isolated/user-data-dir 1218s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-state-dir/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-state-dir/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-state-dir/.dirs/system-config1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/user-state-dir/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-state-dir/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-state-dir/.dirs/system-data1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/user-state-dir/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-state-dir/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-state-dir/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-state-dir/.dirs/runtime 1218s ok 8 /utils-isolated/user-state-dir 1218s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-runtime-dir/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-runtime-dir/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-runtime-dir/.dirs/system-config1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/user-runtime-dir/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-runtime-dir/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-runtime-dir/.dirs/system-data1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/user-runtime-dir/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-runtime-dir/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-runtime-dir/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8CSBC3/utils-isolated/user-runtime-dir/.dirs/runtime 1218s ok 9 /utils-isolated/user-runtime-dir 1218s # Start of cleanup tests 1218s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/handles-errors/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/handles-errors/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/handles-errors/.dirs/system-config1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/handles-errors/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/handles-errors/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/handles-errors/.dirs/system-data1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/handles-errors/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/handles-errors/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/handles-errors/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/handles-errors/.dirs/runtime 1218s Unable to clean up temporary directory /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/handles-errors/.dirs/runtime: Directory not empty 1218s Unable to clean up temporary directory /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/handles-errors/.dirs: Directory not empty 1218s Unable to clean up temporary directory /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/handles-errors: Directory not empty 1218s ok 10 /utils-isolated/cleanup/handles-errors 1218s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data1:/tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/runtime 1218s Unable to clean up temporary directory /tmp/test_utils-isolated_8CSBC3/utils-isolated/cleanup/doesnt-follow-symlinks: No such file or directory 1218s ok 11 /utils-isolated/cleanup/doesnt-follow-symlinks 1218s # End of cleanup tests 1218s # End of utils-isolated tests 1218s TAP version 14 1218s # random seed: R02Sc3fbbf8bd792280b74c565d946ebddc5 1218s ** 1218s 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?") 1218s # 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?") 1218s TAP version 14 1218s # random seed: R02S54b14e9acab9d72859e22a0ed28ae928 1218s 1..36 1218s # Start of gtask tests 1218s ok 1 /gtask/basic 1218s ok 2 /gtask/error 1218s ok 3 /gtask/error-literal 1218s ok 4 /gtask/error-literal-from-variable 1218s ok 5 /gtask/return-from-same-iteration 1218s ok 6 /gtask/return-from-toplevel 1218s ok 7 /gtask/return-from-anon-thread 1218s ok 8 /gtask/return-from-wrong-thread 1218s ok 9 /gtask/no-callback 1218s ok 10 /gtask/report-error 1218s ok 11 /gtask/priority 1218s ok 12 /gtask/name 1218s ok 13 /gtask/static-name 1218s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1608 1218s ok 14 /gtask/asynchronous-cancellation 1218s ok 15 /gtask/check-cancellable 1218s ok 16 /gtask/return-if-cancelled 1218s ok 17 /gtask/run-in-thread 1218s ok 18 /gtask/run-in-thread-sync 1218s ok 19 /gtask/run-in-thread-priority 1218s ok 20 /gtask/run-in-thread-nested 1219s ok 21 /gtask/run-in-thread-overflow 1219s # slow test /gtask/run-in-thread-overflow executed in 0.51 secs 1219s # GLib-GIO-DEBUG: GTask 0x2aa1fbe2d30 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1219s # GLib-GIO-DEBUG: GTask 0x2aa1fbe2ec0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1219s ok 22 /gtask/return-on-cancel 1219s # GLib-GIO-DEBUG: GTask 0x2aa1fb790b0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1219s # GLib-GIO-DEBUG: GTask 0x2aa1fb78c90 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1219s ok 23 /gtask/return-on-cancel-sync 1219s ok 24 /gtask/return-on-cancel-atomic 1219s ok 25 /gtask/return-pointer 1219s ok 26 /gtask/return-value 1219s ok 27 /gtask/return-prefixed-error 1219s ok 28 /gtask/object-keepalive 1219s ok 29 /gtask/legacy-error 1219s ok 30 /gtask/finalize-without-return 1219s # Start of name tests 1219s ok 31 /gtask/name/macro-wrapper 1219s # End of name tests 1219s # Start of return tests 1219s ok 32 /gtask/return/error-first 1219s ok 33 /gtask/return/value-first 1219s # Start of in-idle tests 1219s ok 34 /gtask/return/in-idle/error-first 1219s ok 35 /gtask/return/in-idle/value-first 1219s # End of in-idle tests 1219s # End of return tests 1219s # Start of attach-source tests 1219s # /gtask/attach-source/set-name summary: Test that attaching a source to a task will set the source’s name if unset 1219s ok 36 /gtask/attach-source/set-name 1219s # End of attach-source tests 1219s # End of gtask tests 1219s ok - glib/task.test 1219s # Running test: glib/rcbox.test 1219s TAP version 14 1219s # random seed: R02Sf39581778cc9ee9937a6e66f546cbd2c 1219s 1..8 1219s # Start of rcbox tests 1219s ok 1 /rcbox/new 1219s # global_point = 0x2aa342da710 1219s ok 2 /rcbox/release-full 1219s # global_point_a = 0x2aa342da710 1219s # global_point_b = 0x2aa342da7e0 1219s ok 3 /rcbox/dup 1219s ok 4 /rcbox/alignment 1219s # End of rcbox tests 1219s # Start of atomic-rcbox tests 1219s ok 5 /atomic-rcbox/new 1219s # global_point = 0x2aa342da7e0 1219s ok 6 /atomic-rcbox/release-full 1219s # global_point_a = 0x2aa342da7e0 1219s # global_point_b = 0x2aa342da710 1219s ok 7 /atomic-rcbox/dup 1219s ok 8 /atomic-rcbox/alignment 1219s # End of atomic-rcbox tests 1219s ok - glib/rcbox.test 1219s # Running test: glib/gdbus-proxy-well-known-name.test 1219s TAP version 14 1219s # random seed: R02Sbed51a69cc386b20e78e9c39d0a21e97 1219s 1..1 1219s # Start of gdbus tests 1219s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-well-known-name_RIDCC3/gdbus/proxy-well-known-name/.dirs/home 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-well-known-name_RIDCC3/gdbus/proxy-well-known-name/.dirs/cache 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-well-known-name_RIDCC3/gdbus/proxy-well-known-name/.dirs/system-config1:/tmp/test_gdbus-proxy-well-known-name_RIDCC3/gdbus/proxy-well-known-name/.dirs/system-config2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-well-known-name_RIDCC3/gdbus/proxy-well-known-name/.dirs/config 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-well-known-name_RIDCC3/gdbus/proxy-well-known-name/.dirs/system-data1:/tmp/test_gdbus-proxy-well-known-name_RIDCC3/gdbus/proxy-well-known-name/.dirs/system-data2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-well-known-name_RIDCC3/gdbus/proxy-well-known-name/.dirs/data 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-well-known-name_RIDCC3/gdbus/proxy-well-known-name/.dirs/state 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-well-known-name_RIDCC3/gdbus/proxy-well-known-name/.dirs/runtime 1219s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1219s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1219s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1219s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1219s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1219s ok 1 /gdbus/proxy-well-known-name 1219s # End of gdbus tests 1219s ok - glib/gdbus-proxy-well-known-name.test 1219s # Running test: glib/gdbus-peer.test 1219s TAP version 14 1219s # random seed: R02S755934bf229235e79b2c743234a68760 1219s 1..12 1219s # Start of gdbus tests 1219s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/.dirs/home 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/.dirs/cache 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/.dirs/system-config2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/.dirs/config 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/.dirs/system-data2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/.dirs/data 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/.dirs/state 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/.dirs/runtime 1219s # Testing with unix:dir address 1219s # Testing with unix:tmpdir address 1219s # Testing with unix:path address 1219s ok 1 /gdbus/peer-to-peer 1219s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/delayed-message-processing/.dirs/home 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/delayed-message-processing/.dirs/cache 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/delayed-message-processing/.dirs/system-config1:/tmp/test_gdbus-peer_69ZBC3/gdbus/delayed-message-processing/.dirs/system-config2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/delayed-message-processing/.dirs/config 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/delayed-message-processing/.dirs/system-data1:/tmp/test_gdbus-peer_69ZBC3/gdbus/delayed-message-processing/.dirs/system-data2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/delayed-message-processing/.dirs/data 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/delayed-message-processing/.dirs/state 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_69ZBC3/gdbus/delayed-message-processing/.dirs/runtime 1219s # Testing with unix:dir address 1219s ok 2 /gdbus/delayed-message-processing 1219s # slow test /gdbus/delayed-message-processing executed in 0.50 secs 1219s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/nonce-tcp/.dirs/home 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/nonce-tcp/.dirs/cache 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/nonce-tcp/.dirs/system-config1:/tmp/test_gdbus-peer_69ZBC3/gdbus/nonce-tcp/.dirs/system-config2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/nonce-tcp/.dirs/config 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/nonce-tcp/.dirs/system-data1:/tmp/test_gdbus-peer_69ZBC3/gdbus/nonce-tcp/.dirs/system-data2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/nonce-tcp/.dirs/data 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/nonce-tcp/.dirs/state 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_69ZBC3/gdbus/nonce-tcp/.dirs/runtime 1219s ok 3 /gdbus/nonce-tcp 1219s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/tcp-anonymous/.dirs/home 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/tcp-anonymous/.dirs/cache 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/tcp-anonymous/.dirs/system-config1:/tmp/test_gdbus-peer_69ZBC3/gdbus/tcp-anonymous/.dirs/system-config2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/tcp-anonymous/.dirs/config 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/tcp-anonymous/.dirs/system-data1:/tmp/test_gdbus-peer_69ZBC3/gdbus/tcp-anonymous/.dirs/system-data2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/tcp-anonymous/.dirs/data 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/tcp-anonymous/.dirs/state 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_69ZBC3/gdbus/tcp-anonymous/.dirs/runtime 1219s ok 4 /gdbus/tcp-anonymous 1219s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/credentials/.dirs/home 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/credentials/.dirs/cache 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/credentials/.dirs/system-config1:/tmp/test_gdbus-peer_69ZBC3/gdbus/credentials/.dirs/system-config2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/credentials/.dirs/config 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/credentials/.dirs/system-data1:/tmp/test_gdbus-peer_69ZBC3/gdbus/credentials/.dirs/system-data2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/credentials/.dirs/data 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/credentials/.dirs/state 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_69ZBC3/gdbus/credentials/.dirs/runtime 1219s ok 5 /gdbus/credentials 1219s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/codegen-peer-to-peer/.dirs/home 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/codegen-peer-to-peer/.dirs/cache 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/codegen-peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_69ZBC3/gdbus/codegen-peer-to-peer/.dirs/system-config2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/codegen-peer-to-peer/.dirs/config 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/codegen-peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_69ZBC3/gdbus/codegen-peer-to-peer/.dirs/system-data2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/codegen-peer-to-peer/.dirs/data 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/codegen-peer-to-peer/.dirs/state 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_69ZBC3/gdbus/codegen-peer-to-peer/.dirs/runtime 1219s # Testing with unix:dir address 1219s # Machine ID: e433041e1a3e425284308d6c4c90e09a 1220s ok 6 /gdbus/codegen-peer-to-peer 1220s # slow test /gdbus/codegen-peer-to-peer executed in 1.10 secs 1220s # Start of peer-to-peer tests 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/signals/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/signals/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/signals/.dirs/system-config1:/tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/signals/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/signals/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/signals/.dirs/system-data1:/tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/signals/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/signals/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/signals/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/signals/.dirs/runtime 1220s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1620 1220s # Testing with unix:dir address 1220s ok 7 /gdbus/peer-to-peer/signals 1220s # Start of invalid tests 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/server/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/server/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/server/.dirs/system-config1:/tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/server/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/server/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/server/.dirs/system-data1:/tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/server/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/server/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/server/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/server/.dirs/runtime 1220s ok 8 /gdbus/peer-to-peer/invalid/server 1220s # Start of conn tests 1220s # Start of stream tests 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config1:/tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data1:/tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/runtime 1220s ok 9 /gdbus/peer-to-peer/invalid/conn/stream/async 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config1:/tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data1:/tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/runtime 1220s ok 10 /gdbus/peer-to-peer/invalid/conn/stream/sync 1220s # End of stream tests 1220s # Start of addr tests 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config1:/tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data1:/tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/runtime 1220s ok 11 /gdbus/peer-to-peer/invalid/conn/addr/async 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config1:/tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data1:/tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_69ZBC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/runtime 1220s ok 12 /gdbus/peer-to-peer/invalid/conn/addr/sync 1220s # End of addr tests 1220s # End of conn tests 1220s # End of invalid tests 1220s # End of peer-to-peer tests 1220s # End of gdbus tests 1220s TAP version 14 1220s # random seed: R02S3eb6c1a4838766778023e0e2df8e1f04 1220s 1..18 1220s # Start of cancellable tests 1220s ok 1 /cancellable/multiple-concurrent # SKIP Not running timing heavy test 1220s ok 2 /cancellable/null 1220s ok 3 /cancellable/connect-data-is-destroyed-on-disconnect-and-dispose 1220s # /cancellable/connect-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 1220s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 1220s ok 4 /cancellable/connect-to-disposing-callback 1220s ok 5 /cancellable/connect-cancelled-data-is-destroyed 1220s # Toggle reference callback for GCancellable (0x2aa34cd07e0), last: 1 1220s # Toggle reference callback for GCancellable (0x2aa34cd07e0), last: 0 1220s # Toggle reference callback for GCancellable (0x2aa34cd07e0), last: 1 1220s ok 6 /cancellable/connect-to-disposing-callback-with-toggle-reference 1220s # /cancellable/connect-cancelled-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 1220s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 1220s ok 7 /cancellable/connect-cancelled-to-disposing-callback 1220s ok 8 /cancellable/connect-cancelled-with-destroy-func-disposing-cancellable 1220s # Toggle reference callback for GCancellable (0x2aa34cd07e0), last: 1 1220s # Toggle reference callback for GCancellable (0x2aa34cd07e0), last: 0 1220s # Toggle reference callback for GCancellable (0x2aa34cd07e0), last: 1 1220s # Toggle reference callback for GCancellable (0x2aa34cd07e0), last: 0 1220s # Toggle reference callback for GCancellable (0x2aa34cd07e0), last: 1 1220s ok 9 /cancellable/connect-cancelled-to-disposing-callback-with-toggle-reference 1220s # /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 1220s ok - glib/gdbus-peer.test 1220s # Running test: glib/cancellable.test 1220s ok 10 /cancellable/disconnect-on-cancelled-callback-hangs 1220s # /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 1220s ok 11 /cancellable/resets-on-cancel-callback-hangs 1220s ok 12 /cancellable/poll-fd 1220s # /cancellable/poll-fd-cancelled summary: Tests that cancellation wakes up a pollable FD on creation 1220s ok 13 /cancellable/poll-fd-cancelled 1220s # /cancellable/poll-fd-cancelled-threaded summary: Tests that a cancellation wakes up a pollable FD 1221s ok 14 /cancellable/poll-fd-cancelled-threaded 1221s # /cancellable/cancel-reset-races summary: Tests threads racing for cancelling and resetting a GCancellable 1221s ok 15 /cancellable/cancel-reset-races 1221s # /cancellable/cancel-reset-connect-races summary: Tests threads racing for cancelling, connecting and disconnecting and resetting a GCancellable 1221s ok 16 /cancellable/cancel-reset-connect-races 1221s # End of cancellable tests 1221s # Start of cancellable-source tests 1221s # /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) 1221s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1841 1221s # Executing: glib/cancellable.test 1221s ok 17 /cancellable-source/threaded-dispose 1221s # /cancellable-source/can-be-fired-multiple-times summary: Test a cancellable source callback can be called multiple times 1221s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/774 1221s ok 18 /cancellable-source/can-be-fired-multiple-times 1221s # End of cancellable-source tests 1221s ok - glib/cancellable.test 1221s # Running test: glib/signalgroup.test 1221s TAP version 14 1221s # random seed: R02S6d1c90dd0ece26e141c97e8c47364193 1221s 1..9 1221s # Start of GObject tests 1221s # Start of SignalGroup tests 1221s ok 1 /GObject/SignalGroup/invalid 1221s ok 2 /GObject/SignalGroup/simple 1221s ok 3 /GObject/SignalGroup/changing-target 1221s ok 4 /GObject/SignalGroup/blocking 1221s ok 5 /GObject/SignalGroup/weak-ref-target 1221s ok 6 /GObject/SignalGroup/connect-object 1221s ok 7 /GObject/SignalGroup/signal-parsing 1221s ok 8 /GObject/SignalGroup/properties 1221s ok 9 /GObject/SignalGroup/interface 1221s # Start of signal-parsing tests 1221s # End of signal-parsing tests 1221s # End of SignalGroup tests 1221s # End of GObject tests 1221s ok - glib/signalgroup.test 1221s # Running test: glib/markup.test 1221s ok - glib/markup.test 1221s # Running test: glib/1bit-mutex.test 1221s TAP version 14 1221s # random seed: R02S7784745fc2472b8dd7d9630c0176b22d 1221s 1..1 1221s # Start of markup tests 1221s ok 1 /markup/stack 1221s # End of markup tests 1221s TAP version 14 1221s # random seed: R02Sa8c9bffea3f924e8d7329cbf45c80f85 1221s 1..2 1221s # Start of glib tests 1221s # Start of 1bit-mutex tests 1224s ok 1 /glib/1bit-mutex/int 1224s # slow test /glib/1bit-mutex/int executed in 2.83 secs 1226s # Executing: glib/1bit-mutex.test 1227s ok - glib/1bit-mutex.test 1227s ok 2 /glib/1bit-mutex/pointer 1227s # slow test /glib/1bit-mutex/pointer executed in 2.89 secs 1227s # End of 1bit-mutex tests 1227s # End of glib tests 1227s # Running test: glib/base64.test 1227s TAP version 14 1227s # random seed: R02S71405e0a917ced9f6f9a7cc9f8f887a0 1227s 1..28 1227s # Start of base64 tests 1227s ok 1 /base64/encode 1227s ok 2 /base64/decode 1227s ok 3 /base64/decode-inplace 1227s ok 4 /base64/encode-decode 1227s # Start of full tests 1227s ok 5 /base64/full/1 1227s ok 6 /base64/full/2 1227s ok 7 /base64/full/3 1227s ok 8 /base64/full/4 1227s # End of full tests 1227s # Start of encode tests 1227s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1227s ok 9 /base64/encode/empty 1227s # Start of incremental tests 1227s # Start of small-block tests 1227s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1227s ok 10 /base64/encode/incremental/small-block/1 1227s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1227s ok 11 /base64/encode/incremental/small-block/2 1227s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1227s ok 12 /base64/encode/incremental/small-block/3 1227s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1227s ok 13 /base64/encode/incremental/small-block/4 1227s # End of small-block tests 1227s # End of incremental tests 1227s # End of encode tests 1227s # Start of incremental tests 1227s # Start of nobreak tests 1227s ok 14 /base64/incremental/nobreak/1 1227s ok 15 /base64/incremental/nobreak/2 1227s ok 16 /base64/incremental/nobreak/3 1227s ok 17 /base64/incremental/nobreak/4-a 1227s ok 18 /base64/incremental/nobreak/4-b 1227s ok 19 /base64/incremental/nobreak/4-c 1227s # End of nobreak tests 1227s # Start of break tests 1227s ok 20 /base64/incremental/break/1 1227s ok 21 /base64/incremental/break/2 1227s ok 22 /base64/incremental/break/3 1227s # End of break tests 1227s # Start of smallblock tests 1227s ok 23 /base64/incremental/smallblock/1 1227s ok 24 /base64/incremental/smallblock/2 1227s ok 25 /base64/incremental/smallblock/3 1227s ok 26 /base64/incremental/smallblock/4 1227s # End of smallblock tests 1227s # End of incremental tests 1227s # Start of decode tests 1227s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1227s ok 27 /base64/decode/empty 1227s # End of decode tests 1227s # Start of encode-decode tests 1227s # Vector 0: 1227s # Vector 1: f 1227s # Vector 2: fo 1227s # Vector 3: foo 1227s # Vector 4: foob 1227s # Vector 5: fooba 1227s # Vector 6: foobar 1227s ok 28 /base64/encode-decode/rfc4648 1227s # End of encode-decode tests 1227s # End of base64 tests 1227s ok - glib/base64.test 1227s # Running test: glib/union-info.test 1227s TAP version 14 1227s ok - glib/union-info.test 1227s # Running test: glib/memory-output-stream.test 1227s ok - glib/memory-output-stream.test 1227s # Running test: glib/macros-c-89.test 1227s ok - glib/macros-c-89.test 1227s # Running test: glib/memory-monitor-portal.test 1227s # random seed: R02S8604253b3604880951ffbf894a195de3 1227s 1..2 1227s # Start of union-info tests 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_CPABC3/union-info/basic/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_CPABC3/union-info/basic/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_CPABC3/union-info/basic/.dirs/system-config1:/tmp/test_union-info_CPABC3/union-info/basic/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_CPABC3/union-info/basic/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_CPABC3/union-info/basic/.dirs/system-data1:/tmp/test_union-info_CPABC3/union-info/basic/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_CPABC3/union-info/basic/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_CPABC3/union-info/basic/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_CPABC3/union-info/basic/.dirs/runtime 1227s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1227s # /union-info/basic summary: Test basic properties of GIUnionInfo 1227s ok 1 /union-info/basic 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_CPABC3/union-info/methods/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_CPABC3/union-info/methods/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_CPABC3/union-info/methods/.dirs/system-config1:/tmp/test_union-info_CPABC3/union-info/methods/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_CPABC3/union-info/methods/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_CPABC3/union-info/methods/.dirs/system-data1:/tmp/test_union-info_CPABC3/union-info/methods/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_CPABC3/union-info/methods/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_CPABC3/union-info/methods/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_CPABC3/union-info/methods/.dirs/runtime 1227s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1227s # /union-info/methods summary: Test retrieving methods from GIUnionInfo 1227s ok 2 /union-info/methods 1227s # End of union-info tests 1227s TAP version 14 1227s # random seed: R02Sad7de29bf18b612d1c51f8131634a6ad 1227s 1..10 1227s # Start of memory-output-stream tests 1227s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540423 1227s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=720080 1227s ok 1 /memory-output-stream/truncate 1227s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540459 1227s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540461 1227s ok 2 /memory-output-stream/get-data-size 1227s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=605733 1227s ok 3 /memory-output-stream/properties 1227s ok 4 /memory-output-stream/write-bytes 1227s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2471 1227s ok 5 /memory-output-stream/write-null 1227s ok 6 /memory-output-stream/writev 1227s ok 7 /memory-output-stream/writev_nonblocking 1227s ok 8 /memory-output-stream/steal_as_bytes 1227s # Start of seek tests 1227s ok 9 /memory-output-stream/seek/fixed 1227s ok 10 /memory-output-stream/seek/resizable 1227s # End of seek tests 1227s # End of memory-output-stream tests 1227s TAP version 14 1227s # random seed: R02S633396a8c46cd3bef1a68fac71d5598c 1227s 1..4 1227s # Start of C tests 1227s ok 1 /C/standard-89 1227s # End of C tests 1227s # Start of alignof tests 1227s ok 2 /alignof/fallback 1227s # End of alignof tests 1227s # Start of assert tests 1227s ok 3 /assert/static 1227s # End of assert tests 1227s # Start of struct tests 1227s ok 4 /struct/sizeof_member 1227s # End of struct tests 1227s TAP version 13 1227s ok 1 __main__.TestLowMemoryMonitorPortal.test_low_memory_warning_portal_signal # SKIP xdg-desktop-portal not available 1227s 1..1 1227s ok - glib/memory-monitor-portal.test 1227s # Running test: glib/g-icon.test 1227s TAP version 14 1227s # random seed: R02Sad382b8eba2e3431c692ce801e1f20a4 1227s 1..6 1227s # Start of icons tests 1227s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1227s ok 1 /icons/to-string 1227s ok 2 /icons/serialize 1227s ok 3 /icons/themed 1227s ok 4 /icons/emblemed 1227s ok - glib/g-icon.test 1227s # Running test: glib/gdbus-address-get-session.test 1227s ok - glib/gdbus-address-get-session.test 1227s # Running test: glib/reference.test 1227s ok 5 /icons/file 1227s ok 6 /icons/bytes 1227s # End of icons tests 1227s TAP version 14 1227s # random seed: R02Sac00f9643ce00c3c48e3b6723ac7554d 1227s 1..2 1227s # Start of gdbus tests 1227s ok 1 /gdbus/x11-autolaunch 1227s ok 2 /gdbus/xdg-runtime 1227s # End of gdbus tests 1227s TAP version 14 1227s # random seed: R02Sa22bdc59a6c17efbbd09a699437775a7 1227s 1..29 1227s # Start of type tests 1227s ok 1 /type/fundamentals 1227s ok 2 /type/qdata 1227s ok 3 /type/query 1227s ok 4 /type/class-private 1227s # End of type tests 1227s # Start of object tests 1227s ok 5 /object/clear 1227s ok 6 /object/clear-function 1227s ok 7 /object/set 1227s ok 8 /object/set-function 1227s ok 9 /object/value 1227s ok 10 /object/initially-unowned 1227s ok 11 /object/weak-pointer 1227s ok 12 /object/weak-ref 1227s ok 13 /object/toggle-ref 1227s ok 14 /object/qdata 1227s ok 15 /object/qdata2 1227s # Start of set tests 1227s # /object/set/derived-type summary: Check that g_set_object() doesn’t give strict aliasing warnings when used on types derived from GObject 1227s ok 16 /object/set/derived-type 1227s # End of set tests 1227s # Start of weak-pointer tests 1227s ok 17 /object/weak-pointer/clear 1227s ok 18 /object/weak-pointer/clear-function 1227s ok 19 /object/weak-pointer/set 1227s ok 20 /object/weak-pointer/set-function 1227s # End of weak-pointer tests 1227s # Start of weak-ref tests 1227s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1227s # /object/weak-ref/on-dispose summary: Test that a weak ref set during dispose vfunc is cleared 1227s ok 21 /object/weak-ref/on-dispose 1227s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/865 1227s # /object/weak-ref/on-run-dispose summary: Test that a weak ref is cleared on g_object_run_dispose() 1227s ok 22 /object/weak-ref/on-run-dispose 1227s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1227s # /object/weak-ref/on-toggle-notify summary: Test that a weak ref set on toggle notify is cleared 1227s ok 23 /object/weak-ref/on-toggle-notify 1227s ok 24 /object/weak-ref/in-toggle-notify 1227s ok 25 /object/weak-ref/many 1227s # Start of concurrent tests 1227s ok 26 /object/weak-ref/concurrent/0 1227s ok 27 /object/weak-ref/concurrent/1 1227s # End of concurrent tests 1227s # End of weak-ref tests 1227s # Start of toggle-ref tests 1227s ok 28 /object/toggle-ref/ref-on-dispose 1227s ok 29 /object/toggle-ref/ref-and-notify-on-dispose 1227s # End of toggle-ref tests 1227s # End of object tests 1227s TAP version 14 1227s # random seed: R02Sb53adfeb924c8686e1b4e118b4a1c8cf 1227s 1..2 1227s # Start of gtask tests 1227s # 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. 1227s ok 1 /gtask/name 1227s # Start of name tests 1227s ok - glib/reference.test 1227s # Running test: glib/cxx.test 1227s # 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. 1227s ok 2 /gtask/name/macro-wrapper 1227s # End of name tests 1227s # End of gtask tests 1227s TAP version 14 1227s # random seed: R02S2f56793ea75b201cfddfa72c382d5693 1227s 1..1 1227s # Start of gobject tests 1227s # *** emitting foo on a TestA instance 1227s # Expecting: TestA::foo,TestI::foo 1227s # Got: TestA::foo,TestI::foo 1227s # *** emitting bar on a TestA instance 1227s # Expecting: TestA::bar 1227s # Got: TestA::bar 1227s # *** emitting baz on a TestA instance 1227s # Expecting: TestA::baz 1227s # Got: TestA::baz 1227s # *** emitting foo on a TestB instance 1227s # Expecting: TestB::foo,TestA::foo,TestI::foo 1227s # Got: TestB::foo,TestA::foo,TestI::foo 1227s # *** emitting bar on a TestB instance 1227s # Expecting: TestB::bar,TestA::bar 1227s # Got: TestB::bar,TestA::bar 1227s # *** emitting baz on a TestB instance 1227s # Expecting: TestB::baz,TestA::baz 1227s # Got: TestB::baz,TestA::baz 1227s # *** emitting foo on a TestC instance 1227s # Expecting: TestC::foo,TestB::foo,TestA::foo,TestI::foo 1227s # Got: TestC::foo,TestB::foo,TestA::foo,TestI::foo 1227s # *** emitting bar on a TestC instance 1227s # Expecting: TestC::bar,TestB::bar,TestA::bar 1227s # Got: TestC::bar,TestB::bar,TestA::bar 1227s # *** emitting baz on a TestC instance 1227s # Expecting: TestC::baz,TestB::baz,TestA::baz 1227s # Got: TestC::baz,TestB::baz,TestA::baz 1227s ok 1 /gobject/override 1227s # End of gobject tests 1227s TAP version 14 1227s ok - glib/cxx.test 1227s # Running test: glib/override.test 1227s ok - glib/override.test 1227s # Running test: glib/gdbus-serialization.test 1227s ok - glib/gdbus-serialization.test 1227s # random seed: R02S6d99a80f89066edf3b6aa180f4286b43 1227s 1..18 1227s # Start of gdbus tests 1227s # Start of message-serialize tests 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/basic/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/basic/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/basic/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/basic/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/basic/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/basic/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/basic/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/basic/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/basic/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/basic/.dirs/runtime 1227s ok 1 /gdbus/message-serialize/basic 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/complex/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/complex/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/complex/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/complex/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/complex/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/complex/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/complex/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/complex/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/complex/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/complex/.dirs/runtime 1227s ok 2 /gdbus/message-serialize/complex 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/invalid/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/invalid/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/invalid/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/invalid/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/invalid/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/invalid/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/invalid/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/invalid/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/invalid/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/invalid/.dirs/runtime 1227s ok 3 /gdbus/message-serialize/invalid 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/.dirs/runtime 1227s ok 4 /gdbus/message-serialize/header-checks 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/double-array/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/double-array/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/double-array/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/double-array/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/double-array/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/double-array/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/double-array/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/double-array/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/double-array/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/double-array/.dirs/runtime 1227s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=732754 1227s ok 5 /gdbus/message-serialize/double-array 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/empty-structure/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/empty-structure/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/empty-structure/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/empty-structure/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/empty-structure/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/empty-structure/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/empty-structure/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/empty-structure/.dirs/runtime 1227s # /gdbus/message-serialize/empty-structure summary: Test that empty structures are rejected when serializing. 1227s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1227s ok 6 /gdbus/message-serialize/empty-structure 1227s # Start of header-checks tests 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/valid/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/valid/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/valid/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/valid/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/valid/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/valid/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/valid/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/valid/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/valid/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-serialize/header-checks/valid/.dirs/runtime 1227s # /gdbus/message-serialize/header-checks/valid summary: Test that validation allows well-formed messages of all the different types 1227s ok 7 /gdbus/message-serialize/header-checks/valid 1227s # End of header-checks tests 1227s # End of message-serialize tests 1227s # Start of message-parse tests 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/runtime 1227s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=673612 1227s ok 8 /gdbus/message-parse/empty-arrays-of-arrays 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/non-signature-header/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/non-signature-header/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/non-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/non-signature-header/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/non-signature-header/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/non-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/non-signature-header/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/non-signature-header/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/non-signature-header/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/non-signature-header/.dirs/runtime 1227s ok 9 /gdbus/message-parse/non-signature-header 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-signature-header/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-signature-header/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-signature-header/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-signature-header/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-signature-header/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-signature-header/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-signature-header/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-signature-header/.dirs/runtime 1227s ok 10 /gdbus/message-parse/empty-signature-header 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/multiple-signature-header/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/multiple-signature-header/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/multiple-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/multiple-signature-header/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/multiple-signature-header/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/multiple-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/multiple-signature-header/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/multiple-signature-header/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/multiple-signature-header/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/multiple-signature-header/.dirs/runtime 1227s ok 11 /gdbus/message-parse/multiple-signature-header 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/over-long-signature-header/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/over-long-signature-header/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/over-long-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/over-long-signature-header/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/over-long-signature-header/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/over-long-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/over-long-signature-header/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/over-long-signature-header/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/over-long-signature-header/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/over-long-signature-header/.dirs/runtime 1227s ok 12 /gdbus/message-parse/over-long-signature-header 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-header-nesting/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-header-nesting/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-header-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-header-nesting/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-header-nesting/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-header-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-header-nesting/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-header-nesting/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-header-nesting/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-header-nesting/.dirs/runtime 1227s ok 13 /gdbus/message-parse/deep-header-nesting 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-body-nesting/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-body-nesting/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-body-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-body-nesting/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-body-nesting/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-body-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-body-nesting/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-body-nesting/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-body-nesting/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/deep-body-nesting/.dirs/runtime 1227s ok 14 /gdbus/message-parse/deep-body-nesting 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/truncated/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/truncated/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/truncated/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/truncated/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/truncated/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/truncated/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/truncated/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/truncated/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/truncated/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/truncated/.dirs/runtime 1227s # /gdbus/message-parse/truncated summary: Test that truncated messages are properly rejected. 1227s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2528 1227s ok 15 /gdbus/message-parse/truncated 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-structure/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-structure/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-structure/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-structure/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-structure/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-structure/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-structure/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/empty-structure/.dirs/runtime 1227s # /gdbus/message-parse/empty-structure summary: Test that empty structures are rejected when parsing. 1227s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1227s ok 16 /gdbus/message-parse/empty-structure 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/missing-header/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/missing-header/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/missing-header/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/missing-header/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/missing-header/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/missing-header/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/missing-header/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/missing-header/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/missing-header/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/missing-header/.dirs/runtime 1227s # /gdbus/message-parse/missing-header summary: Test that missing (required) headers prompt an error. 1227s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1227s ok 17 /gdbus/message-parse/missing-header 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/invalid-header-type/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/invalid-header-type/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/invalid-header-type/.dirs/system-config1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/invalid-header-type/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/invalid-header-type/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/invalid-header-type/.dirs/system-data1:/tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/invalid-header-type/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/invalid-header-type/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/invalid-header-type/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_YSN0B3/gdbus/message-parse/invalid-header-type/.dirs/runtime 1227s # /gdbus/message-parse/invalid-header-type summary: Test that the type of well-known headers is checked. 1227s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1227s ok 18 /gdbus/message-parse/invalid-header-type 1227s # End of message-parse tests 1227s # End of gdbus tests 1227s TAP version 14 1227s # random seed: R02Scbd565edea4b22bc9672fd28666e8321 1227s 1..2 1227s # Start of tls-connection tests 1227s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1227s ok 1 /tls-connection/get-tls-channel-binding 1227s ok 2 /tls-connection/get-dtls-channel-binding 1227s # End of tls-connection tests 1227s TAP version 14 1227s # random seed: R02S40e9919513519bda91e02a110878c04f 1227s 1..1 1227s # Start of portal-support tests 1227s # Start of flatpak tests 1227s # Running test: glib/tls-bindings.test 1227s ok - glib/tls-bindings.test 1227s # Running test: glib/portal-support-flatpak-network-only.test 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-network-only_0G8ZB3/portal-support/flatpak/network/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-network-only_0G8ZB3/portal-support/flatpak/network/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-network-only_0G8ZB3/portal-support/flatpak/network/.dirs/system-config1:/tmp/test_portal-support-flatpak-network-only_0G8ZB3/portal-support/flatpak/network/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-network-only_0G8ZB3/portal-support/flatpak/network/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-network-only_0G8ZB3/portal-support/flatpak/network/.dirs/system-data1:/tmp/test_portal-support-flatpak-network-only_0G8ZB3/portal-support/flatpak/network/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-network-only_0G8ZB3/portal-support/flatpak/network/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-network-only_0G8ZB3/portal-support/flatpak/network/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-network-only_0G8ZB3/portal-support/flatpak/network/.dirs/runtime 1227s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-network-only_0G8ZB3/portal-support/flatpak/network/.dirs/runtime/.flatpak-info 1227s ok 1 /portal-support/flatpak/network 1227s # End of flatpak tests 1227s # End of portal-support tests 1227s TAP version 14 1227s # random seed: R02S6f06fdd5e055b14f9b61437fe284bbbc 1227s 1..41 1227s # Start of utils tests 1227s ok 1 /utils/language-names 1227s # Testing locale ‘en’ 1227s # Testing locale ‘sr@latin’ 1227s # Testing locale ‘fr_BE’ 1227s # Testing locale ‘sr_SR@latin’ 1227s # Testing locale ‘sr_SR@latin.UTF-8’ 1227s # Testing locale ‘sr@latin_invalid’ 1227s # Testing locale ‘sr.UTF-8@latin’ 1227s # Testing locale ‘sr.UTF-8_latin’ 1227s # Testing locale ‘sr.UTF-8@latin_invalid’ 1227s ok 2 /utils/locale-variants 1227s ok 3 /utils/version 1227s ok 4 /utils/appname 1227s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1227s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1227s ok 5 /utils/prgname-thread-safety 1227s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1227s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1227s ok 6 /utils/tmpdir 1227s ok 7 /utils/basic_bits 1227s ok 8 /utils/bits 1227s ok 9 /utils/swap 1227s ok 10 /utils/find-program 1227s ok 11 /utils/find-program-for-path 1227s ok 12 /utils/debug 1227s ok 13 /utils/codeset 1227s ok 14 /utils/codeset2 1227s ok 15 /utils/console-charset 1227s ok 16 /utils/gettext 1227s ok 17 /utils/username 1227s ok 18 /utils/realname 1227s ok 19 /utils/hostname 1227s ok 20 /utils/xdgdirs 1227s ok 21 /utils/specialdir 1227s # NAME: Ubuntu 1227s ok 22 /utils/os-info 1227s ok 23 /utils/clear-pointer 1227s ok 24 /utils/clear-pointer-cast 1227s ok 25 /utils/take-pointer 1227s ok 26 /utils/clear-source 1227s ok 27 /utils/misc-mem 1227s # /utils/aligned-mem summary: Aligned memory allocator 1227s # Alignment must not be zero 1227s # Alignment must be a power of two 1227s # Alignment must be a multiple of sizeof(void*) 1227s ok 28 /utils/aligned-mem 1227s # /utils/free-sized summary: Check that g_free_sized() works 1227s ok 29 /utils/free-sized 1227s ok 30 /utils/nullify 1227s ok 31 /utils/atexit 1227s ok 32 /utils/check-setuid 1227s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1227s ok 33 /utils/int-limits 1227s ok 34 /utils/clear-list 1227s ok 35 /utils/clear-slist 1227s ok 36 /utils/steal-handle-id 1227s # Start of specialdir tests 1227s ok 37 /utils/specialdir/desktop 1227s # End of specialdir tests 1227s # Start of clear-pointer tests 1227s ok 38 /utils/clear-pointer/side-effects 1227s # End of clear-pointer tests 1227s # Start of aligned-mem tests 1227s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1227s ok 39 /utils/aligned-mem/alignment 1227s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1227s ok 40 /utils/aligned-mem/zeroed 1227s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1227s ok 41 /utils/aligned-mem/free-sized 1227s # Start of subprocess tests 1227s # End of subprocess tests 1227s # End of aligned-mem tests 1227s # End of utils tests 1227s TAP version 14 1227s # random seed: R02S2c7630f1967fdd9d7b50d8e224389eed 1227s 1..36 1227s # Start of utf8 tests 1227s # Start of perf tests 1227s # Start of get_char tests 1227s # max perf: inf MB/s 1227s ok 1 /utf8/perf/get_char/ascii 1227s # max perf: inf MB/s 1227s ok 2 /utf8/perf/get_char/latin1 1227s # max perf: 160.0 MB/s 1227s ok 3 /utf8/perf/get_char/cyrillic 1227s # max perf: inf MB/s 1227s ok 4 /utf8/perf/get_char/han 1227s # End of get_char tests 1227s # Start of get_char-backwards tests 1227s # max perf: inf MB/s 1227s ok 5 /utf8/perf/get_char-backwards/ascii 1227s # max perf: inf MB/s 1227s ok 6 /utf8/perf/get_char-backwards/latin1 1227s ok - glib/portal-support-flatpak-network-only.test 1227s # Running test: glib/utils-c-99.test 1227s ok - glib/utils-c-99.test 1227s # Running test: glib/utf8-performance.test 1227s # max perf: 160.0 MB/s 1227s ok 7 /utf8/perf/get_char-backwards/cyrillic 1227s # max perf: 156.0 MB/s 1227s ok 8 /utf8/perf/get_char-backwards/han 1227s # End of get_char-backwards tests 1227s # Start of get_char_validated tests 1227s # max perf: 43.0 MB/s 1227s ok 9 /utf8/perf/get_char_validated/ascii 1227s # max perf: inf MB/s 1227s ok 10 /utf8/perf/get_char_validated/latin1 1227s # max perf: 160.0 MB/s 1227s ok 11 /utf8/perf/get_char_validated/cyrillic 1227s # max perf: inf MB/s 1227s ok 12 /utf8/perf/get_char_validated/han 1227s # End of get_char_validated tests 1227s # Start of utf8_to_ucs4 tests 1227s # max perf: 43.0 MB/s 1227s ok 13 /utf8/perf/utf8_to_ucs4/ascii 1227s # max perf: 67.0 MB/s 1227s ok 14 /utf8/perf/utf8_to_ucs4/latin1 1227s # max perf: 160.0 MB/s 1227s ok 15 /utf8/perf/utf8_to_ucs4/cyrillic 1227s # max perf: 156.0 MB/s 1227s ok 16 /utf8/perf/utf8_to_ucs4/han 1227s # End of utf8_to_ucs4 tests 1227s # Start of utf8_to_ucs4-sized tests 1227s # max perf: inf MB/s 1227s ok 17 /utf8/perf/utf8_to_ucs4-sized/ascii 1227s # max perf: inf MB/s 1227s ok 18 /utf8/perf/utf8_to_ucs4-sized/latin1 1227s # max perf: 160.0 MB/s 1227s ok 19 /utf8/perf/utf8_to_ucs4-sized/cyrillic 1227s # max perf: 156.0 MB/s 1227s ok 20 /utf8/perf/utf8_to_ucs4-sized/han 1227s # End of utf8_to_ucs4-sized tests 1227s # Start of utf8_to_ucs4_fast tests 1227s # max perf: inf MB/s 1227s ok - glib/utf8-performance.test 1227s # Running test: glib/object-info.test 1227s ok 21 /utf8/perf/utf8_to_ucs4_fast/ascii 1227s # max perf: 67.0 MB/s 1227s ok 22 /utf8/perf/utf8_to_ucs4_fast/latin1 1227s # max perf: 160.0 MB/s 1227s ok 23 /utf8/perf/utf8_to_ucs4_fast/cyrillic 1227s # max perf: inf MB/s 1227s ok 24 /utf8/perf/utf8_to_ucs4_fast/han 1227s # End of utf8_to_ucs4_fast tests 1227s # Start of utf8_to_ucs4_fast-sized tests 1227s # max perf: inf MB/s 1227s ok 25 /utf8/perf/utf8_to_ucs4_fast-sized/ascii 1227s # max perf: inf MB/s 1227s ok 26 /utf8/perf/utf8_to_ucs4_fast-sized/latin1 1227s # max perf: inf MB/s 1227s ok 27 /utf8/perf/utf8_to_ucs4_fast-sized/cyrillic 1227s # max perf: inf MB/s 1227s ok 28 /utf8/perf/utf8_to_ucs4_fast-sized/han 1227s # End of utf8_to_ucs4_fast-sized tests 1227s # Start of utf8_validate tests 1227s # max perf: 43.0 MB/s 1227s ok 29 /utf8/perf/utf8_validate/ascii 1227s # max perf: 67.0 MB/s 1227s ok 30 /utf8/perf/utf8_validate/latin1 1227s # max perf: inf MB/s 1227s ok 31 /utf8/perf/utf8_validate/cyrillic 1227s # max perf: inf MB/s 1227s ok 32 /utf8/perf/utf8_validate/han 1227s # End of utf8_validate tests 1227s # Start of utf8_validate-sized tests 1227s # max perf: inf MB/s 1227s ok 33 /utf8/perf/utf8_validate-sized/ascii 1227s # max perf: inf MB/s 1227s ok 34 /utf8/perf/utf8_validate-sized/latin1 1227s # max perf: 160.0 MB/s 1227s ok 35 /utf8/perf/utf8_validate-sized/cyrillic 1227s # max perf: inf MB/s 1227s ok 36 /utf8/perf/utf8_validate-sized/han 1227s # End of utf8_validate-sized tests 1227s # End of perf tests 1227s # End of utf8 tests 1227s TAP version 14 1227s # random seed: R02S3654ec9df53f1b824bf1640f40b5f6f1 1227s 1..2 1227s # Start of object-info tests 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_S5V4B3/object-info/find-method-using-interfaces/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_S5V4B3/object-info/find-method-using-interfaces/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_S5V4B3/object-info/find-method-using-interfaces/.dirs/system-config1:/tmp/test_object-info_S5V4B3/object-info/find-method-using-interfaces/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_S5V4B3/object-info/find-method-using-interfaces/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_S5V4B3/object-info/find-method-using-interfaces/.dirs/system-data1:/tmp/test_object-info_S5V4B3/object-info/find-method-using-interfaces/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_S5V4B3/object-info/find-method-using-interfaces/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_S5V4B3/object-info/find-method-using-interfaces/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_S5V4B3/object-info/find-method-using-interfaces/.dirs/runtime 1227s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1227s ok 1 /object-info/find-method-using-interfaces 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_S5V4B3/object-info/find-vfunc-using-interfaces/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_S5V4B3/object-info/find-vfunc-using-interfaces/.dirs/cache 1227s ok - glib/object-info.test 1227s # Running test: glib/gdbus-subscribe.test 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_S5V4B3/object-info/find-vfunc-using-interfaces/.dirs/system-config1:/tmp/test_object-info_S5V4B3/object-info/find-vfunc-using-interfaces/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_S5V4B3/object-info/find-vfunc-using-interfaces/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_S5V4B3/object-info/find-vfunc-using-interfaces/.dirs/system-data1:/tmp/test_object-info_S5V4B3/object-info/find-vfunc-using-interfaces/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_S5V4B3/object-info/find-vfunc-using-interfaces/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_S5V4B3/object-info/find-vfunc-using-interfaces/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_S5V4B3/object-info/find-vfunc-using-interfaces/.dirs/runtime 1227s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1227s ok 2 /object-info/find-vfunc-using-interfaces 1227s # End of object-info tests 1227s TAP version 14 1227s # random seed: R02S72cafcf4298e5583a1eef758080cf8af 1227s 1..24 1227s # Start of gdbus tests 1227s # Start of subscribe tests 1227s # Start of conn tests 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/simple/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/simple/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/simple/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/simple/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/simple/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/simple/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/simple/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/simple/.dirs/runtime 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/conn/simple summary: A broadcast is only received after subscribing to it 1227s # Step 0: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 1: adding subscription 1227s # Sender: (any) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Waiting for AddMatch to be processed 1227s # Step 2: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 2 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 1 /gdbus/subscribe/conn/simple 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/conn/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1227s # Step 0: adding subscription 1227s # Sender: (any) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Waiting for AddMatch to be processed 1227s # Step 1: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 2: emitting signal 1227s # Sender: service 2 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 3: emitting signal 1227s # Sender: service 1227s # Destination: subscriber :1.0 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 4: emitting signal 1227s # Sender: service 2 1227s # Destination: subscriber :1.0 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 1 1227s # Signal received from service 2 :1.2 1227s # Signal received from service 2 :1.2 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 2 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 3 1227s # Signal received from service 2 :1.2 1227s # Signal received from service 2 :1.2 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 4 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 1227s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1227s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1227s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 2 /gdbus/subscribe/conn/broadcast_from_anyone 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/match_twice/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/match_twice/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/match_twice/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/match_twice/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/match_twice/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/match_twice/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/match_twice/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/match_twice/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/conn/match_twice summary: A message matching more than one subscription is received once per subscription 1227s # Step 0: adding subscription 1227s # Sender: service :1.1 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Waiting for AddMatch to be processed 1227s # Step 1: adding subscription 1227s # Sender: (any) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: (any) 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Waiting for AddMatch to be processed 1227s # Step 2: adding subscription 1227s # Sender: (any) 1227s # Path: (any) 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Waiting for AddMatch to be processed 1227s # Step 3: adding subscription 1227s # Sender: service :1.1 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Waiting for AddMatch to be processed 1227s # Step 4: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 4 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 4 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 4 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 4 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 3 /gdbus/subscribe/conn/match_twice 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/conn/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1227s # Step 0: adding subscription 1227s # Sender: service :1.1 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Waiting for AddMatch to be processed 1227s # Step 1: emitting signal 1227s # Sender: attacker 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 2: emitting signal 1227s # Sender: attacker 1227s # Destination: subscriber :1.0 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 3: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 3 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 4 /gdbus/subscribe/conn/limit_by_unique_name 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/conn/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1227s # Step 0: adding subscription 1227s # Sender: :0.this.had.better.not.exist 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Waiting for AddMatch to be processed 1227s # Step 1: emitting signal 1227s # Sender: attacker 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 2: emitting signal 1227s # Sender: attacker 1227s # Destination: subscriber :1.0 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 5 /gdbus/subscribe/conn/nonexistent_unique_name 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /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 1227s # Step 0: claiming bus name 1227s # Name: org.gtk.Test.AlreadyOwned 1227s # Owner: service 1227s # Step 1: adding subscription 1227s # Sender: org.gtk.Test.AlreadyOwned 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Waiting for AddMatch to be processed 1227s # Step 2: adding subscription 1227s # Sender: org.gtk.Test.OwnedLater 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Waiting for AddMatch to be processed 1227s # Step 3: emitting signal 1227s # Sender: attacker 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 4: emitting signal 1227s # Sender: attacker 1227s # Destination: subscriber :1.0 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 5: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 6: claiming bus name 1227s # Name: org.gtk.Test.OwnedLater 1227s # Owner: service 1227s # Step 7: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 5 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 7 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 7 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 1227s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 6 /gdbus/subscribe/conn/limit_by_well_known_name 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/conn/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1227s # Step 0: adding subscription 1227s # Sender: org.freedesktop.DBus 1227s # Path: /org/freedesktop/DBus 1227s # Interface: org.freedesktop.DBus 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Waiting for AddMatch to be processed 1227s # Step 1: emitting signal 1227s # Sender: attacker 1227s # Destination: (broadcast) 1227s # Path: /org/freedesktop/DBus 1227s # Interface: org.freedesktop.DBus 1227s # Member: NameOwnerChanged 1227s # String argument 0: would I lie to you? 1227s # Waiting for signal to reach message bus 1227s # Step 2: emitting signal 1227s # Sender: attacker 1227s # Destination: subscriber :1.0 1227s # Path: /org/freedesktop/DBus 1227s # Interface: org.freedesktop.DBus 1227s # Member: NameOwnerChanged 1227s # Waiting for signal to reach message bus 1227s # Step 3: claiming bus name 1227s # Name: org.gtk.Test.OwnedLater 1227s # Owner: service 1227s # Signal received from message bus org.freedesktop.DBus 1227s # Signal received from (unused) org.freedesktop.DBus via connection 1227s # Path: /org/freedesktop/DBus 1227s # Interface: org.freedesktop.DBus 1227s # Member: NameOwnerChanged 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1227s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 7 /gdbus/subscribe/conn/limit_to_message_bus 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/conn/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1227s # Step 0: claiming bus name 1227s # Name: org.gtk.Test.AlreadyOwned 1227s # Owner: service 1227s # Step 1: adding subscription 1227s # Sender: org.gtk.Test.AlreadyOwned 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Immediately unsubscribing 1227s # Waiting for AddMatch to be processed 1227s # Step 2: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 8 /gdbus/subscribe/conn/unsubscribe_immediately 1227s # End of conn tests 1227s # Start of proxy tests 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/simple/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/simple/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/simple/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/simple/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/simple/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/simple/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/simple/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/simple/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/proxy/simple summary: A broadcast is only received after subscribing to it 1227s # Step 0: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 1: adding subscription 1227s # Sender: (any) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Cannot subscribe via proxy: no bus name 1227s # Waiting for AddMatch to be processed 1227s # Step 2: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 9 /gdbus/subscribe/proxy/simple 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/proxy/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1227s # Step 0: adding subscription 1227s # Sender: (any) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Cannot subscribe via proxy: no bus name 1227s # Waiting for AddMatch to be processed 1227s # Step 1: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 2: emitting signal 1227s # Sender: service 2 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 3: emitting signal 1227s # Sender: service 1227s # Destination: subscriber :1.0 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 4: emitting signal 1227s # Sender: service 2 1227s # Destination: subscriber :1.0 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 10 /gdbus/subscribe/proxy/broadcast_from_anyone 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/match_twice/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/match_twice/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/match_twice/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/match_twice/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/match_twice/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/match_twice/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/match_twice/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/match_twice/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/proxy/match_twice summary: A message matching more than one subscription is received once per subscription 1227s # Step 0: adding subscription 1227s # Sender: service :1.1 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via proxy 1227s # Waiting for AddMatch to be processed 1227s # Step 1: adding subscription 1227s # Sender: (any) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: (any) 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Cannot subscribe via proxy: no bus name 1227s # Waiting for AddMatch to be processed 1227s # Step 2: adding subscription 1227s # Sender: (any) 1227s # Path: (any) 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Cannot subscribe via proxy: no bus name 1227s # Waiting for AddMatch to be processed 1227s # Step 3: adding subscription 1227s # Sender: service :1.1 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via proxy 1227s # Waiting for AddMatch to be processed 1227s # Step 4: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via proxy 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 4 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via proxy 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 4 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 11 /gdbus/subscribe/proxy/match_twice 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/proxy/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1227s # Step 0: adding subscription 1227s # Sender: service :1.1 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via proxy 1227s # Waiting for AddMatch to be processed 1227s # Step 1: emitting signal 1227s # Sender: attacker 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 2: emitting signal 1227s # Sender: attacker 1227s # Destination: subscriber :1.0 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 3: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via proxy 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 3 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 12 /gdbus/subscribe/proxy/limit_by_unique_name 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/proxy/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1227s # Step 0: adding subscription 1227s # Sender: :0.this.had.better.not.exist 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via proxy 1227s # Waiting for AddMatch to be processed 1227s # Step 1: emitting signal 1227s # Sender: attacker 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 2: emitting signal 1227s # Sender: attacker 1227s # Destination: subscriber :1.0 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 13 /gdbus/subscribe/proxy/nonexistent_unique_name 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /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 1227s # Step 0: claiming bus name 1227s # Name: org.gtk.Test.AlreadyOwned 1227s # Owner: service 1227s # Step 1: adding subscription 1227s # Sender: org.gtk.Test.AlreadyOwned 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via proxy 1227s # Waiting for AddMatch to be processed 1227s # Step 2: adding subscription 1227s # Sender: org.gtk.Test.OwnedLater 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via proxy 1227s # Waiting for AddMatch to be processed 1227s # Step 3: emitting signal 1227s # Sender: attacker 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 4: emitting signal 1227s # Sender: attacker 1227s # Destination: subscriber :1.0 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 5: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 6: claiming bus name 1227s # Name: org.gtk.Test.OwnedLater 1227s # Owner: service 1227s # Step 7: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via proxy 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 5 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via proxy 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 7 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via proxy 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 7 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 1227s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 14 /gdbus/subscribe/proxy/limit_by_well_known_name 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/proxy/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1227s # Step 0: adding subscription 1227s # Sender: org.freedesktop.DBus 1227s # Path: /org/freedesktop/DBus 1227s # Interface: org.freedesktop.DBus 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via proxy 1227s # Waiting for AddMatch to be processed 1227s # Step 1: emitting signal 1227s # Sender: attacker 1227s # Destination: (broadcast) 1227s # Path: /org/freedesktop/DBus 1227s # Interface: org.freedesktop.DBus 1227s # Member: NameOwnerChanged 1227s # String argument 0: would I lie to you? 1227s # Waiting for signal to reach message bus 1227s # Step 2: emitting signal 1227s # Sender: attacker 1227s # Destination: subscriber :1.0 1227s # Path: /org/freedesktop/DBus 1227s # Interface: org.freedesktop.DBus 1227s # Member: NameOwnerChanged 1227s # Waiting for signal to reach message bus 1227s # Step 3: claiming bus name 1227s # Name: org.gtk.Test.OwnedLater 1227s # Owner: service 1227s # Signal received from message bus org.freedesktop.DBus 1227s # Signal received from (unused) org.freedesktop.DBus via proxy 1227s # Path: /org/freedesktop/DBus 1227s # Interface: org.freedesktop.DBus 1227s # Member: NameOwnerChanged 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1227s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 15 /gdbus/subscribe/proxy/limit_to_message_bus 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/proxy/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1227s # Step 0: claiming bus name 1227s # Name: org.gtk.Test.AlreadyOwned 1227s # Owner: service 1227s # Step 1: adding subscription 1227s # Sender: org.gtk.Test.AlreadyOwned 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via proxy 1227s # Waiting for AddMatch to be processed 1227s # Step 2: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via proxy 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 2 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 16 /gdbus/subscribe/proxy/unsubscribe_immediately 1227s # End of proxy tests 1227s # Start of parallel tests 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/simple/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/simple/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/simple/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/simple/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/simple/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/simple/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/simple/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/simple/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/parallel/simple summary: A broadcast is only received after subscribing to it 1227s # Step 0: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 1: adding subscription 1227s # Sender: (any) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Cannot subscribe via proxy: no bus name 1227s # Waiting for AddMatch to be processed 1227s # Step 2: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 2 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1227s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 17 /gdbus/subscribe/parallel/simple 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/parallel/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1227s # Step 0: adding subscription 1227s # Sender: (any) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Cannot subscribe via proxy: no bus name 1227s # Waiting for AddMatch to be processed 1227s # Step 1: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 2: emitting signal 1227s # Sender: service 2 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 3: emitting signal 1227s # Sender: service 1227s # Destination: subscriber :1.0 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 4: emitting signal 1227s # Sender: service 2 1227s # Destination: subscriber :1.0 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 1 1227s # Signal received from service 2 :1.2 1227s # Signal received from service 2 :1.2 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 2 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 3 1227s # Signal received from service 2 :1.2 1227s # Signal received from service 2 :1.2 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 4 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 1227s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1227s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1227s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 1227s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 18 /gdbus/subscribe/parallel/broadcast_from_anyone 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/match_twice/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/match_twice/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/match_twice/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/match_twice/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/match_twice/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/match_twice/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/match_twice/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/match_twice/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/parallel/match_twice summary: A message matching more than one subscription is received once per subscription 1227s # Step 0: adding subscription 1227s # Sender: service :1.1 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Subscribing via proxy 1227s # Waiting for AddMatch to be processed 1227s # Step 1: adding subscription 1227s # Sender: (any) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: (any) 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Cannot subscribe via proxy: no bus name 1227s # Waiting for AddMatch to be processed 1227s # Step 2: adding subscription 1227s # Sender: (any) 1227s # Path: (any) 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Cannot subscribe via proxy: no bus name 1227s # Waiting for AddMatch to be processed 1227s # Step 3: adding subscription 1227s # Sender: service :1.1 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Subscribing via proxy 1227s # Waiting for AddMatch to be processed 1227s # Step 4: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 4 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via proxy 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 4 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 4 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via proxy 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 4 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 4 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 4 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 1227s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 19 /gdbus/subscribe/parallel/match_twice 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/parallel/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1227s # Step 0: adding subscription 1227s # Sender: service :1.1 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Subscribing via proxy 1227s # Waiting for AddMatch to be processed 1227s # Step 1: emitting signal 1227s # Sender: attacker 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 2: emitting signal 1227s # Sender: attacker 1227s # Destination: subscriber :1.0 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 3: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 3 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via proxy 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 3 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1227s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 20 /gdbus/subscribe/parallel/limit_by_unique_name 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/parallel/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1227s # Step 0: adding subscription 1227s # Sender: :0.this.had.better.not.exist 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Subscribing via proxy 1227s # Waiting for AddMatch to be processed 1227s # Step 1: emitting signal 1227s # Sender: attacker 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 2: emitting signal 1227s # Sender: attacker 1227s # Destination: subscriber :1.0 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 21 /gdbus/subscribe/parallel/nonexistent_unique_name 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /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 1227s # Step 0: claiming bus name 1227s # Name: org.gtk.Test.AlreadyOwned 1227s # Owner: service 1227s # Step 1: adding subscription 1227s # Sender: org.gtk.Test.AlreadyOwned 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Subscribing via proxy 1227s # Waiting for AddMatch to be processed 1227s # Step 2: adding subscription 1227s # Sender: org.gtk.Test.OwnedLater 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Subscribing via proxy 1227s # Waiting for AddMatch to be processed 1227s # Step 3: emitting signal 1227s # Sender: attacker 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 4: emitting signal 1227s # Sender: attacker 1227s # Destination: subscriber :1.0 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 5: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Step 6: claiming bus name 1227s # Name: org.gtk.Test.OwnedLater 1227s # Owner: service 1227s # Step 7: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 5 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via proxy 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 5 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 7 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via proxy 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 7 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via connection 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 7 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via proxy 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 7 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1227s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 1227s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 1227s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 1227s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 1227s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 22 /gdbus/subscribe/parallel/limit_by_well_known_name 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/parallel/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1227s # Step 0: adding subscription 1227s # Sender: org.freedesktop.DBus 1227s # Path: /org/freedesktop/DBus 1227s # Interface: org.freedesktop.DBus 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Subscribing via proxy 1227s # Waiting for AddMatch to be processed 1227s # Step 1: emitting signal 1227s # Sender: attacker 1227s # Destination: (broadcast) 1227s # Path: /org/freedesktop/DBus 1227s # Interface: org.freedesktop.DBus 1227s # Member: NameOwnerChanged 1227s # String argument 0: would I lie to you? 1227s # Waiting for signal to reach message bus 1227s # Step 2: emitting signal 1227s # Sender: attacker 1227s # Destination: subscriber :1.0 1227s # Path: /org/freedesktop/DBus 1227s # Interface: org.freedesktop.DBus 1227s # Member: NameOwnerChanged 1227s # Waiting for signal to reach message bus 1227s # Step 3: claiming bus name 1227s # Name: org.gtk.Test.OwnedLater 1227s # Owner: service 1227s ok - glib/gdbus-subscribe.test 1227s # Running test: glib/gdbus-close-pending.test 1227s # Signal received from message bus org.freedesktop.DBus 1227s # Signal received from (unused) org.freedesktop.DBus via connection 1227s # Path: /org/freedesktop/DBus 1227s # Interface: org.freedesktop.DBus 1227s # Member: NameOwnerChanged 1227s # Signal received from message bus org.freedesktop.DBus 1227s # Signal received from (unused) org.freedesktop.DBus via proxy 1227s # Path: /org/freedesktop/DBus 1227s # Interface: org.freedesktop.DBus 1227s # Member: NameOwnerChanged 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1227s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 1227s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 23 /gdbus/subscribe/parallel/limit_to_message_bus 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_DLK4B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/runtime 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1227s # subscriber is :1.0 1227s # service is :1.1 1227s # service 2 is :1.2 1227s # attacker is :1.3 1227s # Waiting for AddMatch to be processed 1227s # /gdbus/subscribe/parallel/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1227s # Step 0: claiming bus name 1227s # Name: org.gtk.Test.AlreadyOwned 1227s # Owner: service 1227s # Step 1: adding subscription 1227s # Sender: org.gtk.Test.AlreadyOwned 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: (any) 1227s # String argument 0: (any) 1227s # Flags: 0 1227s # Subscribing via connection 1227s # Immediately unsubscribing 1227s # Subscribing via proxy 1227s # Waiting for AddMatch to be processed 1227s # Step 2: emitting signal 1227s # Sender: service 1227s # Destination: (broadcast) 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Waiting for signal to reach message bus 1227s # Signal received from service :1.1 1227s # Signal received from service :1.1 via proxy 1227s # Path: /org/gtk/GDBus/ExampleInterface 1227s # Interface: org.gtk.GDBus.ExampleInterface 1227s # Member: Foo 1227s # Argument 0: (not a string) 1227s # Sent in step: 2 1227s # Received Finished signal from subscriber :1.0 1227s # Received Finished signal from service :1.1 1227s # Received Finished signal from service 2 :1.2 1227s # Received Finished signal from attacker :1.3 1227s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1227s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1227s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1227s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1227s ok 24 /gdbus/subscribe/parallel/unsubscribe_immediately 1227s # End of parallel tests 1227s # End of subscribe tests 1227s # End of gdbus tests 1227s TAP version 14 1227s # random seed: R02S6d6b16e997a067916a9631c34a0e3f25 1227s 1..2 1227s # Start of gdbus tests 1227s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_ZMI2B3/gdbus/close-pending/.dirs/home 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_ZMI2B3/gdbus/close-pending/.dirs/cache 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_ZMI2B3/gdbus/close-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_ZMI2B3/gdbus/close-pending/.dirs/system-config2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_ZMI2B3/gdbus/close-pending/.dirs/config 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_ZMI2B3/gdbus/close-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_ZMI2B3/gdbus/close-pending/.dirs/system-data2 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_ZMI2B3/gdbus/close-pending/.dirs/data 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_ZMI2B3/gdbus/close-pending/.dirs/state 1227s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_ZMI2B3/gdbus/close-pending/.dirs/runtime 1228s ok 1 /gdbus/close-pending 1228s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_ZMI2B3/gdbus/unref-pending/.dirs/home 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_ZMI2B3/gdbus/unref-pending/.dirs/cache 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_ZMI2B3/gdbus/unref-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_ZMI2B3/gdbus/unref-pending/.dirs/system-config2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_ZMI2B3/gdbus/unref-pending/.dirs/config 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_ZMI2B3/gdbus/unref-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_ZMI2B3/gdbus/unref-pending/.dirs/system-data2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_ZMI2B3/gdbus/unref-pending/.dirs/data 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_ZMI2B3/gdbus/unref-pending/.dirs/state 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_ZMI2B3/gdbus/unref-pending/.dirs/runtime 1228s ok 2 /gdbus/unref-pending 1228s # End of gdbus tests 1228s ok - glib/gdbus-close-pending.test 1228s # Running test: glib/boxed.test 1228s TAP version 14 1228s # random seed: R02S85a362beee3a3cc80e0960ba0c3bc4e8 1228s 1..27 1228s # Start of boxed tests 1228s ok 1 /boxed/define 1228s ok 2 /boxed/ownership 1228s ok 3 /boxed/closure 1228s ok 4 /boxed/date 1228s ok 5 /boxed/value 1228s ok 6 /boxed/string 1228s ok 7 /boxed/hashtable 1228s ok 8 /boxed/array 1228s ok 9 /boxed/ptrarray 1228s ok 10 /boxed/regex 1228s ok 11 /boxed/varianttype 1228s ok 12 /boxed/error 1228s ok 13 /boxed/datetime 1228s ok 14 /boxed/matchinfo 1228s ok 15 /boxed/keyfile 1228s ok 16 /boxed/mainloop 1228s ok 17 /boxed/maincontext 1228s ok 18 /boxed/source 1228s ok 19 /boxed/variantbuilder 1228s ok 20 /boxed/timezone 1228s ok 21 /boxed/pollfd 1228s ok 22 /boxed/markup 1228s ok 23 /boxed/thread 1228s ok 24 /boxed/checksum 1228s ok 25 /boxed/tree 1228s ok 26 /boxed/patternspec 1228s ok 27 /boxed/rand 1228s # End of boxed tests 1228s ok - glib/boxed.test 1228s # Running test: glib/cache.test 1228s TAP version 14 1228s # random seed: R02S121af93806b910c7a33e6c5407e6a13e 1228s 1..1 1228s # Start of cache tests 1228s ok 1 /cache/basic 1228s # End of cache tests 1228s ok - glib/cache.test 1228s # Running test: glib/static-link.test 1228s Test disabled because GLIB_TEST_COMPILATION is not set in the env. 1228s If you wish to run this test, set GLIB_TEST_COMPILATION=1 in the env, 1228s and make sure you have glib build dependencies installed, including 1228s meson. 1228s ok # SKIP - glib/static-link.test 1228s # Running test: glib/basics-gobject.test 1228s TAP version 14 1228s # random seed: R02Sbdc535f6fedeb8b9936af2da9f8944b0 1228s 1..1 1228s # Start of gobject tests 1228s # private data during initialization: 54321 == 54321 1228s # MAIN: emit test-signal: 1228s # ::test_signal default_handler called 1228s # ::test_signal default_handler called 1228s # ::test_signal default_handler called 1228s # signal return: "" 1228s # MAIN: call iface print-string on test and derived object: 1228s # Iface-FOO: "iface-string-from-test-type" from 0x2aa007e8860 1228s # Iface-BAR: "iface-string-from-derived-type" from 0x2aa007e8710 1228s # chaining: 1228s # Iface-FOO: "iface-string-from-derived-type" from 0x2aa007e8710 1228s # private data after initialization: 54321 == 54321 1228s ok 1 /gobject/basics 1228s # End of gobject tests 1228s ok - glib/basics-gobject.test 1228s # Running test: glib/permission.test 1228s ok - glib/permission.test 1228s TAP version 14 1228s # random seed: R02S200f35e31b2359f38af89e0859293db0 1228s 1..1 1228s # Start of permission tests 1228s ok 1 /permission/simple 1228s # End of permission tests 1228s # Running test: glib/gi-inspect-typelib.py.test 1228s TAP version 13 1228s ok 1 __main__.TestGIInspectTypelibCommandLine.test_help 1228s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1228s # tmpdir: /tmp/tmpe3x2q5vh 1228s # Running: ['/usr/bin/gi-inspect-typelib', '--help'] 1228s # Return code: 0 1228s # Output: 1228s # Usage: 1228s # gi-inspect-typelib [OPTION…] NAMESPACE - Inspect GI typelib 1228s # 1228s # Help Options: 1228s # -h, --help Show help options 1228s # 1228s # Application Options: 1228s # --typelib-version=VERSION Typelib version to inspect 1228s # --print-shlibs List the shared libraries the typelib requires 1228s # --print-typelibs List other typelibs the inspected typelib requires 1228s # Error: 1228s ok 2 __main__.TestGIInspectTypelibCommandLine.test_invalid_typelib 1228s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1228s # tmpdir: /tmp/tmptkg30j6n 1228s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'AnInvalidNameSpace'] 1228s # Return code: 1 1228s # Output: 1228s # 1228s # Error: 1228s # Failed to load typelib: Typelib file for namespace 'AnInvalidNameSpace' (any version) not found 1228s ok 3 __main__.TestGIInspectTypelibCommandLine.test_no_args 1228s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1228s # tmpdir: /tmp/tmpc6u2turg 1228s # Running: ['/usr/bin/gi-inspect-typelib'] 1228s # Return code: 1 1228s # Output: 1228s # 1228s # Error: 1228s # Please specify exactly one namespace 1228s ok 4 __main__.TestGIInspectTypelibForGLibTypelib.test_print_shlibs 1228s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1228s # tmpdir: /tmp/tmpto3qno3j 1228s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1228s # Return code: 0 1228s # Output: 1228s # shlib: libgobject-2.0.so.0 1228s # shlib: libglib-2.0.so.0 1228s # Error: 1228s ok 5 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs 1228s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1228s # tmpdir: /tmp/tmpjtnf0a2d 1228s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GLib', '--typelib-version=2.0'] 1228s # Return code: 0 1228s # Output: 1228s # 1228s # Error: 1228s ok 6 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs_and_shlibs 1228s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1228s # tmpdir: /tmp/tmp4h6nolas 1228s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1228s # Return code: 0 1228s # Output: 1228s # shlib: libgobject-2.0.so.0 1228s # shlib: libglib-2.0.so.0 1228s # Error: 1228s ok 7 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_shlibs 1228s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1228s # tmpdir: /tmp/tmpp7nb3ebb 1228s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1228s # Return code: 0 1228s # Output: 1228s # shlib: libgobject-2.0.so.0 1228s # Error: 1228s ok 8 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs 1228s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1228s # tmpdir: /tmp/tmpdlk5xcqu 1228s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GObject', '--typelib-version=2.0'] 1228s # Return code: 0 1228s # Output: 1228s # typelib: GLib-2.0 1228s # Error: 1228s ok 9 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs_and_shlibs 1228s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1228s # tmpdir: /tmp/tmp44yvl3hu 1228s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1228s # Return code: 0 1228s # Output: 1228s # shlib: libgobject-2.0.so.0 1228s # typelib: GLib-2.0 1228s # Error: 1228s ok 10 __main__.TestGIInspectTypelibForGioTypelib.test_print_shlibs 1228s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1228s # tmpdir: /tmp/tmp3xalk5ia 1228s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1228s # Return code: 0 1228s # Output: 1228s # shlib: libgio-2.0.so.0 1228s # Error: 1228s ok 11 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs 1228s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1228s # tmpdir: /tmp/tmpf1odltcq 1228s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'Gio', '--typelib-version=2.0'] 1228s # Return code: 0 1228s # Output: 1228s # typelib: GObject-2.0 1228s # typelib: GLib-2.0 1228s # typelib: GModule-2.0 1228s # Error: 1228s ok 12 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs_and_shlibs 1228s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1228s # tmpdir: /tmp/tmp2z_lmgi2 1228s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1228s # Return code: 0 1228s # Output: 1228s # shlib: libgio-2.0.so.0 1228s # typelib: GObject-2.0 1228s # typelib: GLib-2.0 1228s # typelib: GModule-2.0 1228s # Error: 1228s 1..12 1228s ok - glib/gi-inspect-typelib.py.test 1228s # Running test: glib/environment.test 1228s TAP version 14 1228s # random seed: R02S119746ebd9af91dfeb80d8807fa18455 1228s 1..7 1228s # Start of environ tests 1228s # /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. 1228s ok 1 /environ/listenv 1228s # /environ/getenv summary: Test setting an environment variable using g_setenv(), and that the updated value is queryable using g_getenv(). 1228s ok 2 /environ/getenv 1228s ok 3 /environ/setenv 1228s # /environ/array summary: Test getting and setting variables on a local envp array (rather than the global envp). 1228s ok 4 /environ/array 1228s # /environ/null summary: Test getting and setting variables on a NULL envp array. 1228s ok 5 /environ/null 1228s # /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. 1228s ok 6 /environ/case 1228s # /environ/expansion summary: Test expansion of environment variable references. 1228s ok 7 /environ/expansion # SKIP Environment variable expansion is only supported on Windows 1228s # End of environ tests 1228s ok - glib/environment.test 1228s # Running test: glib/thread.test 1228s TAP version 14 1228s # random seed: R02Sde648ad73159d389fc89a348ae59d4ab 1228s 1..7 1228s # Start of thread tests 1228s ok 1 /thread/thread1 1228s ok 2 /thread/thread2 1228s ok 3 /thread/thread3 1228s ok 4 /thread/thread4 1228s ok 5 /thread/thread5 1228s ok 6 /thread/thread6 1228s ok 7 /thread/thread7 1228s # End of thread tests 1228s ok - glib/thread.test 1228s # Running test: glib/socket-listener.test 1228s TAP version 14 1228s # random seed: R02S243b1c8099a3b4899af2f4ae6a65d8d3 1228s 1..4 1228s # Start of socket-listener tests 1228s ok 1 /socket-listener/event-signal 1228s # Start of accept tests 1228s # /socket-listener/accept/multi-simultaneously summary: Test that accepting multiple pending connections on the same GMainContext iteration works 1228s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3739 1228s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1228s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa1ce4b0b0 and GSocketClientAsyncConnectData 0x2aa1ce46550 1228s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1228s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa1ce4d740 and GSocketClientAsyncConnectData 0x2aa1ce4d590 1228s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1228s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa1ce4df60 and GSocketClientAsyncConnectData 0x2aa1ce4dce0 1228s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1228s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa1ce4e7e0 and GSocketClientAsyncConnectData 0x2aa1ce4e560 1228s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1228s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa1ce4f000 and GSocketClientAsyncConnectData 0x2aa1ce4ed80 1228s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1228s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1228s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa1ce51540 for GSocketClientAsyncConnectData 0x2aa1ce46550 1228s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1228s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1228s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa1ce536b0 for GSocketClientAsyncConnectData 0x2aa1ce4d590 1228s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1228s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1228s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa1ce53e60 for GSocketClientAsyncConnectData 0x2aa1ce4dce0 1228s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1228s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1228s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa1ce54500 for GSocketClientAsyncConnectData 0x2aa1ce4e560 1228s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1228s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1228s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa1ce50be0 for GSocketClientAsyncConnectData 0x2aa1ce4ed80 1228s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1228s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1228s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1228s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1228s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1228s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1228s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1228s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1228s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1228s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1228s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1228s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1228s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1228s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1228s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1228s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1228s ok 2 /socket-listener/accept/multi-simultaneously 1228s # End of accept tests 1228s ok - glib/socket-listener.test 1228s # Running test: glib/portal-support-none.test 1228s # Start of add-any-inet-port tests 1228s # /socket-listener/add-any-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 1228s # Test 0 1228s # Test 1 1228s # Test 2 1228s # Test 3 1228s # Test 4 1228s # Test 5 1228s # Test 6 1228s # Test 7 1228s # Test 8 1228s # Test 9 1228s # Test 10 1228s ok 3 /socket-listener/add-any-inet-port/listen-failures 1228s # End of add-any-inet-port tests 1228s # Start of add-inet-port tests 1228s # /socket-listener/add-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 1228s # Test 0 1228s # Test 1 1228s # Test 2 1228s # Test 3 1228s # Test 4 1228s # Test 5 1228s # Test 6 1228s # Test 7 1228s # Test 8 1228s # Test 9 1228s # Test 10 1228s ok 4 /socket-listener/add-inet-port/listen-failures 1228s # End of add-inet-port tests 1228s # End of socket-listener tests 1228s TAP version 14 1228s ok - glib/portal-support-none.test 1228s # random seed: R02S5c7fcdccf2109f4fce1958ae894fde02 1228s 1..1 1228s # Start of portal-support tests 1228s ok 1 /portal-support/none 1228s # End of portal-support tests 1228s # Running test: glib/file-thumbnail.test 1228s TAP version 14 1228s # random seed: R02Sefc2f6aca1cf654553e6b3c6a8d84997 1228s 1..7 1228s # Start of file-thumbnail tests 1228s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/fail/.dirs/home 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/fail/.dirs/cache 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/fail/.dirs/system-config1:/tmp/test_file-thumbnail_N54GC3/file-thumbnail/fail/.dirs/system-config2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/fail/.dirs/config 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/fail/.dirs/system-data1:/tmp/test_file-thumbnail_N54GC3/file-thumbnail/fail/.dirs/system-data2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/fail/.dirs/data 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/fail/.dirs/state 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/fail/.dirs/runtime 1228s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1228s # Created test thumbnail at /tmp/test_file-thumbnail_N54GC3/file-thumbnail/fail/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 1228s ok 1 /file-thumbnail/fail 1228s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/size-priority/.dirs/home 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/size-priority/.dirs/cache 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/size-priority/.dirs/system-config1:/tmp/test_file-thumbnail_N54GC3/file-thumbnail/size-priority/.dirs/system-config2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/size-priority/.dirs/config 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/size-priority/.dirs/system-data1:/tmp/test_file-thumbnail_N54GC3/file-thumbnail/size-priority/.dirs/system-data2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/size-priority/.dirs/data 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/size-priority/.dirs/state 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/size-priority/.dirs/runtime 1228s # Created test thumbnail at /tmp/test_file-thumbnail_N54GC3/file-thumbnail/size-priority/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 1228s # Created test thumbnail at /tmp/test_file-thumbnail_N54GC3/file-thumbnail/size-priority/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 1228s # Created test thumbnail at /tmp/test_file-thumbnail_N54GC3/file-thumbnail/size-priority/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 1228s # Created test thumbnail at /tmp/test_file-thumbnail_N54GC3/file-thumbnail/size-priority/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 1228s # Created test thumbnail at /tmp/test_file-thumbnail_N54GC3/file-thumbnail/size-priority/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 1228s ok 2 /file-thumbnail/size-priority 1228s # Start of valid tests 1228s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/normal/.dirs/home 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/normal/.dirs/cache 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/normal/.dirs/system-config1:/tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/normal/.dirs/system-config2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/normal/.dirs/config 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/normal/.dirs/system-data1:/tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/normal/.dirs/system-data2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/normal/.dirs/data 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/normal/.dirs/state 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/normal/.dirs/runtime 1228s # Created test thumbnail at /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/normal/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 1228s ok 3 /file-thumbnail/valid/normal 1228s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/large/.dirs/home 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/large/.dirs/cache 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/large/.dirs/system-config1:/tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/large/.dirs/system-config2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/large/.dirs/config 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/large/.dirs/system-data1:/tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/large/.dirs/system-data2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/large/.dirs/data 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/large/.dirs/state 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/large/.dirs/runtime 1228s # Created test thumbnail at /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/large/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 1228s ok 4 /file-thumbnail/valid/large 1228s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/x-large/.dirs/home 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/x-large/.dirs/cache 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/x-large/.dirs/system-config1:/tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/x-large/.dirs/system-config2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/x-large/.dirs/config 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/x-large/.dirs/system-data1:/tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/x-large/.dirs/system-data2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/x-large/.dirs/data 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/x-large/.dirs/state 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/x-large/.dirs/runtime 1228s # Created test thumbnail at /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/x-large/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 1228s ok 5 /file-thumbnail/valid/x-large 1228s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/xx-large/.dirs/home 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/xx-large/.dirs/cache 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/xx-large/.dirs/system-config1:/tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/xx-large/.dirs/system-config2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/xx-large/.dirs/config 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/xx-large/.dirs/system-data1:/tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/xx-large/.dirs/system-data2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/xx-large/.dirs/data 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/xx-large/.dirs/state 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/xx-large/.dirs/runtime 1228s # Created test thumbnail at /tmp/test_file-thumbnail_N54GC3/file-thumbnail/valid/xx-large/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 1228s ok 6 /file-thumbnail/valid/xx-large 1228s # End of valid tests 1228s # Start of unknown tests 1228s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/unknown/super-large/.dirs/home 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/unknown/super-large/.dirs/cache 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/unknown/super-large/.dirs/system-config1:/tmp/test_file-thumbnail_N54GC3/file-thumbnail/unknown/super-large/.dirs/system-config2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/unknown/super-large/.dirs/config 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/unknown/super-large/.dirs/system-data1:/tmp/test_file-thumbnail_N54GC3/file-thumbnail/unknown/super-large/.dirs/system-data2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/unknown/super-large/.dirs/data 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/unknown/super-large/.dirs/state 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_N54GC3/file-thumbnail/unknown/super-large/.dirs/runtime 1228s # Created test thumbnail at /tmp/test_file-thumbnail_N54GC3/file-thumbnail/unknown/super-large/.dirs/cache/thumbnails/super-large/f098bcae74f8241ee3835bded7284cdd.png 1228s ok 7 /file-thumbnail/unknown/super-large 1228s # End of unknown tests 1228s # End of file-thumbnail tests 1228s ok - glib/file-thumbnail.test 1228s # Running test: glib/sequence.test 1228s TAP version 14 1228s # random seed: R02S8ef02c95c2a7982eda0640ed4fa09f00 1228s 1..16 1228s # Start of sequence tests 1228s ok 1 /sequence/out-of-range-jump 1228s ok 2 /sequence/iter-move 1228s ok 3 /sequence/insert-sorted-non-pointer 1228s ok 4 /sequence/stable-sort 1228s ok 5 /sequence/is_empty 1228s # Start of random tests 1229s ok 6 /sequence/random/seed:825541564 1229s # slow test /sequence/random/seed:825541564 executed in 0.66 secs 1229s ok 7 /sequence/random/seed:801678400 1229s # slow test /sequence/random/seed:801678400 executed in 0.62 secs 1230s ok 8 /sequence/random/seed:1477639090 1230s # slow test /sequence/random/seed:1477639090 executed in 0.65 secs 1231s ok 9 /sequence/random/seed:3369132895 1231s # slow test /sequence/random/seed:3369132895 executed in 0.59 secs 1231s # Executing: glib/sequence.test 1231s ok 10 /sequence/random/seed:1192944867 1231s # slow test /sequence/random/seed:1192944867 executed in 0.62 secs 1232s ok 11 /sequence/random/seed:770458294 1232s # slow test /sequence/random/seed:770458294 executed in 0.66 secs 1232s ok 12 /sequence/random/seed:1099575817 1232s # slow test /sequence/random/seed:1099575817 executed in 0.62 secs 1233s ok 13 /sequence/random/seed:590523467 1233s # slow test /sequence/random/seed:590523467 executed in 0.67 secs 1234s ok 14 /sequence/random/seed:3583571454 1234s # slow test /sequence/random/seed:3583571454 executed in 0.65 secs 1234s ok 15 /sequence/random/seed:579241222 1234s # slow test /sequence/random/seed:579241222 executed in 0.65 secs 1235s ok 16 /sequence/random/seed:1476369391 1235s # slow test /sequence/random/seed:1476369391 executed in 0.63 secs 1235s # End of random tests 1235s # End of sequence tests 1235s ok - glib/sequence.test 1235s # Running test: glib/list.test 1235s TAP version 14 1235s # random seed: R02S1bcd0f3b660dbf06e0d52d49b1e1903f 1235s 1..20 1235s # Start of list tests 1235s ok 1 /list/sort 1235s ok 2 /list/sort-with-data 1235s ok 3 /list/insert-before-link 1235s ok - glib/list.test 1235s # Running test: glib/node.test 1235s ok - glib/node.test 1235s # Running test: glib/regex.test 1235s ok 4 /list/insert-sorted 1235s ok 5 /list/insert-sorted-with-data 1235s ok 6 /list/reverse 1235s ok 7 /list/nth 1235s ok 8 /list/concat 1235s ok 9 /list/remove 1235s ok 10 /list/remove-all 1235s ok 11 /list/first-last 1235s ok 12 /list/insert 1235s ok 13 /list/free-full 1235s ok 14 /list/copy 1235s ok 15 /list/copy-deep 1235s ok 16 /list/delete-link 1235s ok 17 /list/prepend 1235s ok 18 /list/position 1235s ok 19 /list/double-free 1235s # Start of sort tests 1235s ok 20 /list/sort/stable 1235s # End of sort tests 1235s # End of list tests 1235s TAP version 14 1235s # random seed: R02S640581afdf7fd488edf95b9592ca4348 1235s 1..6 1235s # Start of node tests 1235s ok 1 /node/allocation 1235s ok 2 /node/construction 1235s ok 3 /node/traversal 1235s ok 4 /node/misc 1235s ok 5 /node/unlink 1235s ok 6 /node/copy 1235s # End of node tests 1235s TAP version 14 1235s # random seed: R02S0383972ff3db8f0cbf07d7543344b14b 1235s 1..848 1235s # Start of regex tests 1235s ok 1 /regex/properties 1235s ok 2 /regex/class 1235s ok 3 /regex/lookahead 1235s ok 4 /regex/lookbehind 1235s ok 5 /regex/subpattern 1235s ok 6 /regex/condition 1235s ok 7 /regex/recursion 1235s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640489 1235s ok 8 /regex/multiline 1235s ok 9 /regex/explicit-crlf 1235s ok 10 /regex/max-lookbehind 1235s ok 11 /regex/compile-errors 1235s ok 12 /regex/jit-unsupported-matching 1235s # /regex/unmatched-named-subpattern summary: Test that unmatched subpatterns can still be queried 1235s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2881 1235s ok 13 /regex/unmatched-named-subpattern 1235s # /regex/compiled-regex-after-jit-failure summary: Test that failed OPTIMIZE regex doesn't cause issues on subsequent matches 1235s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2824 1235s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1235s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1235s ok 14 /regex/compiled-regex-after-jit-failure 1235s # Start of new tests 1235s ok 15 /regex/new/1 1235s ok 16 /regex/new/2 1235s ok 17 /regex/new/3 1235s ok 18 /regex/new/4 1235s ok 19 /regex/new/5 1235s ok 20 /regex/new/6 1235s ok 21 /regex/new/7 1235s ok 22 /regex/new/8 1235s ok 23 /regex/new/9 1235s ok 24 /regex/new/10 1235s ok 25 /regex/new/11 1235s ok 26 /regex/new/12 1235s ok 27 /regex/new/13 1235s ok 28 /regex/new/14 1235s ok 29 /regex/new/15 1235s ok 30 /regex/new/16 1235s ok 31 /regex/new/17 1235s ok 32 /regex/new/18 1235s ok 33 /regex/new/19 1235s ok 34 /regex/new/71 1235s ok 35 /regex/new/80 1235s ok 36 /regex/new/82 1235s # End of new tests 1235s # Start of new-check-flags tests 1235s ok 37 /regex/new-check-flags/20 1235s ok 38 /regex/new-check-flags/21 1235s ok 39 /regex/new-check-flags/22 1235s ok 40 /regex/new-check-flags/23 1235s ok 41 /regex/new-check-flags/24 1235s ok 42 /regex/new-check-flags/25 1235s ok 43 /regex/new-check-flags/26 1235s ok 44 /regex/new-check-flags/27 1235s ok 45 /regex/new-check-flags/28 1235s ok 46 /regex/new-check-flags/29 1235s ok 47 /regex/new-check-flags/30 1235s ok 48 /regex/new-check-flags/31 1235s ok 49 /regex/new-check-flags/32 1235s ok 50 /regex/new-check-flags/33 1235s ok 51 /regex/new-check-flags/34 1235s ok 52 /regex/new-check-flags/35 1235s ok 53 /regex/new-check-flags/36 1235s # End of new-check-flags tests 1235s # Start of new-fail tests 1235s ok 54 /regex/new-fail/37 1235s ok 55 /regex/new-fail/38 1235s ok 56 /regex/new-fail/39 1235s ok 57 /regex/new-fail/40 1235s ok 58 /regex/new-fail/41 1235s ok 59 /regex/new-fail/42 1235s ok 60 /regex/new-fail/43 1235s ok 61 /regex/new-fail/44 1235s ok 62 /regex/new-fail/45 1235s ok 63 /regex/new-fail/46 1235s ok 64 /regex/new-fail/47 1235s ok 65 /regex/new-fail/48 1235s ok 66 /regex/new-fail/49 1235s ok 67 /regex/new-fail/50 1235s ok 68 /regex/new-fail/51 1235s ok 69 /regex/new-fail/52 1235s ok 70 /regex/new-fail/53 1235s ok 71 /regex/new-fail/54 1235s ok 72 /regex/new-fail/55 1235s ok 73 /regex/new-fail/56 1235s ok 74 /regex/new-fail/57 1235s ok 75 /regex/new-fail/58 1235s ok 76 /regex/new-fail/59 1235s ok 77 /regex/new-fail/60 1235s ok 78 /regex/new-fail/61 1235s ok 79 /regex/new-fail/62 1235s ok 80 /regex/new-fail/63 1235s ok 81 /regex/new-fail/64 1235s ok 82 /regex/new-fail/65 1235s ok 83 /regex/new-fail/66 1235s ok 84 /regex/new-fail/67 1235s ok 85 /regex/new-fail/68 1235s ok 86 /regex/new-fail/69 1235s ok 87 /regex/new-fail/70 1235s ok 88 /regex/new-fail/72 1235s ok 89 /regex/new-fail/73 1235s ok 90 /regex/new-fail/74 1235s ok 91 /regex/new-fail/75 1235s ok 92 /regex/new-fail/76 1235s ok 93 /regex/new-fail/77 1235s ok 94 /regex/new-fail/78 1235s ok 95 /regex/new-fail/79 1235s ok 96 /regex/new-fail/81 1235s ok 97 /regex/new-fail/83 1235s ok 98 /regex/new-fail/84 1235s ok 99 /regex/new-fail/85 1235s ok 100 /regex/new-fail/86 1235s ok 101 /regex/new-fail/87 1235s ok 102 /regex/new-fail/88 1235s ok 103 /regex/new-fail/89 1235s ok 104 /regex/new-fail/90 1235s ok 105 /regex/new-fail/91 1235s # End of new-fail tests 1235s # Start of match-simple tests 1235s ok 106 /regex/match-simple/92 1235s ok 107 /regex/match-simple/93 1235s ok 108 /regex/match-simple/94 1235s ok 109 /regex/match-simple/95 1235s ok 110 /regex/match-simple/96 1235s ok 111 /regex/match-simple/97 1235s ok 112 /regex/match-simple/98 1235s ok 113 /regex/match-simple/99 1235s ok 114 /regex/match-simple/100 1235s ok 115 /regex/match-simple/101 1235s ok 116 /regex/match-simple/102 1235s ok 117 /regex/match-simple/103 1235s ok 118 /regex/match-simple/104 1235s ok 119 /regex/match-simple/105 1235s ok 120 /regex/match-simple/106 1235s ok 121 /regex/match-simple/107 1235s ok 122 /regex/match-simple/108 1235s ok 123 /regex/match-simple/109 1235s ok 124 /regex/match-simple/110 1235s ok 125 /regex/match-simple/111 1235s ok 126 /regex/match-simple/112 1235s ok 127 /regex/match-simple/113 1235s ok 128 /regex/match-simple/114 1235s ok 129 /regex/match-simple/115 1235s ok 130 /regex/match-simple/116 1235s ok 131 /regex/match-simple/117 1235s ok 132 /regex/match-simple/118 1235s ok 133 /regex/match-simple/119 1235s ok 134 /regex/match-simple/120 1235s ok 135 /regex/match-simple/121 1235s ok 136 /regex/match-simple/122 1235s ok 137 /regex/match-simple/123 1235s ok 138 /regex/match-simple/124 1235s ok 139 /regex/match-simple/125 1235s ok 140 /regex/match-simple/126 1235s ok 141 /regex/match-simple/127 1235s ok 142 /regex/match-simple/128 1235s ok 143 /regex/match-simple/129 1235s ok 144 /regex/match-simple/130 1235s ok 145 /regex/match-simple/131 1235s ok 146 /regex/match-simple/132 1235s ok 147 /regex/match-simple/133 1235s ok 148 /regex/match-simple/134 1235s ok 149 /regex/match-simple/135 1235s ok 150 /regex/match-simple/136 1235s ok 151 /regex/match-simple/137 1235s ok 152 /regex/match-simple/138 1235s ok 153 /regex/match-simple/139 1235s ok 154 /regex/match-simple/140 1235s ok 155 /regex/match-simple/141 1235s ok 156 /regex/match-simple/142 1235s ok 157 /regex/match-simple/143 1235s ok 158 /regex/match-simple/144 1235s ok 159 /regex/match-simple/145 1235s ok 160 /regex/match-simple/146 1235s ok 161 /regex/match-simple/147 1235s ok 162 /regex/match-simple/148 1235s ok 163 /regex/match-simple/149 1235s ok 164 /regex/match-simple/150 1235s ok 165 /regex/match-simple/151 1235s ok 166 /regex/match-simple/152 1235s ok 167 /regex/match-simple/153 1235s ok 168 /regex/match-simple/154 1235s ok 169 /regex/match-simple/155 1235s ok 170 /regex/match-simple/156 1235s ok 171 /regex/match-simple/157 1235s ok 172 /regex/match-simple/158 1235s ok 173 /regex/match-simple/159 1235s ok 174 /regex/match-simple/160 1235s ok 175 /regex/match-simple/161 1235s ok 176 /regex/match-simple/162 1235s ok 177 /regex/match-simple/163 1235s ok 178 /regex/match-simple/164 1235s # End of match-simple tests 1235s # Start of match-simple-optimized tests 1235s ok 179 /regex/match-simple-optimized/92 1235s ok 180 /regex/match-simple-optimized/93 1235s ok 181 /regex/match-simple-optimized/94 1235s ok 182 /regex/match-simple-optimized/95 1235s ok 183 /regex/match-simple-optimized/96 1235s ok 184 /regex/match-simple-optimized/97 1235s ok 185 /regex/match-simple-optimized/98 1235s ok 186 /regex/match-simple-optimized/99 1235s ok 187 /regex/match-simple-optimized/100 1235s ok 188 /regex/match-simple-optimized/101 1235s ok 189 /regex/match-simple-optimized/102 1235s ok 190 /regex/match-simple-optimized/103 1235s ok 191 /regex/match-simple-optimized/104 1235s ok 192 /regex/match-simple-optimized/105 1235s ok 193 /regex/match-simple-optimized/106 1235s ok 194 /regex/match-simple-optimized/107 1235s ok 195 /regex/match-simple-optimized/108 1235s ok 196 /regex/match-simple-optimized/109 1235s ok 197 /regex/match-simple-optimized/110 1235s ok 198 /regex/match-simple-optimized/111 1235s ok 199 /regex/match-simple-optimized/112 1235s ok 200 /regex/match-simple-optimized/113 1235s ok 201 /regex/match-simple-optimized/114 1235s ok 202 /regex/match-simple-optimized/115 1235s ok 203 /regex/match-simple-optimized/116 1235s ok 204 /regex/match-simple-optimized/117 1235s ok 205 /regex/match-simple-optimized/118 1235s ok 206 /regex/match-simple-optimized/119 1235s ok 207 /regex/match-simple-optimized/120 1235s ok 208 /regex/match-simple-optimized/121 1235s ok 209 /regex/match-simple-optimized/122 1235s ok 210 /regex/match-simple-optimized/123 1235s ok 211 /regex/match-simple-optimized/124 1235s ok 212 /regex/match-simple-optimized/125 1235s ok 213 /regex/match-simple-optimized/126 1235s ok 214 /regex/match-simple-optimized/127 1235s ok 215 /regex/match-simple-optimized/128 1235s ok 216 /regex/match-simple-optimized/129 1235s ok 217 /regex/match-simple-optimized/130 1235s ok 218 /regex/match-simple-optimized/131 1235s ok 219 /regex/match-simple-optimized/132 1235s ok 220 /regex/match-simple-optimized/133 1235s ok 221 /regex/match-simple-optimized/134 1235s ok 222 /regex/match-simple-optimized/135 1235s ok 223 /regex/match-simple-optimized/136 1235s ok 224 /regex/match-simple-optimized/137 1235s ok 225 /regex/match-simple-optimized/138 1235s ok 226 /regex/match-simple-optimized/139 1235s ok 227 /regex/match-simple-optimized/140 1235s ok 228 /regex/match-simple-optimized/141 1235s ok 229 /regex/match-simple-optimized/142 1235s ok 230 /regex/match-simple-optimized/143 1235s ok 231 /regex/match-simple-optimized/144 1235s ok 232 /regex/match-simple-optimized/145 1235s ok 233 /regex/match-simple-optimized/146 1235s ok 234 /regex/match-simple-optimized/147 1235s ok 235 /regex/match-simple-optimized/148 1235s ok 236 /regex/match-simple-optimized/149 1235s ok 237 /regex/match-simple-optimized/150 1235s ok 238 /regex/match-simple-optimized/151 1235s ok 239 /regex/match-simple-optimized/152 1235s ok 240 /regex/match-simple-optimized/153 1235s ok 241 /regex/match-simple-optimized/154 1235s ok 242 /regex/match-simple-optimized/155 1235s ok 243 /regex/match-simple-optimized/156 1235s ok 244 /regex/match-simple-optimized/157 1235s ok 245 /regex/match-simple-optimized/158 1235s ok 246 /regex/match-simple-optimized/159 1235s ok 247 /regex/match-simple-optimized/160 1235s ok 248 /regex/match-simple-optimized/161 1235s ok 249 /regex/match-simple-optimized/162 1235s ok 250 /regex/match-simple-optimized/163 1235s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1235s ok 251 /regex/match-simple-optimized/164 1235s # End of match-simple-optimized tests 1235s # Start of match tests 1235s ok 252 /regex/match/165 1235s ok 253 /regex/match/166 1235s ok 254 /regex/match/167 1235s ok 255 /regex/match/168 1235s ok 256 /regex/match/169 1235s ok 257 /regex/match/170 1235s ok 258 /regex/match/171 1235s ok 259 /regex/match/172 1235s ok 260 /regex/match/173 1235s ok 261 /regex/match/174 1235s ok 262 /regex/match/175 1235s ok 263 /regex/match/176 1235s ok 264 /regex/match/177 1235s ok 265 /regex/match/178 1235s ok 266 /regex/match/179 1235s ok 267 /regex/match/180 1235s ok 268 /regex/match/181 1235s ok 269 /regex/match/182 1235s ok 270 /regex/match/183 1235s ok 271 /regex/match/184 1235s ok 272 /regex/match/185 1235s ok 273 /regex/match/186 1235s ok 274 /regex/match/187 1235s ok 275 /regex/match/188 1235s ok 276 /regex/match/189 1235s ok 277 /regex/match/190 1235s ok 278 /regex/match/191 1235s ok 279 /regex/match/192 1235s ok 280 /regex/match/193 1235s ok 281 /regex/match/194 1235s ok 282 /regex/match/195 1235s ok 283 /regex/match/196 1235s ok 284 /regex/match/197 1235s ok 285 /regex/match/198 1235s ok 286 /regex/match/199 1235s ok 287 /regex/match/200 1235s ok 288 /regex/match/201 1235s ok 289 /regex/match/202 1235s ok 290 /regex/match/203 1235s ok 291 /regex/match/204 1235s ok 292 /regex/match/205 1235s ok 293 /regex/match/206 1235s ok 294 /regex/match/207 1235s ok 295 /regex/match/208 1235s ok 296 /regex/match/209 1235s ok 297 /regex/match/210 1235s ok 298 /regex/match/211 1235s ok 299 /regex/match/212 1235s ok 300 /regex/match/213 1235s ok 301 /regex/match/214 1235s ok 302 /regex/match/215 1235s ok 303 /regex/match/216 1235s ok 304 /regex/match/217 1235s ok 305 /regex/match/218 1235s ok 306 /regex/match/219 1235s ok 307 /regex/match/220 1235s ok 308 /regex/match/221 1235s ok 309 /regex/match/222 1235s ok 310 /regex/match/223 1235s ok 311 /regex/match/224 1235s ok 312 /regex/match/225 1235s ok 313 /regex/match/226 1235s ok 314 /regex/match/227 1235s ok 315 /regex/match/228 1235s ok 316 /regex/match/229 1235s ok 317 /regex/match/230 1235s ok 318 /regex/match/231 1235s ok 319 /regex/match/232 1235s ok 320 /regex/match/233 1235s ok 321 /regex/match/234 1235s ok 322 /regex/match/235 1235s ok 323 /regex/match/236 1235s ok 324 /regex/match/237 1235s ok 325 /regex/match/238 1235s ok 326 /regex/match/239 1235s ok 327 /regex/match/240 1235s ok 328 /regex/match/241 1235s ok 329 /regex/match/242 1235s ok 330 /regex/match/243 1235s ok 331 /regex/match/244 1235s ok 332 /regex/match/245 1235s ok 333 /regex/match/246 1235s ok 334 /regex/match/partial281 1235s ok 335 /regex/match/partial282 1235s ok 336 /regex/match/partial283 1235s ok 337 /regex/match/partial284 1235s ok 338 /regex/match/partial285 1235s ok 339 /regex/match/partial286 1235s ok 340 /regex/match/partial287 1235s ok 341 /regex/match/partial288 1235s ok 342 /regex/match/partial289 1235s ok 343 /regex/match/partial290 1235s ok 344 /regex/match/partial291 1235s ok 345 /regex/match/partial292 1235s ok 346 /regex/match/partial293 1235s ok 347 /regex/match/partial294 1235s ok 348 /regex/match/partial295 1235s ok 349 /regex/match/partial296 1235s ok 350 /regex/match/partial297 1235s ok 351 /regex/match/partial298 1235s ok 352 /regex/match/partial299 1235s ok 353 /regex/match/partial300 1235s ok 354 /regex/match/partial301 1235s ok 355 /regex/match/partial302 1235s # Start of next0 tests 1235s ok 356 /regex/match/next0/247 1235s ok 357 /regex/match/next0/248 1235s ok 358 /regex/match/next0/249 1235s ok 359 /regex/match/next0/250 1235s # End of next0 tests 1235s # Start of next1 tests 1235s ok 360 /regex/match/next1/251 1235s ok 361 /regex/match/next1/252 1235s ok 362 /regex/match/next1/253 1235s ok 363 /regex/match/next1/254 1235s ok 364 /regex/match/next1/255 1235s # End of next1 tests 1235s # Start of next2 tests 1235s ok 365 /regex/match/next2/256 1235s ok 366 /regex/match/next2/257 1235s ok 367 /regex/match/next2/258 1235s ok 368 /regex/match/next2/259 1235s ok 369 /regex/match/next2/260 1235s ok 370 /regex/match/next2/261 1235s ok 371 /regex/match/next2/262 1235s ok 372 /regex/match/next2/263 1235s # End of next2 tests 1235s # Start of next3 tests 1235s ok 373 /regex/match/next3/264 1235s ok 374 /regex/match/next3/265 1235s ok 375 /regex/match/next3/266 1235s ok 376 /regex/match/next3/267 1235s ok 377 /regex/match/next3/268 1235s ok 378 /regex/match/next3/269 1235s # End of next3 tests 1235s # Start of next4 tests 1235s ok 379 /regex/match/next4/270 1235s # End of next4 tests 1235s # Start of count tests 1235s ok 380 /regex/match/count/271 1235s ok 381 /regex/match/count/272 1235s ok 382 /regex/match/count/273 1235s ok 383 /regex/match/count/274 1235s ok 384 /regex/match/count/275 1235s ok 385 /regex/match/count/276 1235s ok 386 /regex/match/count/277 1235s ok 387 /regex/match/count/278 1235s ok 388 /regex/match/count/279 1235s ok 389 /regex/match/count/280 1235s # End of count tests 1235s # Start of count-optimized tests 1235s ok 390 /regex/match/count-optimized/271 1235s ok 391 /regex/match/count-optimized/272 1235s ok 392 /regex/match/count-optimized/273 1235s ok 393 /regex/match/count-optimized/274 1235s ok 394 /regex/match/count-optimized/275 1235s ok 395 /regex/match/count-optimized/276 1235s ok 396 /regex/match/count-optimized/277 1235s ok 397 /regex/match/count-optimized/278 1235s ok 398 /regex/match/count-optimized/279 1235s ok 399 /regex/match/count-optimized/280 1235s # End of count-optimized tests 1235s # Start of partial-optimized tests 1235s ok 400 /regex/match/partial-optimized/281 1235s ok 401 /regex/match/partial-optimized/282 1235s ok 402 /regex/match/partial-optimized/283 1235s ok 403 /regex/match/partial-optimized/284 1235s ok 404 /regex/match/partial-optimized/285 1235s ok 405 /regex/match/partial-optimized/286 1235s ok 406 /regex/match/partial-optimized/287 1235s ok 407 /regex/match/partial-optimized/288 1235s ok 408 /regex/match/partial-optimized/289 1235s ok 409 /regex/match/partial-optimized/290 1235s ok 410 /regex/match/partial-optimized/291 1235s ok 411 /regex/match/partial-optimized/292 1235s ok 412 /regex/match/partial-optimized/293 1235s ok 413 /regex/match/partial-optimized/294 1235s ok 414 /regex/match/partial-optimized/295 1235s ok 415 /regex/match/partial-optimized/296 1235s ok 416 /regex/match/partial-optimized/297 1235s ok 417 /regex/match/partial-optimized/298 1235s ok 418 /regex/match/partial-optimized/299 1235s ok 419 /regex/match/partial-optimized/300 1235s ok 420 /regex/match/partial-optimized/301 1235s ok 421 /regex/match/partial-optimized/302 1235s # End of partial-optimized tests 1235s # Start of subpattern tests 1235s ok 422 /regex/match/subpattern/303 1235s ok 423 /regex/match/subpattern/304 1235s ok 424 /regex/match/subpattern/305 1235s ok 425 /regex/match/subpattern/306 1235s ok 426 /regex/match/subpattern/307 1235s ok 427 /regex/match/subpattern/308 1235s ok 428 /regex/match/subpattern/309 1235s ok 429 /regex/match/subpattern/310 1235s ok 430 /regex/match/subpattern/311 1235s ok 431 /regex/match/subpattern/312 1235s ok 432 /regex/match/subpattern/313 1235s ok 433 /regex/match/subpattern/314 1235s ok 434 /regex/match/subpattern/315 1235s # Start of named tests 1235s # Start of dupnames tests 1235s ok 435 /regex/match/subpattern/named/dupnames/325 1235s ok 436 /regex/match/subpattern/named/dupnames/326 1235s ok 437 /regex/match/subpattern/named/dupnames/327 1235s ok 438 /regex/match/subpattern/named/dupnames/328 1235s ok 439 /regex/match/subpattern/named/dupnames/329 1235s # End of dupnames tests 1235s # End of named tests 1235s # End of subpattern tests 1235s # Start of subpattern-optimized tests 1235s ok 440 /regex/match/subpattern-optimized/303 1235s ok 441 /regex/match/subpattern-optimized/304 1235s ok 442 /regex/match/subpattern-optimized/305 1235s ok 443 /regex/match/subpattern-optimized/306 1235s ok 444 /regex/match/subpattern-optimized/307 1235s ok 445 /regex/match/subpattern-optimized/308 1235s ok 446 /regex/match/subpattern-optimized/309 1235s ok 447 /regex/match/subpattern-optimized/310 1235s ok 448 /regex/match/subpattern-optimized/311 1235s ok 449 /regex/match/subpattern-optimized/312 1235s ok 450 /regex/match/subpattern-optimized/313 1235s ok 451 /regex/match/subpattern-optimized/314 1235s ok 452 /regex/match/subpattern-optimized/315 1235s # End of subpattern-optimized tests 1235s # Start of named tests 1235s # Start of subpattern tests 1235s ok 453 /regex/match/named/subpattern/316 1235s ok 454 /regex/match/named/subpattern/317 1235s ok 455 /regex/match/named/subpattern/318 1235s ok 456 /regex/match/named/subpattern/319 1235s ok 457 /regex/match/named/subpattern/320 1235s ok 458 /regex/match/named/subpattern/321 1235s ok 459 /regex/match/named/subpattern/322 1235s ok 460 /regex/match/named/subpattern/323 1235s ok 461 /regex/match/named/subpattern/324 1235s ok 462 /regex/match/named/subpattern/330 1235s ok 463 /regex/match/named/subpattern/331 1235s ok 464 /regex/match/named/subpattern/332 1235s ok 465 /regex/match/named/subpattern/333 1235s ok 466 /regex/match/named/subpattern/334 1235s # End of subpattern tests 1235s # End of named tests 1235s # End of match tests 1235s # Start of match-optimized tests 1235s ok 467 /regex/match-optimized/165 1235s ok 468 /regex/match-optimized/166 1235s ok 469 /regex/match-optimized/167 1235s ok 470 /regex/match-optimized/168 1235s ok 471 /regex/match-optimized/169 1235s ok 472 /regex/match-optimized/170 1235s ok 473 /regex/match-optimized/171 1235s ok 474 /regex/match-optimized/172 1235s ok 475 /regex/match-optimized/173 1235s ok 476 /regex/match-optimized/174 1235s ok 477 /regex/match-optimized/175 1235s ok 478 /regex/match-optimized/176 1235s ok 479 /regex/match-optimized/177 1235s ok 480 /regex/match-optimized/178 1235s ok 481 /regex/match-optimized/179 1235s ok 482 /regex/match-optimized/180 1235s ok 483 /regex/match-optimized/181 1235s ok 484 /regex/match-optimized/182 1235s ok 485 /regex/match-optimized/183 1235s ok 486 /regex/match-optimized/184 1235s ok 487 /regex/match-optimized/185 1235s ok 488 /regex/match-optimized/186 1235s ok 489 /regex/match-optimized/187 1235s ok 490 /regex/match-optimized/188 1235s ok 491 /regex/match-optimized/189 1235s ok 492 /regex/match-optimized/190 1235s ok 493 /regex/match-optimized/191 1235s ok 494 /regex/match-optimized/192 1235s ok 495 /regex/match-optimized/193 1235s ok 496 /regex/match-optimized/194 1235s ok 497 /regex/match-optimized/195 1235s ok 498 /regex/match-optimized/196 1235s ok 499 /regex/match-optimized/197 1235s ok 500 /regex/match-optimized/198 1235s ok 501 /regex/match-optimized/199 1235s ok 502 /regex/match-optimized/200 1235s ok 503 /regex/match-optimized/201 1235s ok 504 /regex/match-optimized/202 1235s ok 505 /regex/match-optimized/203 1235s ok 506 /regex/match-optimized/204 1235s ok 507 /regex/match-optimized/205 1235s ok 508 /regex/match-optimized/206 1235s ok 509 /regex/match-optimized/207 1235s ok 510 /regex/match-optimized/208 1235s ok 511 /regex/match-optimized/209 1235s ok 512 /regex/match-optimized/210 1235s ok 513 /regex/match-optimized/211 1235s ok 514 /regex/match-optimized/212 1235s ok 515 /regex/match-optimized/213 1235s ok 516 /regex/match-optimized/214 1235s ok 517 /regex/match-optimized/215 1235s ok 518 /regex/match-optimized/216 1235s ok 519 /regex/match-optimized/217 1235s ok 520 /regex/match-optimized/218 1235s ok 521 /regex/match-optimized/219 1235s ok 522 /regex/match-optimized/220 1235s ok 523 /regex/match-optimized/221 1235s ok 524 /regex/match-optimized/222 1235s ok 525 /regex/match-optimized/223 1235s ok 526 /regex/match-optimized/224 1235s ok 527 /regex/match-optimized/225 1235s ok 528 /regex/match-optimized/226 1235s ok 529 /regex/match-optimized/227 1235s ok 530 /regex/match-optimized/228 1235s ok 531 /regex/match-optimized/229 1235s ok 532 /regex/match-optimized/230 1235s ok 533 /regex/match-optimized/231 1235s ok 534 /regex/match-optimized/232 1235s ok 535 /regex/match-optimized/233 1235s ok 536 /regex/match-optimized/234 1235s ok 537 /regex/match-optimized/235 1235s ok 538 /regex/match-optimized/236 1235s ok 539 /regex/match-optimized/237 1235s ok 540 /regex/match-optimized/238 1235s ok 541 /regex/match-optimized/239 1235s ok 542 /regex/match-optimized/240 1235s ok 543 /regex/match-optimized/241 1235s ok 544 /regex/match-optimized/242 1235s ok 545 /regex/match-optimized/243 1235s ok 546 /regex/match-optimized/244 1235s ok 547 /regex/match-optimized/245 1235s ok 548 /regex/match-optimized/246 1235s # End of match-optimized tests 1235s # Start of fetch-all0 tests 1235s ok 549 /regex/fetch-all0/335 1235s ok 550 /regex/fetch-all0/336 1235s # End of fetch-all0 tests 1235s # Start of fetch-all1 tests 1235s ok 551 /regex/fetch-all1/337 1235s ok 552 /regex/fetch-all1/338 1235s ok 553 /regex/fetch-all1/339 1235s # End of fetch-all1 tests 1235s # Start of fetch-all2 tests 1235s ok 554 /regex/fetch-all2/340 1235s ok 555 /regex/fetch-all2/341 1235s ok 556 /regex/fetch-all2/342 1235s # End of fetch-all2 tests 1235s # Start of fetch-all3 tests 1235s ok 557 /regex/fetch-all3/343 1235s ok 558 /regex/fetch-all3/344 1235s ok 559 /regex/fetch-all3/345 1235s ok 560 /regex/fetch-all3/346 1235s ok 561 /regex/fetch-all3/347 1235s # End of fetch-all3 tests 1235s # Start of split tests 1235s # Start of simple0 tests 1235s ok 562 /regex/split/simple0/348 1235s ok 563 /regex/split/simple0/349 1235s ok 564 /regex/split/simple0/364 1235s ok 565 /regex/split/simple0/365 1235s # End of simple0 tests 1235s # Start of simple1 tests 1235s ok 566 /regex/split/simple1/350 1235s ok 567 /regex/split/simple1/351 1235s # End of simple1 tests 1235s # Start of simple2 tests 1235s ok 568 /regex/split/simple2/352 1235s ok 569 /regex/split/simple2/358 1235s ok 570 /regex/split/simple2/360 1235s # End of simple2 tests 1235s # Start of simple3 tests 1235s ok 571 /regex/split/simple3/353 1235s ok 572 /regex/split/simple3/354 1235s ok 573 /regex/split/simple3/355 1235s ok 574 /regex/split/simple3/356 1235s ok 575 /regex/split/simple3/357 1235s ok 576 /regex/split/simple3/359 1235s ok 577 /regex/split/simple3/361 1235s ok 578 /regex/split/simple3/362 1235s ok 579 /regex/split/simple3/363 1235s # End of simple3 tests 1235s # End of split tests 1235s # Start of split0 tests 1235s ok 580 /regex/split0/366 1235s ok 581 /regex/split0/368 1235s # End of split0 tests 1235s # Start of full-split0 tests 1235s ok 582 /regex/full-split0/367 1235s ok 583 /regex/full-split0/369 1235s ok 584 /regex/full-split0/370 1235s ok 585 /regex/full-split0/371 1235s ok 586 /regex/full-split0/372 1235s # End of full-split0 tests 1235s # Start of split1 tests 1235s ok 587 /regex/split1/373 1235s ok 588 /regex/split1/376 1235s # End of split1 tests 1235s # Start of full-split1 tests 1235s ok 589 /regex/full-split1/374 1235s ok 590 /regex/full-split1/375 1235s ok 591 /regex/full-split1/377 1235s ok 592 /regex/full-split1/378 1235s ok 593 /regex/full-split1/404 1235s # End of full-split1 tests 1235s # Start of split2 tests 1235s ok 594 /regex/split2/379 1235s ok 595 /regex/split2/383 1235s ok 596 /regex/split2/395 1235s # End of split2 tests 1235s # Start of full-split2 tests 1235s ok 597 /regex/full-split2/380 1235s ok 598 /regex/full-split2/381 1235s ok 599 /regex/full-split2/382 1235s ok 600 /regex/full-split2/384 1235s ok 601 /regex/full-split2/396 1235s ok 602 /regex/full-split2/399 1235s ok 603 /regex/full-split2/405 1235s # End of full-split2 tests 1235s # Start of split3 tests 1235s ok 604 /regex/split3/385 1235s ok 605 /regex/split3/387 1235s ok 606 /regex/split3/389 1235s ok 607 /regex/split3/391 1235s ok 608 /regex/split3/393 1235s ok 609 /regex/split3/397 1235s ok 610 /regex/split3/400 1235s ok 611 /regex/split3/402 1235s # End of split3 tests 1235s # Start of full-split3 tests 1235s ok 612 /regex/full-split3/386 1235s ok 613 /regex/full-split3/388 1235s ok 614 /regex/full-split3/390 1235s ok 615 /regex/full-split3/392 1235s ok 616 /regex/full-split3/394 1235s ok 617 /regex/full-split3/398 1235s ok 618 /regex/full-split3/401 1235s ok 619 /regex/full-split3/403 1235s ok 620 /regex/full-split3/406 1235s ok 621 /regex/full-split3/407 1235s # End of full-split3 tests 1235s # Start of check-repacement tests 1235s ok 622 /regex/check-repacement/408 1235s ok 623 /regex/check-repacement/409 1235s ok 624 /regex/check-repacement/410 1235s ok 625 /regex/check-repacement/411 1235s ok 626 /regex/check-repacement/412 1235s ok 627 /regex/check-repacement/413 1235s ok 628 /regex/check-repacement/414 1235s ok 629 /regex/check-repacement/415 1235s # End of check-repacement tests 1235s # Start of expand tests 1235s ok 630 /regex/expand/416 1235s ok 631 /regex/expand/417 1235s ok 632 /regex/expand/418 1235s ok 633 /regex/expand/419 1235s ok 634 /regex/expand/420 1235s ok 635 /regex/expand/421 1235s ok 636 /regex/expand/422 1235s ok 637 /regex/expand/423 1235s ok 638 /regex/expand/424 1235s ok 639 /regex/expand/425 1235s ok 640 /regex/expand/426 1235s ok 641 /regex/expand/427 1235s ok 642 /regex/expand/428 1235s ok 643 /regex/expand/429 1235s ok 644 /regex/expand/430 1235s ok 645 /regex/expand/431 1235s ok 646 /regex/expand/432 1235s ok 647 /regex/expand/433 1235s ok 648 /regex/expand/434 1235s ok 649 /regex/expand/435 1235s ok 650 /regex/expand/436 1235s ok 651 /regex/expand/437 1235s ok 652 /regex/expand/438 1235s ok 653 /regex/expand/439 1235s ok 654 /regex/expand/440 1235s ok 655 /regex/expand/441 1235s ok 656 /regex/expand/442 1235s ok 657 /regex/expand/443 1235s ok 658 /regex/expand/444 1235s ok 659 /regex/expand/445 1235s ok 660 /regex/expand/446 1235s ok 661 /regex/expand/447 1235s ok 662 /regex/expand/448 1235s ok 663 /regex/expand/449 1235s ok 664 /regex/expand/450 1235s ok 665 /regex/expand/451 1235s ok 666 /regex/expand/452 1235s ok 667 /regex/expand/453 1235s ok 668 /regex/expand/454 1235s ok 669 /regex/expand/455 1235s ok 670 /regex/expand/456 1235s ok 671 /regex/expand/457 1235s ok 672 /regex/expand/458 1235s ok 673 /regex/expand/459 1235s ok 674 /regex/expand/460 1235s ok 675 /regex/expand/461 1235s ok 676 /regex/expand/462 1235s ok 677 /regex/expand/463 1235s ok 678 /regex/expand/464 1235s ok 679 /regex/expand/465 1235s ok 680 /regex/expand/466 1235s ok 681 /regex/expand/467 1235s ok 682 /regex/expand/468 1235s ok 683 /regex/expand/469 1235s ok 684 /regex/expand/470 1235s ok 685 /regex/expand/471 1235s ok 686 /regex/expand/472 1235s ok 687 /regex/expand/473 1235s ok 688 /regex/expand/474 1235s ok 689 /regex/expand/475 1235s ok 690 /regex/expand/476 1235s ok 691 /regex/expand/477 1235s ok 692 /regex/expand/478 1235s ok 693 /regex/expand/479 1235s ok 694 /regex/expand/480 1235s ok 695 /regex/expand/481 1235s # End of expand tests 1235s # Start of replace tests 1235s ok 696 /regex/replace/482 1235s ok 697 /regex/replace/483 1235s ok 698 /regex/replace/484 1235s ok 699 /regex/replace/485 1235s ok 700 /regex/replace/486 1235s ok 701 /regex/replace/487 1235s ok 702 /regex/replace/488 1235s ok 703 /regex/replace/489 1235s ok 704 /regex/replace/490 1235s ok 705 /regex/replace/491 1235s ok 706 /regex/replace/492 1235s ok 707 /regex/replace/493 1235s ok 708 /regex/replace/494 1235s ok 709 /regex/replace/495 1235s ok 710 /regex/replace/496 1235s ok 711 /regex/replace/497 1235s ok 712 /regex/replace/498 1235s ok 713 /regex/replace/499 1235s ok 714 /regex/replace/500 1235s ok 715 /regex/replace/501 1235s ok 716 /regex/replace/502 1235s ok 717 /regex/replace/503 1235s ok 718 /regex/replace/504 1235s ok 719 /regex/replace/505 1235s ok 720 /regex/replace/506 1235s ok 721 /regex/replace/507 1235s ok 722 /regex/replace/508 1235s ok 723 /regex/replace/509 1235s ok - glib/regex.test 1235s # Running test: glib/ir-parser.test 1235s ok - glib/ir-parser.test 1235s # Running test: glib/type.test 1235s ok - glib/type.test 1235s # Running test: glib/cxx-14.test 1235s ok - glib/cxx-14.test 1235s # Running test: glib/gdbus-proxy.test 1235s # End of replace tests 1235s # Start of replace-optimized tests 1235s ok 724 /regex/replace-optimized/482 1235s ok 725 /regex/replace-optimized/483 1235s ok 726 /regex/replace-optimized/484 1235s ok 727 /regex/replace-optimized/485 1235s ok 728 /regex/replace-optimized/486 1235s ok 729 /regex/replace-optimized/487 1235s ok 730 /regex/replace-optimized/488 1235s ok 731 /regex/replace-optimized/489 1235s ok 732 /regex/replace-optimized/490 1235s ok 733 /regex/replace-optimized/491 1235s ok 734 /regex/replace-optimized/492 1235s ok 735 /regex/replace-optimized/493 1235s ok 736 /regex/replace-optimized/494 1235s ok 737 /regex/replace-optimized/495 1235s ok 738 /regex/replace-optimized/496 1235s ok 739 /regex/replace-optimized/497 1235s ok 740 /regex/replace-optimized/498 1235s ok 741 /regex/replace-optimized/499 1235s ok 742 /regex/replace-optimized/500 1235s ok 743 /regex/replace-optimized/501 1235s ok 744 /regex/replace-optimized/502 1235s ok 745 /regex/replace-optimized/503 1235s ok 746 /regex/replace-optimized/504 1235s ok 747 /regex/replace-optimized/505 1235s ok 748 /regex/replace-optimized/506 1235s ok 749 /regex/replace-optimized/507 1235s ok 750 /regex/replace-optimized/508 1235s ok 751 /regex/replace-optimized/509 1235s # End of replace-optimized tests 1235s # Start of replace-literally tests 1235s ok 752 /regex/replace-literally/510 1235s ok 753 /regex/replace-literally/511 1235s ok 754 /regex/replace-literally/512 1235s ok 755 /regex/replace-literally/513 1235s ok 756 /regex/replace-literally/514 1235s ok 757 /regex/replace-literally/515 1235s ok 758 /regex/replace-literally/516 1235s ok 759 /regex/replace-literally/517 1235s ok 760 /regex/replace-literally/518 1235s ok 761 /regex/replace-literally/519 1235s ok 762 /regex/replace-literally/520 1235s ok 763 /regex/replace-literally/521 1235s ok 764 /regex/replace-literally/522 1235s ok 765 /regex/replace-literally/523 1235s ok 766 /regex/replace-literally/524 1235s ok 767 /regex/replace-literally/525 1235s ok 768 /regex/replace-literally/526 1235s ok 769 /regex/replace-literally/527 1235s ok 770 /regex/replace-literally/528 1235s ok 771 /regex/replace-literally/529 1235s # End of replace-literally tests 1235s # Start of string-number tests 1235s ok 772 /regex/string-number/530 1235s ok 773 /regex/string-number/531 1235s ok 774 /regex/string-number/532 1235s ok 775 /regex/string-number/533 1235s ok 776 /regex/string-number/534 1235s ok 777 /regex/string-number/535 1235s ok 778 /regex/string-number/536 1235s ok 779 /regex/string-number/537 1235s ok 780 /regex/string-number/538 1235s ok 781 /regex/string-number/539 1235s ok 782 /regex/string-number/540 1235s ok 783 /regex/string-number/541 1235s ok 784 /regex/string-number/542 1235s ok 785 /regex/string-number/543 1235s ok 786 /regex/string-number/544 1235s # End of string-number tests 1235s # Start of escape_nul tests 1235s ok 787 /regex/escape_nul/545 1235s ok 788 /regex/escape_nul/546 1235s ok 789 /regex/escape_nul/547 1235s ok 790 /regex/escape_nul/548 1235s ok 791 /regex/escape_nul/549 1235s ok 792 /regex/escape_nul/550 1235s ok 793 /regex/escape_nul/551 1235s ok 794 /regex/escape_nul/552 1235s ok 795 /regex/escape_nul/553 1235s ok 796 /regex/escape_nul/554 1235s ok 797 /regex/escape_nul/555 1235s ok 798 /regex/escape_nul/556 1235s ok 799 /regex/escape_nul/557 1235s ok 800 /regex/escape_nul/558 1235s ok 801 /regex/escape_nul/559 1235s # End of escape_nul tests 1235s # Start of escape tests 1235s ok 802 /regex/escape/560 1235s ok 803 /regex/escape/561 1235s ok 804 /regex/escape/562 1235s ok 805 /regex/escape/563 1235s ok 806 /regex/escape/564 1235s ok 807 /regex/escape/565 1235s ok 808 /regex/escape/566 1235s ok 809 /regex/escape/567 1235s ok 810 /regex/escape/568 1235s ok 811 /regex/escape/569 1235s ok 812 /regex/escape/570 1235s ok 813 /regex/escape/571 1235s ok 814 /regex/escape/572 1235s ok 815 /regex/escape/573 1235s ok 816 /regex/escape/574 1235s ok 817 /regex/escape/575 1235s ok 818 /regex/escape/576 1235s ok 819 /regex/escape/577 1235s # End of escape tests 1235s # Start of match-all0 tests 1235s ok 820 /regex/match-all0/578 1235s ok 821 /regex/match-all0/580 1235s # End of match-all0 tests 1235s # Start of match-all-full0 tests 1235s ok 822 /regex/match-all-full0/579 1235s ok 823 /regex/match-all-full0/581 1235s ok 824 /regex/match-all-full0/582 1235s ok 825 /regex/match-all-full0/583 1235s # End of match-all-full0 tests 1235s # Start of match-all1 tests 1235s ok 826 /regex/match-all1/584 1235s ok 827 /regex/match-all1/586 1235s ok 828 /regex/match-all1/591 1235s # End of match-all1 tests 1235s # Start of match-all-full1 tests 1235s ok 829 /regex/match-all-full1/585 1235s ok 830 /regex/match-all-full1/587 1235s ok 831 /regex/match-all-full1/588 1235s ok 832 /regex/match-all-full1/589 1235s ok 833 /regex/match-all-full1/590 1235s ok 834 /regex/match-all-full1/592 1235s # End of match-all-full1 tests 1235s # Start of match-all2 tests 1235s ok 835 /regex/match-all2/593 1235s ok 836 /regex/match-all2/595 1235s ok 837 /regex/match-all2/597 1235s # End of match-all2 tests 1235s # Start of match-all-full2 tests 1235s ok 838 /regex/match-all-full2/594 1235s ok 839 /regex/match-all-full2/596 1235s ok 840 /regex/match-all-full2/598 1235s # End of match-all-full2 tests 1235s # Start of match-all3 tests 1235s ok 841 /regex/match-all3/599 1235s ok 842 /regex/match-all3/601 1235s # End of match-all3 tests 1235s # Start of match-all-full3 tests 1235s ok 843 /regex/match-all-full3/600 1235s ok 844 /regex/match-all-full3/602 1235s # End of match-all-full3 tests 1235s # Start of match-notempty tests 1235s ok 845 /regex/match-notempty/603 1235s # End of match-notempty tests 1235s # Start of match-notempty-optimized tests 1235s ok 846 /regex/match-notempty-optimized/603 1235s # End of match-notempty-optimized tests 1235s # Start of match-notempty-atstart tests 1235s ok 847 /regex/match-notempty-atstart/604 1235s # End of match-notempty-atstart tests 1235s # Start of match-notempty-atstart-optimized tests 1235s ok 848 /regex/match-notempty-atstart-optimized/604 1235s # End of match-notempty-atstart-optimized tests 1235s # End of regex tests 1235s TAP version 14 1235s # random seed: R02S84cbe3b1d9037501de4b28546fe9f5fa 1235s 1..1 1235s # Start of ir-parser tests 1235s # /ir-parser/type-parsing summary: Test parsing different valid and invalid types 1235s # GLib-GIRepository-DEBUG: 1235s # GLib-GIRepository-DEBUG: pushing node 1 dummy 1235s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 1235s # GLib-GIRepository-DEBUG: 1235s # GLib-GIRepository-DEBUG: 1235s # GLib-GIRepository-DEBUG: 1235s # GLib-GIRepository-DEBUG: 1235s # GLib-GIRepository-DEBUG: popping node 1 dummy 1235s # GLib-GIRepository-DEBUG: 1235s # GLib-GIRepository-DEBUG: 1235s # GLib-GIRepository-DEBUG: 1235s # GLib-GIRepository-DEBUG: pushing node 1 dummy 1235s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 1235s # GLib-GIRepository-DEBUG: 1235s # GLib-GIRepository-DEBUG: 1235s # GLib-GIRepository-DEBUG: 1235s # GLib-GIRepository-DEBUG: 1235s # GLib-GIRepository-DEBUG: popping node 1 dummy 1235s # GLib-GIRepository-DEBUG: 1235s # GLib-GIRepository-DEBUG: 1235s # GLib-GIRepository-DEBUG: 1235s # GLib-GIRepository-DEBUG: pushing node 1 dummy 1235s # GLib-GIRepository-DEBUG: Failed to parse type: 'GLib.Error 1240s # 1240s # 1240s # 1240s # 1240s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwbbxjfoe/tmpgf27ajqc.xml', '--output', '-', '--header'] 1240s # Return code: 0 1240s # Output: 1240s # /* 1240s # * This file is generated by gdbus-codegen, do not modify it. 1240s # * 1240s # * The license of this code is the same as for the D-Bus interface description 1240s # * it was derived from. Note that it links to GLib, so must comply with the 1240s # * LGPL linking clauses. 1240s # */ 1240s # 1240s # #ifndef __STDOUT__ 1240s # #define __STDOUT__ 1240s # 1240s # #include 1240s # 1240s # G_BEGIN_DECLS 1240s # 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # /* Declarations for org.project.UsefulInterface */ 1240s # 1240s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1240s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1240s # 1240s # struct _OrgProjectUsefulInterface; 1240s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1240s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1240s # 1240s # struct _OrgProjectUsefulInterfaceIface 1240s # { 1240s # GTypeInterface parent_iface; 1240s # 1240s # gboolean (*handle_useful_method) ( 1240s # OrgProjectUsefulInterface *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # }; 1240s # 1240s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1240s # 1240s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1240s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1240s # 1240s # 1240s # /* D-Bus method call completion functions: */ 1240s # void org_project_useful_interface_complete_useful_method ( 1240s # OrgProjectUsefulInterface *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # 1240s # 1240s # /* D-Bus method calls: */ 1240s # void org_project_useful_interface_call_useful_method ( 1240s # OrgProjectUsefulInterface *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean org_project_useful_interface_call_useful_method_finish ( 1240s # OrgProjectUsefulInterface *proxy, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean org_project_useful_interface_call_useful_method_sync ( 1240s # OrgProjectUsefulInterface *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1240s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1240s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1240s # 1240s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1240s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1240s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1240s # 1240s # struct _OrgProjectUsefulInterfaceProxy 1240s # { 1240s # /*< private >*/ 1240s # GDBusProxy parent_instance; 1240s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1240s # }; 1240s # 1240s # struct _OrgProjectUsefulInterfaceProxyClass 1240s # { 1240s # GDBusProxyClass parent_class; 1240s # }; 1240s # 1240s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1240s # #endif 1240s # 1240s # void org_project_useful_interface_proxy_new ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void org_project_useful_interface_proxy_new_for_bus ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1240s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1240s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1240s # 1240s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1240s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1240s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1240s # 1240s # struct _OrgProjectUsefulInterfaceSkeleton 1240s # { 1240s # /*< private >*/ 1240s # GDBusInterfaceSkeleton parent_instance; 1240s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1240s # }; 1240s # 1240s # struct _OrgProjectUsefulInterfaceSkeletonClass 1240s # { 1240s # GDBusInterfaceSkeletonClass parent_class; 1240s # }; 1240s # 1240s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1240s # #endif 1240s # 1240s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1240s # 1240s # 1240s # G_END_DECLS 1240s # 1240s # #endif /* __STDOUT__ */ 1240s # Error: 1240s # 1240s # /tmp/tmpwbbxjfoe/tmpgsxzoc9p.xml: 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwbbxjfoe/tmpgsxzoc9p.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1240s # Return code: 0 1240s # Output: 1240s # /* 1240s # * This file is generated by gdbus-codegen, do not modify it. 1240s # * 1240s # * The license of this code is the same as for the D-Bus interface description 1240s # * it was derived from. Note that it links to GLib, so must comply with the 1240s # * LGPL linking clauses. 1240s # */ 1240s # 1240s # #ifndef __STDOUT__ 1240s # #define __STDOUT__ 1240s # 1240s # #include 1240s # 1240s # G_BEGIN_DECLS 1240s # 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # /* Declarations for org.project.UsefulInterface */ 1240s # 1240s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1240s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1240s # 1240s # struct _OrgProjectUsefulInterface; 1240s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1240s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1240s # 1240s # struct _OrgProjectUsefulInterfaceIface 1240s # { 1240s # GTypeInterface parent_iface; 1240s # 1240s # gboolean (*handle_useful_method) ( 1240s # OrgProjectUsefulInterface *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # }; 1240s # 1240s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1240s # 1240s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1240s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1240s # 1240s # 1240s # /* D-Bus method call completion functions: */ 1240s # void org_project_useful_interface_complete_useful_method ( 1240s # OrgProjectUsefulInterface *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # 1240s # 1240s # /* D-Bus method calls: */ 1240s # void org_project_useful_interface_call_useful_method ( 1240s # OrgProjectUsefulInterface *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean org_project_useful_interface_call_useful_method_finish ( 1240s # OrgProjectUsefulInterface *proxy, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean org_project_useful_interface_call_useful_method_sync ( 1240s # OrgProjectUsefulInterface *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1240s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1240s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1240s # 1240s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1240s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1240s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1240s # 1240s # struct _OrgProjectUsefulInterfaceProxy 1240s # { 1240s # /*< private >*/ 1240s # GDBusProxy parent_instance; 1240s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1240s # }; 1240s # 1240s # struct _OrgProjectUsefulInterfaceProxyClass 1240s # { 1240s # GDBusProxyClass parent_class; 1240s # }; 1240s # 1240s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1240s # #endif 1240s # 1240s # void org_project_useful_interface_proxy_new ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void org_project_useful_interface_proxy_new_for_bus ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1240s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1240s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1240s # 1240s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1240s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1240s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1240s # 1240s # struct _OrgProjectUsefulInterfaceSkeleton 1240s # { 1240s # /*< private >*/ 1240s # GDBusInterfaceSkeleton parent_instance; 1240s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1240s # }; 1240s # 1240s # struct _OrgProjectUsefulInterfaceSkeletonClass 1240s # { 1240s # GDBusInterfaceSkeletonClass parent_class; 1240s # }; 1240s # 1240s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1240s # #endif 1240s # 1240s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1240s # 1240s # 1240s # G_END_DECLS 1240s # 1240s # #endif /* __STDOUT__ */ 1240s # Error: 1240s # 1240s # /tmp/tmpwbbxjfoe/tmpctle4nrf.xml: 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwbbxjfoe/tmpctle4nrf.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1240s # Return code: 0 1240s # Output: 1240s # /* 1240s # * This file is generated by gdbus-codegen, do not modify it. 1240s # * 1240s # * The license of this code is the same as for the D-Bus interface description 1240s # * it was derived from. Note that it links to GLib, so must comply with the 1240s # * LGPL linking clauses. 1240s # */ 1240s # 1240s # #ifndef __STDOUT__ 1240s # #define __STDOUT__ 1240s # 1240s # #include 1240s # 1240s # G_BEGIN_DECLS 1240s # 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # /* Declarations for org.project.UsefulInterface */ 1240s # 1240s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1240s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1240s # 1240s # struct _OrgProjectUsefulInterface; 1240s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1240s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1240s # 1240s # struct _OrgProjectUsefulInterfaceIface 1240s # { 1240s # GTypeInterface parent_iface; 1240s # 1240s # gboolean (*handle_useful_method) ( 1240s # OrgProjectUsefulInterface *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # }; 1240s # 1240s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1240s # 1240s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1240s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1240s # 1240s # 1240s # /* D-Bus method call completion functions: */ 1240s # void org_project_useful_interface_complete_useful_method ( 1240s # OrgProjectUsefulInterface *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # 1240s # 1240s # /* D-Bus method calls: */ 1240s # void org_project_useful_interface_call_useful_method ( 1240s # OrgProjectUsefulInterface *proxy, 1240s # GDBusCallFlags call_flags, 1240s # gint timeout_msec, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean org_project_useful_interface_call_useful_method_finish ( 1240s # OrgProjectUsefulInterface *proxy, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean org_project_useful_interface_call_useful_method_sync ( 1240s # OrgProjectUsefulInterface *proxy, 1240s # GDBusCallFlags call_flags, 1240s # gint timeout_msec, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1240s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1240s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1240s # 1240s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1240s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1240s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1240s # 1240s # struct _OrgProjectUsefulInterfaceProxy 1240s # { 1240s # /*< private >*/ 1240s # GDBusProxy parent_instance; 1240s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1240s # }; 1240s # 1240s # struct _OrgProjectUsefulInterfaceProxyClass 1240s # { 1240s # GDBusProxyClass parent_class; 1240s # }; 1240s # 1240s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1240s # #endif 1240s # 1240s # void org_project_useful_interface_proxy_new ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void org_project_useful_interface_proxy_new_for_bus ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1240s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1240s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1240s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1240s # 1240s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1240s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1240s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1240s # 1240s # struct _OrgProjectUsefulInterfaceSkeleton 1240s # { 1240s # /*< private >*/ 1240s # GDBusInterfaceSkeleton parent_instance; 1240s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1240s # }; 1240s # 1240s # struct _OrgProjectUsefulInterfaceSkeletonClass 1240s # { 1240s # GDBusInterfaceSkeletonClass parent_class; 1240s # }; 1240s # 1240s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1240s # #endif 1240s # 1240s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1240s # 1240s # 1240s # G_END_DECLS 1240s # 1240s # #endif /* __STDOUT__ */ 1240s # Error: 1241s # Executing: glib/codegen.py.test 1241s ok 2 __main__.TestCodegen.test_dbus_types 1241s # gdbus-codegen: /usr/bin/gdbus-codegen 1241s # tmpdir: /tmp/tmplh5pq5d8 1241s # /tmp/tmplh5pq5d8/tmp7ky1jq1x.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplh5pq5d8/tmp7ky1jq1x.xml', '--output', '-', '--body'] 1241s # Return code: 1 1241s # Output: 1241s # 1241s # Error: 1241s # ERROR: Bad signature "{vs}". "v" is not a valid type for dictionary keys at position 1. 1241s # /tmp/tmplh5pq5d8/tmp8y46by3h.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplh5pq5d8/tmp8y46by3h.xml', '--output', '-', '--body'] 1241s # Return code: 1 1241s # Output: 1241s # 1241s # Error: 1241s # ERROR: Bad signature "(ss(s{{sv}s}))". "{" is not a valid type for dictionary keys at position 6. 1241s # /tmp/tmplh5pq5d8/tmp3_nh2916.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplh5pq5d8/tmp3_nh2916.xml', '--output', '-', '--body'] 1241s # Return code: 1 1241s # Output: 1241s # 1241s # Error: 1241s # ERROR: Bad signature "{s". Error parsing string or brackets not closed. 1241s # /tmp/tmplh5pq5d8/tmp5at4x3oj.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplh5pq5d8/tmp5at4x3oj.xml', '--output', '-', '--body'] 1241s # Return code: 1 1241s # Output: 1241s # 1241s # Error: 1241s # ERROR: Bad signature "(s{sss})". Dict must end with "}" at position 5. 1241s # /tmp/tmplh5pq5d8/tmp8c1tbknm.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplh5pq5d8/tmp8c1tbknm.xml', '--output', '-', '--body'] 1241s # Return code: 1 1241s # Output: 1241s # 1241s # Error: 1241s # ERROR: Bad signature "z". "z" is not a valid D-Bus type. 1241s # /tmp/tmplh5pq5d8/tmp6zl0ak_1.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplh5pq5d8/tmp6zl0ak_1.xml', '--output', '-', '--body'] 1241s # Return code: 1 1241s # Output: 1241s # 1241s # Error: 1241s # ERROR: Bad signature "(ssms)". "m" is not a valid D-Bus type. 1241s # /tmp/tmplh5pq5d8/tmp8wlb_wmx.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplh5pq5d8/tmp8wlb_wmx.xml', '--output', '-', '--body'] 1241s # Return code: 1 1241s # Output: 1241s # 1241s # Error: 1241s # ERROR: Bad signature "(". Error parsing string or brackets not closed. 1241s # /tmp/tmplh5pq5d8/tmp706z6kwz.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplh5pq5d8/tmp706z6kwz.xml', '--output', '-', '--body'] 1241s # Return code: 1 1241s # Output: 1241s # 1241s # Error: 1241s # ERROR: Bad signature "(((ss))". Error parsing string or brackets not closed. 1241s # /tmp/tmplh5pq5d8/tmpfoiboz22.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplh5pq5d8/tmpfoiboz22.xml', '--output', '-', '--body'] 1241s # Return code: 1 1241s # Output: 1241s # 1241s # Error: 1241s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas". Too much recursion beginning at 129. 1241s # /tmp/tmplh5pq5d8/tmpkbu64gwh.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplh5pq5d8/tmpkbu64gwh.xml', '--output', '-', '--body'] 1241s # Return code: 1 1241s # Output: 1241s # 1241s # Error: 1241s # ERROR: D-Bus maximum signature length of 255 exceeded. 1241s # /tmp/tmplh5pq5d8/tmpb2xe4o_p.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplh5pq5d8/tmpb2xe4o_p.xml', '--output', '-', '--body'] 1241s # Return code: 1 1241s # Output: 1241s # 1241s # Error: 1241s # ERROR: D-Bus maximum signature length of 255 exceeded. 1241s # /tmp/tmplh5pq5d8/tmp61vpqb78.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplh5pq5d8/tmp61vpqb78.xml', '--output', '-', '--body'] 1241s # Return code: 1 1241s # Output: 1241s # 1241s # Error: 1241s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaa{sv})". Too much recursion beginning at 129. 1241s # /tmp/tmplh5pq5d8/tmpb1uc_0c_.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplh5pq5d8/tmpb1uc_0c_.xml', '--output', '-', '--body'] 1241s # Return code: 1 1241s # Output: 1241s # 1241s # Error: 1241s # ERROR: D-Bus maximum signature length of 255 exceeded. 1241s # /tmp/tmplh5pq5d8/tmpv09re5lc.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplh5pq5d8/tmpv09re5lc.xml', '--output', '-', '--body'] 1241s # Return code: 0 1241s # Output: 1241s # /* 1241s # * This file is generated by gdbus-codegen, do not modify it. 1241s # * 1241s # * The license of this code is the same as for the D-Bus interface description 1241s # * it was derived from. Note that it links to GLib, so must comply with the 1241s # * LGPL linking clauses. 1241s # */ 1241s # 1241s # #ifdef HAVE_CONFIG_H 1241s # # include "config.h" 1241s # #endif 1241s # 1241s # #include 1241s # #ifdef G_OS_UNIX 1241s # # include 1241s # #endif 1241s # 1241s # #ifdef G_ENABLE_DEBUG 1241s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1241s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1241s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1241s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1241s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1241s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1241s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1241s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1241s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1241s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1241s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1241s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1241s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1241s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1241s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1241s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1241s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1241s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1241s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1241s # #else /* !G_ENABLE_DEBUG */ 1241s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1241s # * Do not access GValues directly in your code. Instead, use the 1241s # * g_value_get_*() functions 1241s # */ 1241s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1241s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1241s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1241s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1241s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1241s # #endif /* !G_ENABLE_DEBUG */ 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusArgInfo parent_struct; 1241s # gboolean use_gvariant; 1241s # } _ExtendedGDBusArgInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusMethodInfo parent_struct; 1241s # const gchar *signal_name; 1241s # gboolean pass_fdlist; 1241s # } _ExtendedGDBusMethodInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusSignalInfo parent_struct; 1241s # const gchar *signal_name; 1241s # } _ExtendedGDBusSignalInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusPropertyInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # guint use_gvariant : 1; 1241s # guint emits_changed_signal : 1; 1241s # } _ExtendedGDBusPropertyInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusInterfaceInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # } _ExtendedGDBusInterfaceInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # guint prop_id; 1241s # GValue orig_value; /* the value before the change */ 1241s # } ChangedProperty; 1241s # 1241s # static void 1241s # _changed_property_free (ChangedProperty *data) 1241s # { 1241s # g_value_unset (&data->orig_value); 1241s # g_free (data); 1241s # } 1241s # 1241s # static gboolean 1241s # _g_strv_equal0 (gchar **a, gchar **b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # guint n; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # if (g_strv_length (a) != g_strv_length (b)) 1241s # goto out; 1241s # for (n = 0; a[n] != NULL; n++) 1241s # if (g_strcmp0 (a[n], b[n]) != 0) 1241s # goto out; 1241s # ret = TRUE; 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _g_variant_equal0 (GVariant *a, GVariant *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # ret = g_variant_equal (a, b); 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # G_GNUC_UNUSED static gboolean 1241s # _g_value_equal (const GValue *a, const GValue *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1241s # switch (G_VALUE_TYPE (a)) 1241s # { 1241s # case G_TYPE_BOOLEAN: 1241s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1241s # break; 1241s # case G_TYPE_UCHAR: 1241s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1241s # break; 1241s # case G_TYPE_INT: 1241s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1241s # break; 1241s # case G_TYPE_UINT: 1241s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1241s # break; 1241s # case G_TYPE_INT64: 1241s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1241s # break; 1241s # case G_TYPE_UINT64: 1241s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1241s # break; 1241s # case G_TYPE_DOUBLE: 1241s # { 1241s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1241s # gdouble da = g_value_get_double (a); 1241s # gdouble db = g_value_get_double (b); 1241s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1241s # } 1241s # break; 1241s # case G_TYPE_STRING: 1241s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1241s # break; 1241s # case G_TYPE_VARIANT: 1241s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1241s # break; 1241s # default: 1241s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1241s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1241s # else 1241s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1241s # break; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ 1241s # * Code for interface GoodTypes 1241s # * ------------------------------------------------------------------------ 1241s # */ 1241s # 1241s # /** 1241s # * SECTION:GoodTypes 1241s # * @title: GoodTypes 1241s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1241s # * 1241s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1241s # */ 1241s # 1241s # /* ---- Introspection data for GoodTypes ---- */ 1241s # 1241s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "GoodPropertyType", 1241s # (gchar *) "si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}", 1241s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1241s # NULL 1241s # }, 1241s # "good-property-type", 1241s # FALSE, 1241s # TRUE 1241s # }; 1241s # 1241s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1241s # { 1241s # &_good_types_property_info_good_property_type.parent_struct, 1241s # NULL 1241s # }; 1241s # 1241s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "GoodTypes", 1241s # NULL, 1241s # NULL, 1241s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1241s # NULL 1241s # }, 1241s # "good-types", 1241s # }; 1241s # 1241s # 1241s # /** 1241s # * good_types_interface_info: 1241s # * 1241s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1241s # * 1241s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1241s # */ 1241s # GDBusInterfaceInfo * 1241s # good_types_interface_info (void) 1241s # { 1241s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1241s # } 1241s # 1241s # /** 1241s # * good_types_override_properties: 1241s # * @klass: The class structure for a #GObject derived class. 1241s # * @property_id_begin: The property id to assign to the first overridden property. 1241s # * 1241s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1241s # * The properties are overridden in the order they are defined. 1241s # * 1241s # * Returns: The last property id. 1241s # */ 1241s # guint 1241s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1241s # { 1241s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1241s # return property_id_begin - 1; 1241s # } 1241s # 1241s # 1241s # 1241s # /** 1241s # * GoodTypes: 1241s # * 1241s # * Abstract interface type for the D-Bus interface GoodTypes. 1241s # */ 1241s # 1241s # /** 1241s # * GoodTypesIface: 1241s # * @parent_iface: The parent interface. 1241s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1241s # * 1241s # * Virtual table for the D-Bus interface GoodTypes. 1241s # */ 1241s # 1241s # typedef GoodTypesIface GoodTypesInterface; 1241s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1241s # 1241s # static void 1241s # good_types_default_init (GoodTypesIface *iface) 1241s # { 1241s # /* GObject properties for D-Bus properties: */ 1241s # /** 1241s # * GoodTypes:good-property-type: 1241s # * 1241s # * Represents the D-Bus property "GoodPropertyType". 1241s # * 1241s # * 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. 1241s # */ 1241s # g_object_interface_install_property (iface, 1241s # 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)); 1241s # } 1241s # 1241s # /** 1241s # * good_types_get_good_property_type: (skip) 1241s # * @object: A GoodTypes. 1241s # * 1241s # * Gets the value of the "GoodPropertyType" D-Bus property. 1241s # * 1241s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1241s # * 1241s # * 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. 1241s # * 1241s # * 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. 1241s # */ 1241s # GVariant * 1241s # good_types_get_good_property_type (GoodTypes *object) 1241s # { 1241s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1241s # 1241s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1241s # } 1241s # 1241s # /** 1241s # * good_types_dup_good_property_type: (skip) 1241s # * @object: A GoodTypes. 1241s # * 1241s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1241s # * 1241s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1241s # * 1241s # * 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(). 1241s # */ 1241s # GVariant * 1241s # good_types_dup_good_property_type (GoodTypes *object) 1241s # { 1241s # GVariant *value; 1241s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1241s # return value; 1241s # } 1241s # 1241s # /** 1241s # * good_types_set_good_property_type: (skip) 1241s # * @object: A GoodTypes. 1241s # * @value: The value to set. 1241s # * 1241s # * Sets the "GoodPropertyType" D-Bus property to @value. 1241s # * 1241s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1241s # */ 1241s # void 1241s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1241s # { 1241s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * GoodTypesProxy: 1241s # * 1241s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * GoodTypesProxyClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for GoodTypesProxy. 1241s # */ 1241s # 1241s # struct _GoodTypesProxyPrivate 1241s # { 1241s # GData *qdata; 1241s # }; 1241s # 1241s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1241s # G_ADD_PRIVATE (GoodTypesProxy) 1241s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1241s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # good_types_proxy_finalize (GObject *object) 1241s # { 1241s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1241s # g_datalist_clear (&proxy->priv->qdata); 1241s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_get_property (GObject *object, 1241s # guint prop_id, 1241s # GValue *value, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # GVariant *variant; 1241s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1241s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1241s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1241s # if (info->use_gvariant) 1241s # { 1241s # g_value_set_variant (value, variant); 1241s # } 1241s # else 1241s # { 1241s # if (variant != NULL) 1241s # g_dbus_gvariant_to_gvalue (variant, value); 1241s # } 1241s # if (variant != NULL) 1241s # g_variant_unref (variant); 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1241s # GAsyncResult *res, 1241s # gpointer user_data) 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info = user_data; 1241s # GError *error; 1241s # GVariant *_ret; 1241s # error = NULL; 1241s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1241s # if (!_ret) 1241s # { 1241s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1241s # info->parent_struct.name, 1241s # error->message, g_quark_to_string (error->domain), error->code); 1241s # g_error_free (error); 1241s # } 1241s # else 1241s # { 1241s # g_variant_unref (_ret); 1241s # } 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_set_property (GObject *object, 1241s # guint prop_id, 1241s # const GValue *value, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # GVariant *variant; 1241s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1241s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1241s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1241s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1241s # "org.freedesktop.DBus.Properties.Set", 1241s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1241s # g_variant_unref (variant); 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_g_signal (GDBusProxy *proxy, 1241s # const gchar *sender_name G_GNUC_UNUSED, 1241s # const gchar *signal_name, 1241s # GVariant *parameters) 1241s # { 1241s # _ExtendedGDBusSignalInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # gsize n; 1241s # guint signal_id; 1241s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1241s # if (info == NULL) 1241s # return; 1241s # num_params = g_variant_n_children (parameters); 1241s # paramv = g_new0 (GValue, num_params + 1); 1241s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1241s # g_value_set_object (¶mv[0], proxy); 1241s # g_variant_iter_init (&iter, parameters); 1241s # n = 1; 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1241s # g_signal_emitv (paramv, signal_id, 0, NULL); 1241s # for (n = 0; n < num_params + 1; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1241s # GVariant *changed_properties, 1241s # const gchar *const *invalidated_properties) 1241s # { 1241s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1241s # guint n; 1241s # const gchar *key; 1241s # GVariantIter *iter; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # g_variant_get (changed_properties, "a{sv}", &iter); 1241s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1241s # g_datalist_remove_data (&proxy->priv->qdata, key); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # g_variant_iter_free (iter); 1241s # for (n = 0; invalidated_properties[n] != NULL; n++) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1241s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # } 1241s # 1241s # static GVariant * 1241s # good_types_proxy_get_good_property_type (GoodTypes *object) 1241s # { 1241s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1241s # GVariant *variant; 1241s # GVariant *value = NULL; 1241s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1241s # value = variant; 1241s # if (variant != NULL) 1241s # g_variant_unref (variant); 1241s # return value; 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_init (GoodTypesProxy *proxy) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1241s # #else 1241s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1241s # #endif 1241s # 1241s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusProxyClass *proxy_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = good_types_proxy_finalize; 1241s # gobject_class->get_property = good_types_proxy_get_property; 1241s # gobject_class->set_property = good_types_proxy_set_property; 1241s # 1241s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1241s # proxy_class->g_signal = good_types_proxy_g_signal; 1241s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1241s # 1241s # good_types_override_properties (gobject_class, 1); 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_iface_init (GoodTypesIface *iface) 1241s # { 1241s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1241s # } 1241s # 1241s # /** 1241s # * good_types_proxy_new: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1241s # * 1241s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # good_types_proxy_new ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # 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); 1241s # } 1241s # 1241s # /** 1241s # * good_types_proxy_new_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with good_types_proxy_new(). 1241s # * 1241s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # GoodTypes * 1241s # good_types_proxy_new_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return GOOD_TYPES (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * good_types_proxy_new_sync: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # GoodTypes * 1241s # good_types_proxy_new_sync ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return GOOD_TYPES (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /** 1241s # * good_types_proxy_new_for_bus: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1241s # * 1241s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # good_types_proxy_new_for_bus ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # 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); 1241s # } 1241s # 1241s # /** 1241s # * good_types_proxy_new_for_bus_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1241s # * 1241s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # GoodTypes * 1241s # good_types_proxy_new_for_bus_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return GOOD_TYPES (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * good_types_proxy_new_for_bus_sync: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # GoodTypes * 1241s # good_types_proxy_new_for_bus_sync ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return GOOD_TYPES (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * GoodTypesSkeleton: 1241s # * 1241s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * GoodTypesSkeletonClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for GoodTypesSkeleton. 1241s # */ 1241s # 1241s # struct _GoodTypesSkeletonPrivate 1241s # { 1241s # GValue *properties; 1241s # GList *changed_properties; 1241s # GSource *changed_properties_idle_source; 1241s # GMainContext *context; 1241s # GMutex lock; 1241s # }; 1241s # 1241s # static void 1241s # _good_types_skeleton_handle_method_call ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name, 1241s # const gchar *method_name, 1241s # GVariant *parameters, 1241s # GDBusMethodInvocation *invocation, 1241s # gpointer user_data) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1241s # _ExtendedGDBusMethodInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # guint num_extra; 1241s # gsize n; 1241s # guint signal_id; 1241s # GValue return_value = G_VALUE_INIT; 1241s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1241s # g_assert (info != NULL); 1241s # num_params = g_variant_n_children (parameters); 1241s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1241s # n = 0; 1241s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1241s # g_value_set_object (¶mv[n++], skeleton); 1241s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1241s # g_value_set_object (¶mv[n++], invocation); 1241s # if (info->pass_fdlist) 1241s # { 1241s # #ifdef G_OS_UNIX 1241s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1241s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1241s # #else 1241s # g_assert_not_reached (); 1241s # #endif 1241s # } 1241s # g_variant_iter_init (&iter, parameters); 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1241s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1241s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1241s # if (!g_value_get_boolean (&return_value)) 1241s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1241s # g_value_unset (&return_value); 1241s # for (n = 0; n < num_params + num_extra; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static GVariant * 1241s # _good_types_skeleton_handle_get_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # GVariant *ret; 1241s # ret = NULL; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # g_value_init (&value, pspec->value_type); 1241s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1241s # g_value_unset (&value); 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _good_types_skeleton_handle_set_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GVariant *variant, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # gboolean ret; 1241s # ret = FALSE; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # if (info->use_gvariant) 1241s # g_value_set_variant (&value, variant); 1241s # else 1241s # g_dbus_gvariant_to_gvalue (variant, &value); 1241s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # g_value_unset (&value); 1241s # ret = TRUE; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1241s # { 1241s # _good_types_skeleton_handle_method_call, 1241s # _good_types_skeleton_handle_get_property, 1241s # _good_types_skeleton_handle_set_property, 1241s # {NULL} 1241s # }; 1241s # 1241s # static GDBusInterfaceInfo * 1241s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return good_types_interface_info (); 1241s # } 1241s # 1241s # static GDBusInterfaceVTable * 1241s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1241s # } 1241s # 1241s # static GVariant * 1241s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1241s # 1241s # GVariantBuilder builder; 1241s # guint n; 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1241s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #else 1241s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #endif 1241s # if (_good_types_interface_info.parent_struct.properties == NULL) 1241s # goto out; 1241s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1241s # { 1241s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1241s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1241s # { 1241s # GVariant *value; 1241s # 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); 1241s # if (value != NULL) 1241s # { 1241s # g_variant_take_ref (value); 1241s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1241s # g_variant_unref (value); 1241s # } 1241s # } 1241s # } 1241s # out: 1241s # return g_variant_builder_end (&builder); 1241s # } 1241s # 1241s # static gboolean _good_types_emit_changed (gpointer user_data); 1241s # 1241s # static void 1241s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1241s # gboolean emit_changed = FALSE; 1241s # 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # if (skeleton->priv->changed_properties_idle_source != NULL) 1241s # { 1241s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1241s # skeleton->priv->changed_properties_idle_source = NULL; 1241s # emit_changed = TRUE; 1241s # } 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # 1241s # if (emit_changed) 1241s # _good_types_emit_changed (skeleton); 1241s # } 1241s # 1241s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_ADD_PRIVATE (GoodTypesSkeleton) 1241s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # good_types_skeleton_finalize (GObject *object) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1241s # guint n; 1241s # for (n = 0; n < 1; n++) 1241s # g_value_unset (&skeleton->priv->properties[n]); 1241s # g_free (skeleton->priv->properties); 1241s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1241s # if (skeleton->priv->changed_properties_idle_source != NULL) 1241s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1241s # g_main_context_unref (skeleton->priv->context); 1241s # g_mutex_clear (&skeleton->priv->lock); 1241s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_get_property (GObject *object, 1241s # guint prop_id, 1241s # GValue *value, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1241s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # } 1241s # 1241s # static gboolean 1241s # _good_types_emit_changed (gpointer user_data) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1241s # GList *l; 1241s # GVariantBuilder builder; 1241s # GVariantBuilder invalidated_builder; 1241s # guint num_changes; 1241s # 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1241s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1241s # #else 1241s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1241s # #endif 1241s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1241s # { 1241s # ChangedProperty *cp = l->data; 1241s # GVariant *variant; 1241s # const GValue *cur_value; 1241s # 1241s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1241s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1241s # { 1241s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1241s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1241s # g_variant_unref (variant); 1241s # num_changes++; 1241s # } 1241s # } 1241s # if (num_changes > 0) 1241s # { 1241s # GList *connections, *ll; 1241s # GVariant *signal_variant; 1241s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1241s # &builder, &invalidated_builder)); 1241s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1241s # for (ll = connections; ll != NULL; ll = ll->next) 1241s # { 1241s # GDBusConnection *connection = ll->data; 1241s # 1241s # g_dbus_connection_emit_signal (connection, 1241s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1241s # "org.freedesktop.DBus.Properties", 1241s # "PropertiesChanged", 1241s # signal_variant, 1241s # NULL); 1241s # } 1241s # g_variant_unref (signal_variant); 1241s # g_list_free_full (connections, g_object_unref); 1241s # } 1241s # else 1241s # { 1241s # g_variant_builder_clear (&builder); 1241s # g_variant_builder_clear (&invalidated_builder); 1241s # } 1241s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1241s # skeleton->priv->changed_properties = NULL; 1241s # skeleton->priv->changed_properties_idle_source = NULL; 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # return FALSE; 1241s # } 1241s # 1241s # static void 1241s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1241s # { 1241s # ChangedProperty *cp; 1241s # GList *l; 1241s # cp = NULL; 1241s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1241s # { 1241s # ChangedProperty *i_cp = l->data; 1241s # if (i_cp->info == info) 1241s # { 1241s # cp = i_cp; 1241s # break; 1241s # } 1241s # } 1241s # if (cp == NULL) 1241s # { 1241s # cp = g_new0 (ChangedProperty, 1); 1241s # cp->prop_id = prop_id; 1241s # cp->info = info; 1241s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1241s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1241s # g_value_copy (orig_value, &cp->orig_value); 1241s # } 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_notify (GObject *object, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # if (skeleton->priv->changed_properties != NULL && 1241s # skeleton->priv->changed_properties_idle_source == NULL) 1241s # { 1241s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1241s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1241s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1241s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1241s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1241s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1241s # } 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_set_property (GObject *object, 1241s # guint prop_id, 1241s # const GValue *value, 1241s # GParamSpec *pspec) 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1241s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1241s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # g_object_freeze_notify (object); 1241s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1241s # { 1241s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1241s # info->emits_changed_signal) 1241s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1241s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1241s # g_object_notify_by_pspec (object, pspec); 1241s # } 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # g_object_thaw_notify (object); 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1241s # #else 1241s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1241s # #endif 1241s # 1241s # g_mutex_init (&skeleton->priv->lock); 1241s # skeleton->priv->context = g_main_context_ref_thread_default (); 1241s # skeleton->priv->properties = g_new0 (GValue, 1); 1241s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1241s # } 1241s # 1241s # static GVariant * 1241s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1241s # GVariant *value; 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # return value; 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusInterfaceSkeletonClass *skeleton_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = good_types_skeleton_finalize; 1241s # gobject_class->get_property = good_types_skeleton_get_property; 1241s # gobject_class->set_property = good_types_skeleton_set_property; 1241s # gobject_class->notify = good_types_skeleton_notify; 1241s # 1241s # 1241s # good_types_override_properties (gobject_class, 1); 1241s # 1241s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1241s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1241s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1241s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1241s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1241s # { 1241s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1241s # } 1241s # 1241s # /** 1241s # * good_types_skeleton_new: 1241s # * 1241s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1241s # * 1241s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1241s # */ 1241s # GoodTypes * 1241s # good_types_skeleton_new (void) 1241s # { 1241s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1241s # } 1241s # Error: 1241s # 1241s # /tmp/tmplh5pq5d8/tmp0y27k3ye.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplh5pq5d8/tmp0y27k3ye.xml', '--output', '-', '--body'] 1241s # Return code: 0 1241s # Output: 1241s # /* 1241s # * This file is generated by gdbus-codegen, do not modify it. 1241s # * 1241s # * The license of this code is the same as for the D-Bus interface description 1241s # * it was derived from. Note that it links to GLib, so must comply with the 1241s # * LGPL linking clauses. 1241s # */ 1241s # 1241s # #ifdef HAVE_CONFIG_H 1241s # # include "config.h" 1241s # #endif 1241s # 1241s # #include 1241s # #ifdef G_OS_UNIX 1241s # # include 1241s # #endif 1241s # 1241s # #ifdef G_ENABLE_DEBUG 1241s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1241s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1241s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1241s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1241s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1241s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1241s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1241s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1241s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1241s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1241s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1241s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1241s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1241s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1241s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1241s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1241s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1241s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1241s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1241s # #else /* !G_ENABLE_DEBUG */ 1241s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1241s # * Do not access GValues directly in your code. Instead, use the 1241s # * g_value_get_*() functions 1241s # */ 1241s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1241s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1241s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1241s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1241s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1241s # #endif /* !G_ENABLE_DEBUG */ 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusArgInfo parent_struct; 1241s # gboolean use_gvariant; 1241s # } _ExtendedGDBusArgInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusMethodInfo parent_struct; 1241s # const gchar *signal_name; 1241s # gboolean pass_fdlist; 1241s # } _ExtendedGDBusMethodInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusSignalInfo parent_struct; 1241s # const gchar *signal_name; 1241s # } _ExtendedGDBusSignalInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusPropertyInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # guint use_gvariant : 1; 1241s # guint emits_changed_signal : 1; 1241s # } _ExtendedGDBusPropertyInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusInterfaceInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # } _ExtendedGDBusInterfaceInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # guint prop_id; 1241s # GValue orig_value; /* the value before the change */ 1241s # } ChangedProperty; 1241s # 1241s # static void 1241s # _changed_property_free (ChangedProperty *data) 1241s # { 1241s # g_value_unset (&data->orig_value); 1241s # g_free (data); 1241s # } 1241s # 1241s # static gboolean 1241s # _g_strv_equal0 (gchar **a, gchar **b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # guint n; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # if (g_strv_length (a) != g_strv_length (b)) 1241s # goto out; 1241s # for (n = 0; a[n] != NULL; n++) 1241s # if (g_strcmp0 (a[n], b[n]) != 0) 1241s # goto out; 1241s # ret = TRUE; 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _g_variant_equal0 (GVariant *a, GVariant *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # ret = g_variant_equal (a, b); 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # G_GNUC_UNUSED static gboolean 1241s # _g_value_equal (const GValue *a, const GValue *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1241s # switch (G_VALUE_TYPE (a)) 1241s # { 1241s # case G_TYPE_BOOLEAN: 1241s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1241s # break; 1241s # case G_TYPE_UCHAR: 1241s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1241s # break; 1241s # case G_TYPE_INT: 1241s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1241s # break; 1241s # case G_TYPE_UINT: 1241s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1241s # break; 1241s # case G_TYPE_INT64: 1241s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1241s # break; 1241s # case G_TYPE_UINT64: 1241s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1241s # break; 1241s # case G_TYPE_DOUBLE: 1241s # { 1241s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1241s # gdouble da = g_value_get_double (a); 1241s # gdouble db = g_value_get_double (b); 1241s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1241s # } 1241s # break; 1241s # case G_TYPE_STRING: 1241s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1241s # break; 1241s # case G_TYPE_VARIANT: 1241s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1241s # break; 1241s # default: 1241s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1241s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1241s # else 1241s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1241s # break; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ 1241s # * Code for interface GoodTypes 1241s # * ------------------------------------------------------------------------ 1241s # */ 1241s # 1241s # /** 1241s # * SECTION:GoodTypes 1241s # * @title: GoodTypes 1241s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1241s # * 1241s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1241s # */ 1241s # 1241s # /* ---- Introspection data for GoodTypes ---- */ 1241s # 1241s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "GoodPropertyType", 1241s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas", 1241s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1241s # NULL 1241s # }, 1241s # "good-property-type", 1241s # FALSE, 1241s # TRUE 1241s # }; 1241s # 1241s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1241s # { 1241s # &_good_types_property_info_good_property_type.parent_struct, 1241s # NULL 1241s # }; 1241s # 1241s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "GoodTypes", 1241s # NULL, 1241s # NULL, 1241s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1241s # NULL 1241s # }, 1241s # "good-types", 1241s # }; 1241s # 1241s # 1241s # /** 1241s # * good_types_interface_info: 1241s # * 1241s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1241s # * 1241s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1241s # */ 1241s # GDBusInterfaceInfo * 1241s # good_types_interface_info (void) 1241s # { 1241s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1241s # } 1241s # 1241s # /** 1241s # * good_types_override_properties: 1241s # * @klass: The class structure for a #GObject derived class. 1241s # * @property_id_begin: The property id to assign to the first overridden property. 1241s # * 1241s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1241s # * The properties are overridden in the order they are defined. 1241s # * 1241s # * Returns: The last property id. 1241s # */ 1241s # guint 1241s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1241s # { 1241s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1241s # return property_id_begin - 1; 1241s # } 1241s # 1241s # 1241s # 1241s # /** 1241s # * GoodTypes: 1241s # * 1241s # * Abstract interface type for the D-Bus interface GoodTypes. 1241s # */ 1241s # 1241s # /** 1241s # * GoodTypesIface: 1241s # * @parent_iface: The parent interface. 1241s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1241s # * 1241s # * Virtual table for the D-Bus interface GoodTypes. 1241s # */ 1241s # 1241s # typedef GoodTypesIface GoodTypesInterface; 1241s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1241s # 1241s # static void 1241s # good_types_default_init (GoodTypesIface *iface) 1241s # { 1241s # /* GObject properties for D-Bus properties: */ 1241s # /** 1241s # * GoodTypes:good-property-type: 1241s # * 1241s # * Represents the D-Bus property "GoodPropertyType". 1241s # * 1241s # * 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. 1241s # */ 1241s # g_object_interface_install_property (iface, 1241s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1241s # } 1241s # 1241s # /** 1241s # * good_types_get_good_property_type: (skip) 1241s # * @object: A GoodTypes. 1241s # * 1241s # * Gets the value of the "GoodPropertyType" D-Bus property. 1241s # * 1241s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1241s # * 1241s # * 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. 1241s # * 1241s # * 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. 1241s # */ 1241s # GVariant * 1241s # good_types_get_good_property_type (GoodTypes *object) 1241s # { 1241s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1241s # 1241s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1241s # } 1241s # 1241s # /** 1241s # * good_types_dup_good_property_type: (skip) 1241s # * @object: A GoodTypes. 1241s # * 1241s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1241s # * 1241s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1241s # * 1241s # * 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(). 1241s # */ 1241s # GVariant * 1241s # good_types_dup_good_property_type (GoodTypes *object) 1241s # { 1241s # GVariant *value; 1241s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1241s # return value; 1241s # } 1241s # 1241s # /** 1241s # * good_types_set_good_property_type: (skip) 1241s # * @object: A GoodTypes. 1241s # * @value: The value to set. 1241s # * 1241s # * Sets the "GoodPropertyType" D-Bus property to @value. 1241s # * 1241s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1241s # */ 1241s # void 1241s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1241s # { 1241s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * GoodTypesProxy: 1241s # * 1241s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * GoodTypesProxyClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for GoodTypesProxy. 1241s # */ 1241s # 1241s # struct _GoodTypesProxyPrivate 1241s # { 1241s # GData *qdata; 1241s # }; 1241s # 1241s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1241s # G_ADD_PRIVATE (GoodTypesProxy) 1241s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1241s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # good_types_proxy_finalize (GObject *object) 1241s # { 1241s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1241s # g_datalist_clear (&proxy->priv->qdata); 1241s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_get_property (GObject *object, 1241s # guint prop_id, 1241s # GValue *value, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # GVariant *variant; 1241s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1241s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1241s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1241s # if (info->use_gvariant) 1241s # { 1241s # g_value_set_variant (value, variant); 1241s # } 1241s # else 1241s # { 1241s # if (variant != NULL) 1241s # g_dbus_gvariant_to_gvalue (variant, value); 1241s # } 1241s # if (variant != NULL) 1241s # g_variant_unref (variant); 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1241s # GAsyncResult *res, 1241s # gpointer user_data) 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info = user_data; 1241s # GError *error; 1241s # GVariant *_ret; 1241s # error = NULL; 1241s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1241s # if (!_ret) 1241s # { 1241s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1241s # info->parent_struct.name, 1241s # error->message, g_quark_to_string (error->domain), error->code); 1241s # g_error_free (error); 1241s # } 1241s # else 1241s # { 1241s # g_variant_unref (_ret); 1241s # } 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_set_property (GObject *object, 1241s # guint prop_id, 1241s # const GValue *value, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # GVariant *variant; 1241s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1241s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1241s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1241s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1241s # "org.freedesktop.DBus.Properties.Set", 1241s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1241s # g_variant_unref (variant); 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_g_signal (GDBusProxy *proxy, 1241s # const gchar *sender_name G_GNUC_UNUSED, 1241s # const gchar *signal_name, 1241s # GVariant *parameters) 1241s # { 1241s # _ExtendedGDBusSignalInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # gsize n; 1241s # guint signal_id; 1241s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1241s # if (info == NULL) 1241s # return; 1241s # num_params = g_variant_n_children (parameters); 1241s # paramv = g_new0 (GValue, num_params + 1); 1241s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1241s # g_value_set_object (¶mv[0], proxy); 1241s # g_variant_iter_init (&iter, parameters); 1241s # n = 1; 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1241s # g_signal_emitv (paramv, signal_id, 0, NULL); 1241s # for (n = 0; n < num_params + 1; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1241s # GVariant *changed_properties, 1241s # const gchar *const *invalidated_properties) 1241s # { 1241s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1241s # guint n; 1241s # const gchar *key; 1241s # GVariantIter *iter; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # g_variant_get (changed_properties, "a{sv}", &iter); 1241s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1241s # g_datalist_remove_data (&proxy->priv->qdata, key); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # g_variant_iter_free (iter); 1241s # for (n = 0; invalidated_properties[n] != NULL; n++) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1241s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # } 1241s # 1241s # static GVariant * 1241s # good_types_proxy_get_good_property_type (GoodTypes *object) 1241s # { 1241s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1241s # GVariant *variant; 1241s # GVariant *value = NULL; 1241s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1241s # value = variant; 1241s # if (variant != NULL) 1241s # g_variant_unref (variant); 1241s # return value; 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_init (GoodTypesProxy *proxy) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1241s # #else 1241s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1241s # #endif 1241s # 1241s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusProxyClass *proxy_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = good_types_proxy_finalize; 1241s # gobject_class->get_property = good_types_proxy_get_property; 1241s # gobject_class->set_property = good_types_proxy_set_property; 1241s # 1241s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1241s # proxy_class->g_signal = good_types_proxy_g_signal; 1241s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1241s # 1241s # good_types_override_properties (gobject_class, 1); 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_iface_init (GoodTypesIface *iface) 1241s # { 1241s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1241s # } 1241s # 1241s # /** 1241s # * good_types_proxy_new: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1241s # * 1241s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # good_types_proxy_new ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # 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); 1241s # } 1241s # 1241s # /** 1241s # * good_types_proxy_new_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with good_types_proxy_new(). 1241s # * 1241s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # GoodTypes * 1241s # good_types_proxy_new_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return GOOD_TYPES (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * good_types_proxy_new_sync: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # GoodTypes * 1241s # good_types_proxy_new_sync ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return GOOD_TYPES (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /** 1241s # * good_types_proxy_new_for_bus: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1241s # * 1241s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # good_types_proxy_new_for_bus ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # 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); 1241s # } 1241s # 1241s # /** 1241s # * good_types_proxy_new_for_bus_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1241s # * 1241s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # GoodTypes * 1241s # good_types_proxy_new_for_bus_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return GOOD_TYPES (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * good_types_proxy_new_for_bus_sync: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # GoodTypes * 1241s # good_types_proxy_new_for_bus_sync ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return GOOD_TYPES (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * GoodTypesSkeleton: 1241s # * 1241s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * GoodTypesSkeletonClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for GoodTypesSkeleton. 1241s # */ 1241s # 1241s # struct _GoodTypesSkeletonPrivate 1241s # { 1241s # GValue *properties; 1241s # GList *changed_properties; 1241s # GSource *changed_properties_idle_source; 1241s # GMainContext *context; 1241s # GMutex lock; 1241s # }; 1241s # 1241s # static void 1241s # _good_types_skeleton_handle_method_call ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name, 1241s # const gchar *method_name, 1241s # GVariant *parameters, 1241s # GDBusMethodInvocation *invocation, 1241s # gpointer user_data) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1241s # _ExtendedGDBusMethodInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # guint num_extra; 1241s # gsize n; 1241s # guint signal_id; 1241s # GValue return_value = G_VALUE_INIT; 1241s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1241s # g_assert (info != NULL); 1241s # num_params = g_variant_n_children (parameters); 1241s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1241s # n = 0; 1241s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1241s # g_value_set_object (¶mv[n++], skeleton); 1241s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1241s # g_value_set_object (¶mv[n++], invocation); 1241s # if (info->pass_fdlist) 1241s # { 1241s # #ifdef G_OS_UNIX 1241s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1241s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1241s # #else 1241s # g_assert_not_reached (); 1241s # #endif 1241s # } 1241s # g_variant_iter_init (&iter, parameters); 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1241s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1241s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1241s # if (!g_value_get_boolean (&return_value)) 1241s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1241s # g_value_unset (&return_value); 1241s # for (n = 0; n < num_params + num_extra; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static GVariant * 1241s # _good_types_skeleton_handle_get_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # GVariant *ret; 1241s # ret = NULL; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # g_value_init (&value, pspec->value_type); 1241s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1241s # g_value_unset (&value); 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _good_types_skeleton_handle_set_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GVariant *variant, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # gboolean ret; 1241s # ret = FALSE; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # if (info->use_gvariant) 1241s # g_value_set_variant (&value, variant); 1241s # else 1241s # g_dbus_gvariant_to_gvalue (variant, &value); 1241s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # g_value_unset (&value); 1241s # ret = TRUE; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1241s # { 1241s # _good_types_skeleton_handle_method_call, 1241s # _good_types_skeleton_handle_get_property, 1241s # _good_types_skeleton_handle_set_property, 1241s # {NULL} 1241s # }; 1241s # 1241s # static GDBusInterfaceInfo * 1241s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return good_types_interface_info (); 1241s # } 1241s # 1241s # static GDBusInterfaceVTable * 1241s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1241s # } 1241s # 1241s # static GVariant * 1241s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1241s # 1241s # GVariantBuilder builder; 1241s # guint n; 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1241s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #else 1241s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #endif 1241s # if (_good_types_interface_info.parent_struct.properties == NULL) 1241s # goto out; 1241s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1241s # { 1241s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1241s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1241s # { 1241s # GVariant *value; 1241s # 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); 1241s # if (value != NULL) 1241s # { 1241s # g_variant_take_ref (value); 1241s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1241s # g_variant_unref (value); 1241s # } 1241s # } 1241s # } 1241s # out: 1241s # return g_variant_builder_end (&builder); 1241s # } 1241s # 1241s # static gboolean _good_types_emit_changed (gpointer user_data); 1241s # 1241s # static void 1241s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1241s # gboolean emit_changed = FALSE; 1241s # 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # if (skeleton->priv->changed_properties_idle_source != NULL) 1241s # { 1241s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1241s # skeleton->priv->changed_properties_idle_source = NULL; 1241s # emit_changed = TRUE; 1241s # } 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # 1241s # if (emit_changed) 1241s # _good_types_emit_changed (skeleton); 1241s # } 1241s # 1241s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_ADD_PRIVATE (GoodTypesSkeleton) 1241s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # good_types_skeleton_finalize (GObject *object) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1241s # guint n; 1241s # for (n = 0; n < 1; n++) 1241s # g_value_unset (&skeleton->priv->properties[n]); 1241s # g_free (skeleton->priv->properties); 1241s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1241s # if (skeleton->priv->changed_properties_idle_source != NULL) 1241s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1241s # g_main_context_unref (skeleton->priv->context); 1241s # g_mutex_clear (&skeleton->priv->lock); 1241s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_get_property (GObject *object, 1241s # guint prop_id, 1241s # GValue *value, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1241s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # } 1241s # 1241s # static gboolean 1241s # _good_types_emit_changed (gpointer user_data) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1241s # GList *l; 1241s # GVariantBuilder builder; 1241s # GVariantBuilder invalidated_builder; 1241s # guint num_changes; 1241s # 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1241s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1241s # #else 1241s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1241s # #endif 1241s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1241s # { 1241s # ChangedProperty *cp = l->data; 1241s # GVariant *variant; 1241s # const GValue *cur_value; 1241s # 1241s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1241s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1241s # { 1241s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1241s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1241s # g_variant_unref (variant); 1241s # num_changes++; 1241s # } 1241s # } 1241s # if (num_changes > 0) 1241s # { 1241s # GList *connections, *ll; 1241s # GVariant *signal_variant; 1241s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1241s # &builder, &invalidated_builder)); 1241s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1241s # for (ll = connections; ll != NULL; ll = ll->next) 1241s # { 1241s # GDBusConnection *connection = ll->data; 1241s # 1241s # g_dbus_connection_emit_signal (connection, 1241s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1241s # "org.freedesktop.DBus.Properties", 1241s # "PropertiesChanged", 1241s # signal_variant, 1241s # NULL); 1241s # } 1241s # g_variant_unref (signal_variant); 1241s # g_list_free_full (connections, g_object_unref); 1241s # } 1241s # else 1241s # { 1241s # g_variant_builder_clear (&builder); 1241s # g_variant_builder_clear (&invalidated_builder); 1241s # } 1241s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1241s # skeleton->priv->changed_properties = NULL; 1241s # skeleton->priv->changed_properties_idle_source = NULL; 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # return FALSE; 1241s # } 1241s # 1241s # static void 1241s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1241s # { 1241s # ChangedProperty *cp; 1241s # GList *l; 1241s # cp = NULL; 1241s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1241s # { 1241s # ChangedProperty *i_cp = l->data; 1241s # if (i_cp->info == info) 1241s # { 1241s # cp = i_cp; 1241s # break; 1241s # } 1241s # } 1241s # if (cp == NULL) 1241s # { 1241s # cp = g_new0 (ChangedProperty, 1); 1241s # cp->prop_id = prop_id; 1241s # cp->info = info; 1241s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1241s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1241s # g_value_copy (orig_value, &cp->orig_value); 1241s # } 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_notify (GObject *object, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # if (skeleton->priv->changed_properties != NULL && 1241s # skeleton->priv->changed_properties_idle_source == NULL) 1241s # { 1241s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1241s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1241s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1241s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1241s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1241s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1241s # } 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_set_property (GObject *object, 1241s # guint prop_id, 1241s # const GValue *value, 1241s # GParamSpec *pspec) 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1241s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1241s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # g_object_freeze_notify (object); 1241s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1241s # { 1241s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1241s # info->emits_changed_signal) 1241s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1241s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1241s # g_object_notify_by_pspec (object, pspec); 1241s # } 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # g_object_thaw_notify (object); 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1241s # #else 1241s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1241s # #endif 1241s # 1241s # g_mutex_init (&skeleton->priv->lock); 1241s # skeleton->priv->context = g_main_context_ref_thread_default (); 1241s # skeleton->priv->properties = g_new0 (GValue, 1); 1241s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1241s # } 1241s # 1241s # static GVariant * 1241s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1241s # GVariant *value; 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # return value; 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusInterfaceSkeletonClass *skeleton_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = good_types_skeleton_finalize; 1241s # gobject_class->get_property = good_types_skeleton_get_property; 1241s # gobject_class->set_property = good_types_skeleton_set_property; 1241s # gobject_class->notify = good_types_skeleton_notify; 1241s # 1241s # 1241s # good_types_override_properties (gobject_class, 1); 1241s # 1241s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1241s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1241s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1241s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1241s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1241s # { 1241s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1241s # } 1241s # 1241s # /** 1241s # * good_types_skeleton_new: 1241s # * 1241s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1241s # * 1241s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1241s # */ 1241s # GoodTypes * 1241s # good_types_skeleton_new (void) 1241s # { 1241s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1241s # } 1241s # Error: 1241s # 1241s # /tmp/tmplh5pq5d8/tmpxnwjy8i5.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplh5pq5d8/tmpxnwjy8i5.xml', '--output', '-', '--body'] 1241s # Return code: 0 1241s # Output: 1241s # /* 1241s # * This file is generated by gdbus-codegen, do not modify it. 1241s # * 1241s # * The license of this code is the same as for the D-Bus interface description 1241s # * it was derived from. Note that it links to GLib, so must comply with the 1241s # * LGPL linking clauses. 1241s # */ 1241s # 1241s # #ifdef HAVE_CONFIG_H 1241s # # include "config.h" 1241s # #endif 1241s # 1241s # #include 1241s # #ifdef G_OS_UNIX 1241s # # include 1241s # #endif 1241s # 1241s # #ifdef G_ENABLE_DEBUG 1241s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1241s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1241s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1241s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1241s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1241s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1241s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1241s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1241s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1241s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1241s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1241s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1241s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1241s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1241s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1241s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1241s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1241s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1241s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1241s # #else /* !G_ENABLE_DEBUG */ 1241s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1241s # * Do not access GValues directly in your code. Instead, use the 1241s # * g_value_get_*() functions 1241s # */ 1241s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1241s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1241s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1241s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1241s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1241s # #endif /* !G_ENABLE_DEBUG */ 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusArgInfo parent_struct; 1241s # gboolean use_gvariant; 1241s # } _ExtendedGDBusArgInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusMethodInfo parent_struct; 1241s # const gchar *signal_name; 1241s # gboolean pass_fdlist; 1241s # } _ExtendedGDBusMethodInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusSignalInfo parent_struct; 1241s # const gchar *signal_name; 1241s # } _ExtendedGDBusSignalInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusPropertyInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # guint use_gvariant : 1; 1241s # guint emits_changed_signal : 1; 1241s # } _ExtendedGDBusPropertyInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusInterfaceInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # } _ExtendedGDBusInterfaceInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # guint prop_id; 1241s # GValue orig_value; /* the value before the change */ 1241s # } ChangedProperty; 1241s # 1241s # static void 1241s # _changed_property_free (ChangedProperty *data) 1241s # { 1241s # g_value_unset (&data->orig_value); 1241s # g_free (data); 1241s # } 1241s # 1241s # static gboolean 1241s # _g_strv_equal0 (gchar **a, gchar **b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # guint n; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # if (g_strv_length (a) != g_strv_length (b)) 1241s # goto out; 1241s # for (n = 0; a[n] != NULL; n++) 1241s # if (g_strcmp0 (a[n], b[n]) != 0) 1241s # goto out; 1241s # ret = TRUE; 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _g_variant_equal0 (GVariant *a, GVariant *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # ret = g_variant_equal (a, b); 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # G_GNUC_UNUSED static gboolean 1241s # _g_value_equal (const GValue *a, const GValue *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1241s # switch (G_VALUE_TYPE (a)) 1241s # { 1241s # case G_TYPE_BOOLEAN: 1241s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1241s # break; 1241s # case G_TYPE_UCHAR: 1241s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1241s # break; 1241s # case G_TYPE_INT: 1241s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1241s # break; 1241s # case G_TYPE_UINT: 1241s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1241s # break; 1241s # case G_TYPE_INT64: 1241s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1241s # break; 1241s # case G_TYPE_UINT64: 1241s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1241s # break; 1241s # case G_TYPE_DOUBLE: 1241s # { 1241s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1241s # gdouble da = g_value_get_double (a); 1241s # gdouble db = g_value_get_double (b); 1241s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1241s # } 1241s # break; 1241s # case G_TYPE_STRING: 1241s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1241s # break; 1241s # case G_TYPE_VARIANT: 1241s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1241s # break; 1241s # default: 1241s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1241s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1241s # else 1241s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1241s # break; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ 1241s # * Code for interface GoodTypes 1241s # * ------------------------------------------------------------------------ 1241s # */ 1241s # 1241s # /** 1241s # * SECTION:GoodTypes 1241s # * @title: GoodTypes 1241s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1241s # * 1241s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1241s # */ 1241s # 1241s # /* ---- Introspection data for GoodTypes ---- */ 1241s # 1241s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "GoodPropertyType", 1241s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})", 1241s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1241s # NULL 1241s # }, 1241s # "good-property-type", 1241s # FALSE, 1241s # TRUE 1241s # }; 1241s # 1241s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1241s # { 1241s # &_good_types_property_info_good_property_type.parent_struct, 1241s # NULL 1241s # }; 1241s # 1241s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "GoodTypes", 1241s # NULL, 1241s # NULL, 1241s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1241s # NULL 1241s # }, 1241s # "good-types", 1241s # }; 1241s # 1241s # 1241s # /** 1241s # * good_types_interface_info: 1241s # * 1241s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1241s # * 1241s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1241s # */ 1241s # GDBusInterfaceInfo * 1241s # good_types_interface_info (void) 1241s # { 1241s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1241s # } 1241s # 1241s # /** 1241s # * good_types_override_properties: 1241s # * @klass: The class structure for a #GObject derived class. 1241s # * @property_id_begin: The property id to assign to the first overridden property. 1241s # * 1241s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1241s # * The properties are overridden in the order they are defined. 1241s # * 1241s # * Returns: The last property id. 1241s # */ 1241s # guint 1241s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1241s # { 1241s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1241s # return property_id_begin - 1; 1241s # } 1241s # 1241s # 1241s # 1241s # /** 1241s # * GoodTypes: 1241s # * 1241s # * Abstract interface type for the D-Bus interface GoodTypes. 1241s # */ 1241s # 1241s # /** 1241s # * GoodTypesIface: 1241s # * @parent_iface: The parent interface. 1241s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1241s # * 1241s # * Virtual table for the D-Bus interface GoodTypes. 1241s # */ 1241s # 1241s # typedef GoodTypesIface GoodTypesInterface; 1241s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1241s # 1241s # static void 1241s # good_types_default_init (GoodTypesIface *iface) 1241s # { 1241s # /* GObject properties for D-Bus properties: */ 1241s # /** 1241s # * GoodTypes:good-property-type: 1241s # * 1241s # * Represents the D-Bus property "GoodPropertyType". 1241s # * 1241s # * 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. 1241s # */ 1241s # g_object_interface_install_property (iface, 1241s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1241s # } 1241s # 1241s # /** 1241s # * good_types_get_good_property_type: (skip) 1241s # * @object: A GoodTypes. 1241s # * 1241s # * Gets the value of the "GoodPropertyType" D-Bus property. 1241s # * 1241s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1241s # * 1241s # * 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. 1241s # * 1241s # * 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. 1241s # */ 1241s # GVariant * 1241s # good_types_get_good_property_type (GoodTypes *object) 1241s # { 1241s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1241s # 1241s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1241s # } 1241s # 1241s # /** 1241s # * good_types_dup_good_property_type: (skip) 1241s # * @object: A GoodTypes. 1241s # * 1241s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1241s # * 1241s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1241s # * 1241s # * 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(). 1241s # */ 1241s # GVariant * 1241s # good_types_dup_good_property_type (GoodTypes *object) 1241s # { 1241s # GVariant *value; 1241s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1241s # return value; 1241s # } 1241s # 1241s # /** 1241s # * good_types_set_good_property_type: (skip) 1241s # * @object: A GoodTypes. 1241s # * @value: The value to set. 1241s # * 1241s # * Sets the "GoodPropertyType" D-Bus property to @value. 1241s # * 1241s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1241s # */ 1241s # void 1241s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1241s # { 1241s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * GoodTypesProxy: 1241s # * 1241s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * GoodTypesProxyClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for GoodTypesProxy. 1241s # */ 1241s # 1241s # struct _GoodTypesProxyPrivate 1241s # { 1241s # GData *qdata; 1241s # }; 1241s # 1241s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1241s # G_ADD_PRIVATE (GoodTypesProxy) 1241s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1241s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # good_types_proxy_finalize (GObject *object) 1241s # { 1241s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1241s # g_datalist_clear (&proxy->priv->qdata); 1241s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_get_property (GObject *object, 1241s # guint prop_id, 1241s # GValue *value, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # GVariant *variant; 1241s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1241s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1241s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1241s # if (info->use_gvariant) 1241s # { 1241s # g_value_set_variant (value, variant); 1241s # } 1241s # else 1241s # { 1241s # if (variant != NULL) 1241s # g_dbus_gvariant_to_gvalue (variant, value); 1241s # } 1241s # if (variant != NULL) 1241s # g_variant_unref (variant); 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1241s # GAsyncResult *res, 1241s # gpointer user_data) 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info = user_data; 1241s # GError *error; 1241s # GVariant *_ret; 1241s # error = NULL; 1241s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1241s # if (!_ret) 1241s # { 1241s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1241s # info->parent_struct.name, 1241s # error->message, g_quark_to_string (error->domain), error->code); 1241s # g_error_free (error); 1241s # } 1241s # else 1241s # { 1241s # g_variant_unref (_ret); 1241s # } 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_set_property (GObject *object, 1241s # guint prop_id, 1241s # const GValue *value, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # GVariant *variant; 1241s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1241s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1241s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1241s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1241s # "org.freedesktop.DBus.Properties.Set", 1241s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1241s # g_variant_unref (variant); 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_g_signal (GDBusProxy *proxy, 1241s # const gchar *sender_name G_GNUC_UNUSED, 1241s # const gchar *signal_name, 1241s # GVariant *parameters) 1241s # { 1241s # _ExtendedGDBusSignalInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # gsize n; 1241s # guint signal_id; 1241s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1241s # if (info == NULL) 1241s # return; 1241s # num_params = g_variant_n_children (parameters); 1241s # paramv = g_new0 (GValue, num_params + 1); 1241s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1241s # g_value_set_object (¶mv[0], proxy); 1241s # g_variant_iter_init (&iter, parameters); 1241s # n = 1; 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1241s # g_signal_emitv (paramv, signal_id, 0, NULL); 1241s # for (n = 0; n < num_params + 1; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1241s # GVariant *changed_properties, 1241s # const gchar *const *invalidated_properties) 1241s # { 1241s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1241s # guint n; 1241s # const gchar *key; 1241s # GVariantIter *iter; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # g_variant_get (changed_properties, "a{sv}", &iter); 1241s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1241s # g_datalist_remove_data (&proxy->priv->qdata, key); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # g_variant_iter_free (iter); 1241s # for (n = 0; invalidated_properties[n] != NULL; n++) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1241s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # } 1241s # 1241s # static GVariant * 1241s # good_types_proxy_get_good_property_type (GoodTypes *object) 1241s # { 1241s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1241s # GVariant *variant; 1241s # GVariant *value = NULL; 1241s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1241s # value = variant; 1241s # if (variant != NULL) 1241s # g_variant_unref (variant); 1241s # return value; 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_init (GoodTypesProxy *proxy) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1241s # #else 1241s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1241s # #endif 1241s # 1241s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusProxyClass *proxy_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = good_types_proxy_finalize; 1241s # gobject_class->get_property = good_types_proxy_get_property; 1241s # gobject_class->set_property = good_types_proxy_set_property; 1241s # 1241s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1241s # proxy_class->g_signal = good_types_proxy_g_signal; 1241s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1241s # 1241s # good_types_override_properties (gobject_class, 1); 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # good_types_proxy_iface_init (GoodTypesIface *iface) 1241s # { 1241s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1241s # } 1241s # 1241s # /** 1241s # * good_types_proxy_new: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1241s # * 1241s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # good_types_proxy_new ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # 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); 1241s # } 1241s # 1241s # /** 1241s # * good_types_proxy_new_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with good_types_proxy_new(). 1241s # * 1241s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # GoodTypes * 1241s # good_types_proxy_new_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return GOOD_TYPES (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * good_types_proxy_new_sync: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # GoodTypes * 1241s # good_types_proxy_new_sync ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return GOOD_TYPES (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /** 1241s # * good_types_proxy_new_for_bus: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1241s # * 1241s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # good_types_proxy_new_for_bus ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # 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); 1241s # } 1241s # 1241s # /** 1241s # * good_types_proxy_new_for_bus_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1241s # * 1241s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # GoodTypes * 1241s # good_types_proxy_new_for_bus_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return GOOD_TYPES (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * good_types_proxy_new_for_bus_sync: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # GoodTypes * 1241s # good_types_proxy_new_for_bus_sync ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return GOOD_TYPES (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * GoodTypesSkeleton: 1241s # * 1241s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * GoodTypesSkeletonClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for GoodTypesSkeleton. 1241s # */ 1241s # 1241s # struct _GoodTypesSkeletonPrivate 1241s # { 1241s # GValue *properties; 1241s # GList *changed_properties; 1241s # GSource *changed_properties_idle_source; 1241s # GMainContext *context; 1241s # GMutex lock; 1241s # }; 1241s # 1241s # static void 1241s # _good_types_skeleton_handle_method_call ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name, 1241s # const gchar *method_name, 1241s # GVariant *parameters, 1241s # GDBusMethodInvocation *invocation, 1241s # gpointer user_data) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1241s # _ExtendedGDBusMethodInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # guint num_extra; 1241s # gsize n; 1241s # guint signal_id; 1241s # GValue return_value = G_VALUE_INIT; 1241s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1241s # g_assert (info != NULL); 1241s # num_params = g_variant_n_children (parameters); 1241s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1241s # n = 0; 1241s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1241s # g_value_set_object (¶mv[n++], skeleton); 1241s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1241s # g_value_set_object (¶mv[n++], invocation); 1241s # if (info->pass_fdlist) 1241s # { 1241s # #ifdef G_OS_UNIX 1241s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1241s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1241s # #else 1241s # g_assert_not_reached (); 1241s # #endif 1241s # } 1241s # g_variant_iter_init (&iter, parameters); 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1241s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1241s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1241s # if (!g_value_get_boolean (&return_value)) 1241s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1241s # g_value_unset (&return_value); 1241s # for (n = 0; n < num_params + num_extra; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static GVariant * 1241s # _good_types_skeleton_handle_get_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # GVariant *ret; 1241s # ret = NULL; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # g_value_init (&value, pspec->value_type); 1241s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1241s # g_value_unset (&value); 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _good_types_skeleton_handle_set_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GVariant *variant, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # gboolean ret; 1241s # ret = FALSE; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # if (info->use_gvariant) 1241s # g_value_set_variant (&value, variant); 1241s # else 1241s # g_dbus_gvariant_to_gvalue (variant, &value); 1241s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # g_value_unset (&value); 1241s # ret = TRUE; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1241s # { 1241s # _good_types_skeleton_handle_method_call, 1241s # _good_types_skeleton_handle_get_property, 1241s # _good_types_skeleton_handle_set_property, 1241s # {NULL} 1241s # }; 1241s # 1241s # static GDBusInterfaceInfo * 1241s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return good_types_interface_info (); 1241s # } 1241s # 1241s # static GDBusInterfaceVTable * 1241s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1241s # } 1241s # 1241s # static GVariant * 1241s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1241s # 1241s # GVariantBuilder builder; 1241s # guint n; 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1241s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #else 1241s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #endif 1241s # if (_good_types_interface_info.parent_struct.properties == NULL) 1241s # goto out; 1241s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1241s # { 1241s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1241s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1241s # { 1241s # GVariant *value; 1241s # 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); 1241s # if (value != NULL) 1241s # { 1241s # g_variant_take_ref (value); 1241s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1241s # g_variant_unref (value); 1241s # } 1241s # } 1241s # } 1241s # out: 1241s # return g_variant_builder_end (&builder); 1241s # } 1241s # 1241s # static gboolean _good_types_emit_changed (gpointer user_data); 1241s # 1241s # static void 1241s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1241s # gboolean emit_changed = FALSE; 1241s # 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # if (skeleton->priv->changed_properties_idle_source != NULL) 1241s # { 1241s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1241s # skeleton->priv->changed_properties_idle_source = NULL; 1241s # emit_changed = TRUE; 1241s # } 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # 1241s # if (emit_changed) 1241s # _good_types_emit_changed (skeleton); 1241s # } 1241s # 1241s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_ADD_PRIVATE (GoodTypesSkeleton) 1241s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # good_types_skeleton_finalize (GObject *object) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1241s # guint n; 1241s # for (n = 0; n < 1; n++) 1241s # g_value_unset (&skeleton->priv->properties[n]); 1241s # g_free (skeleton->priv->properties); 1241s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1241s # if (skeleton->priv->changed_properties_idle_source != NULL) 1241s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1241s # g_main_context_unref (skeleton->priv->context); 1241s # g_mutex_clear (&skeleton->priv->lock); 1241s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_get_property (GObject *object, 1241s # guint prop_id, 1241s # GValue *value, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1241s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # } 1241s # 1241s # static gboolean 1241s # _good_types_emit_changed (gpointer user_data) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1241s # GList *l; 1241s # GVariantBuilder builder; 1241s # GVariantBuilder invalidated_builder; 1241s # guint num_changes; 1241s # 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1241s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1241s # #else 1241s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1241s # #endif 1241s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1241s # { 1241s # ChangedProperty *cp = l->data; 1241s # GVariant *variant; 1241s # const GValue *cur_value; 1241s # 1241s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1241s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1241s # { 1241s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1241s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1241s # g_variant_unref (variant); 1241s # num_changes++; 1241s # } 1241s # } 1241s # if (num_changes > 0) 1241s # { 1241s # GList *connections, *ll; 1241s # GVariant *signal_variant; 1241s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1241s # &builder, &invalidated_builder)); 1241s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1241s # for (ll = connections; ll != NULL; ll = ll->next) 1241s # { 1241s # GDBusConnection *connection = ll->data; 1241s # 1241s # g_dbus_connection_emit_signal (connection, 1241s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1241s # "org.freedesktop.DBus.Properties", 1241s # "PropertiesChanged", 1241s # signal_variant, 1241s # NULL); 1241s # } 1241s # g_variant_unref (signal_variant); 1241s # g_list_free_full (connections, g_object_unref); 1241s # } 1241s # else 1241s # { 1241s # g_variant_builder_clear (&builder); 1241s # g_variant_builder_clear (&invalidated_builder); 1241s # } 1241s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1241s # skeleton->priv->changed_properties = NULL; 1241s # skeleton->priv->changed_properties_idle_source = NULL; 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # return FALSE; 1241s # } 1241s # 1241s # static void 1241s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1241s # { 1241s # ChangedProperty *cp; 1241s # GList *l; 1241s # cp = NULL; 1241s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1241s # { 1241s # ChangedProperty *i_cp = l->data; 1241s # if (i_cp->info == info) 1241s # { 1241s # cp = i_cp; 1241s # break; 1241s # } 1241s # } 1241s # if (cp == NULL) 1241s # { 1241s # cp = g_new0 (ChangedProperty, 1); 1241s # cp->prop_id = prop_id; 1241s # cp->info = info; 1241s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1241s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1241s # g_value_copy (orig_value, &cp->orig_value); 1241s # } 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_notify (GObject *object, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # if (skeleton->priv->changed_properties != NULL && 1241s # skeleton->priv->changed_properties_idle_source == NULL) 1241s # { 1241s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1241s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1241s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1241s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1241s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1241s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1241s # } 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_set_property (GObject *object, 1241s # guint prop_id, 1241s # const GValue *value, 1241s # GParamSpec *pspec) 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1241s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1241s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # g_object_freeze_notify (object); 1241s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1241s # { 1241s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1241s # info->emits_changed_signal) 1241s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1241s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1241s # g_object_notify_by_pspec (object, pspec); 1241s # } 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # g_object_thaw_notify (object); 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1241s # #else 1241s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1241s # #endif 1241s # 1241s # g_mutex_init (&skeleton->priv->lock); 1241s # skeleton->priv->context = g_main_context_ref_thread_default (); 1241s # skeleton->priv->properties = g_new0 (GValue, 1); 1241s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1241s # } 1241s # 1241s # static GVariant * 1241s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1241s # { 1241s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1241s # GVariant *value; 1241s # g_mutex_lock (&skeleton->priv->lock); 1241s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1241s # g_mutex_unlock (&skeleton->priv->lock); 1241s # return value; 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusInterfaceSkeletonClass *skeleton_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = good_types_skeleton_finalize; 1241s # gobject_class->get_property = good_types_skeleton_get_property; 1241s # gobject_class->set_property = good_types_skeleton_set_property; 1241s # gobject_class->notify = good_types_skeleton_notify; 1241s # 1241s # 1241s # good_types_override_properties (gobject_class, 1); 1241s # 1241s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1241s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1241s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1241s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1241s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1241s # { 1241s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1241s # } 1241s # 1241s # /** 1241s # * good_types_skeleton_new: 1241s # * 1241s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1241s # * 1241s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1241s # */ 1241s # GoodTypes * 1241s # good_types_skeleton_new (void) 1241s # { 1241s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1241s # } 1241s # Error: 1241s ok 3 __main__.TestCodegen.test_empty_interface_body 1241s # gdbus-codegen: /usr/bin/gdbus-codegen 1241s # tmpdir: /tmp/tmp_ki2_926 1241s # /tmp/tmp_ki2_926/tmpej24zcx4.xml: 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp_ki2_926/tmpej24zcx4.xml', '--output', '-', '--body'] 1241s # Return code: 0 1241s # Output: 1241s # /* 1241s # * This file is generated by gdbus-codegen, do not modify it. 1241s # * 1241s # * The license of this code is the same as for the D-Bus interface description 1241s # * it was derived from. Note that it links to GLib, so must comply with the 1241s # * LGPL linking clauses. 1241s # */ 1241s # 1241s # #ifdef HAVE_CONFIG_H 1241s # # include "config.h" 1241s # #endif 1241s # 1241s # #include 1241s # #ifdef G_OS_UNIX 1241s # # include 1241s # #endif 1241s # 1241s # #ifdef G_ENABLE_DEBUG 1241s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1241s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1241s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1241s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1241s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1241s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1241s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1241s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1241s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1241s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1241s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1241s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1241s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1241s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1241s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1241s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1241s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1241s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1241s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1241s # #else /* !G_ENABLE_DEBUG */ 1241s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1241s # * Do not access GValues directly in your code. Instead, use the 1241s # * g_value_get_*() functions 1241s # */ 1241s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1241s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1241s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1241s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1241s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1241s # #endif /* !G_ENABLE_DEBUG */ 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusArgInfo parent_struct; 1241s # gboolean use_gvariant; 1241s # } _ExtendedGDBusArgInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusMethodInfo parent_struct; 1241s # const gchar *signal_name; 1241s # gboolean pass_fdlist; 1241s # } _ExtendedGDBusMethodInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusSignalInfo parent_struct; 1241s # const gchar *signal_name; 1241s # } _ExtendedGDBusSignalInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusPropertyInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # guint use_gvariant : 1; 1241s # guint emits_changed_signal : 1; 1241s # } _ExtendedGDBusPropertyInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusInterfaceInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # } _ExtendedGDBusInterfaceInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # guint prop_id; 1241s # GValue orig_value; /* the value before the change */ 1241s # } ChangedProperty; 1241s # 1241s # static void 1241s # _changed_property_free (ChangedProperty *data) 1241s # { 1241s # g_value_unset (&data->orig_value); 1241s # g_free (data); 1241s # } 1241s # 1241s # static gboolean 1241s # _g_strv_equal0 (gchar **a, gchar **b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # guint n; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # if (g_strv_length (a) != g_strv_length (b)) 1241s # goto out; 1241s # for (n = 0; a[n] != NULL; n++) 1241s # if (g_strcmp0 (a[n], b[n]) != 0) 1241s # goto out; 1241s # ret = TRUE; 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _g_variant_equal0 (GVariant *a, GVariant *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # ret = g_variant_equal (a, b); 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # G_GNUC_UNUSED static gboolean 1241s # _g_value_equal (const GValue *a, const GValue *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1241s # switch (G_VALUE_TYPE (a)) 1241s # { 1241s # case G_TYPE_BOOLEAN: 1241s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1241s # break; 1241s # case G_TYPE_UCHAR: 1241s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1241s # break; 1241s # case G_TYPE_INT: 1241s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1241s # break; 1241s # case G_TYPE_UINT: 1241s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1241s # break; 1241s # case G_TYPE_INT64: 1241s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1241s # break; 1241s # case G_TYPE_UINT64: 1241s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1241s # break; 1241s # case G_TYPE_DOUBLE: 1241s # { 1241s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1241s # gdouble da = g_value_get_double (a); 1241s # gdouble db = g_value_get_double (b); 1241s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1241s # } 1241s # break; 1241s # case G_TYPE_STRING: 1241s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1241s # break; 1241s # case G_TYPE_VARIANT: 1241s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1241s # break; 1241s # default: 1241s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1241s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1241s # else 1241s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1241s # break; 1241s # } 1241s # return ret; 1241s # } 1241s # Error: 1241s ok 4 __main__.TestCodegen.test_empty_interface_header 1241s # gdbus-codegen: /usr/bin/gdbus-codegen 1241s # tmpdir: /tmp/tmpdzlymm15 1241s # /tmp/tmpdzlymm15/tmpow7rnjvx.xml: 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpdzlymm15/tmpow7rnjvx.xml', '--output', '-', '--header'] 1241s # Return code: 0 1241s # Output: 1241s # /* 1241s # * This file is generated by gdbus-codegen, do not modify it. 1241s # * 1241s # * The license of this code is the same as for the D-Bus interface description 1241s # * it was derived from. Note that it links to GLib, so must comply with the 1241s # * LGPL linking clauses. 1241s # */ 1241s # 1241s # #ifndef __STDOUT__ 1241s # #define __STDOUT__ 1241s # 1241s # #include 1241s # 1241s # G_BEGIN_DECLS 1241s # 1241s # 1241s # G_END_DECLS 1241s # 1241s # #endif /* __STDOUT__ */ 1241s # Error: 1241s ok 5 __main__.TestCodegen.test_empty_interface_info_body 1241s # gdbus-codegen: /usr/bin/gdbus-codegen 1241s # tmpdir: /tmp/tmpz8_64ugk 1241s # /tmp/tmpz8_64ugk/tmpudem0s2r.xml: 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpz8_64ugk/tmpudem0s2r.xml', '--output', '-', '--interface-info-body'] 1241s # Return code: 0 1241s # Output: 1241s # /* 1241s # * This file is generated by gdbus-codegen, do not modify it. 1241s # * 1241s # * The license of this code is the same as for the D-Bus interface description 1241s # * it was derived from. Note that it links to GLib, so must comply with the 1241s # * LGPL linking clauses. 1241s # */ 1241s # 1241s # #ifdef HAVE_CONFIG_H 1241s # # include "config.h" 1241s # #endif 1241s # 1241s # #include 1241s # Error: 1241s ok 6 __main__.TestCodegen.test_empty_interface_info_header 1241s # gdbus-codegen: /usr/bin/gdbus-codegen 1241s # tmpdir: /tmp/tmp745udxej 1241s # /tmp/tmp745udxej/tmpm2pdtenr.xml: 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp745udxej/tmpm2pdtenr.xml', '--output', '-', '--interface-info-header'] 1241s # Return code: 0 1241s # Output: 1241s # /* 1241s # * This file is generated by gdbus-codegen, do not modify it. 1241s # * 1241s # * The license of this code is the same as for the D-Bus interface description 1241s # * it was derived from. Note that it links to GLib, so must comply with the 1241s # * LGPL linking clauses. 1241s # */ 1241s # 1241s # #ifndef __STDOUT__ 1241s # #define __STDOUT__ 1241s # 1241s # #include 1241s # 1241s # G_BEGIN_DECLS 1241s # 1241s # 1241s # G_END_DECLS 1241s # 1241s # #endif /* __STDOUT__ */ 1241s # Error: 1241s ok 7 __main__.TestCodegen.test_generate_docbook 1241s # gdbus-codegen: /usr/bin/gdbus-codegen 1241s # tmpdir: /tmp/tmpyifss5zo 1241s # /tmp/tmpyifss5zo/tmpd6tlob6y.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpyifss5zo/tmpd6tlob6y.xml', '--generate-docbook', 'test'] 1241s # Return code: 0 1241s # Output: 1241s # 1241s # Error: 1241s ok 8 __main__.TestCodegen.test_generate_md 1241s # gdbus-codegen: /usr/bin/gdbus-codegen 1241s # tmpdir: /tmp/tmpev1szpx1 1241s # /tmp/tmpev1szpx1/tmp53709ebx.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpev1szpx1/tmp53709ebx.xml', '--generate-md', 'test'] 1241s # Return code: 0 1241s # Output: 1241s # 1241s # Error: 1241s ok 9 __main__.TestCodegen.test_generate_methods_marshaller_simple_method 1241s # gdbus-codegen: /usr/bin/gdbus-codegen 1241s # tmpdir: /tmp/tmp9eltk4rh 1241s # /tmp/tmp9eltk4rh/tmpe7ymlu20.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9eltk4rh/tmpe7ymlu20.xml', '--output', '-', '--body'] 1241s # Return code: 0 1241s # Output: 1241s # /* 1241s # * This file is generated by gdbus-codegen, do not modify it. 1241s # * 1241s # * The license of this code is the same as for the D-Bus interface description 1241s # * it was derived from. Note that it links to GLib, so must comply with the 1241s # * LGPL linking clauses. 1241s # */ 1241s # 1241s # #ifdef HAVE_CONFIG_H 1241s # # include "config.h" 1241s # #endif 1241s # 1241s # #include 1241s # #ifdef G_OS_UNIX 1241s # # include 1241s # #endif 1241s # 1241s # #ifdef G_ENABLE_DEBUG 1241s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1241s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1241s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1241s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1241s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1241s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1241s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1241s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1241s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1241s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1241s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1241s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1241s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1241s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1241s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1241s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1241s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1241s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1241s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1241s # #else /* !G_ENABLE_DEBUG */ 1241s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1241s # * Do not access GValues directly in your code. Instead, use the 1241s # * g_value_get_*() functions 1241s # */ 1241s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1241s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1241s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1241s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1241s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1241s # #endif /* !G_ENABLE_DEBUG */ 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusArgInfo parent_struct; 1241s # gboolean use_gvariant; 1241s # } _ExtendedGDBusArgInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusMethodInfo parent_struct; 1241s # const gchar *signal_name; 1241s # gboolean pass_fdlist; 1241s # } _ExtendedGDBusMethodInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusSignalInfo parent_struct; 1241s # const gchar *signal_name; 1241s # } _ExtendedGDBusSignalInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusPropertyInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # guint use_gvariant : 1; 1241s # guint emits_changed_signal : 1; 1241s # } _ExtendedGDBusPropertyInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusInterfaceInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # } _ExtendedGDBusInterfaceInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # guint prop_id; 1241s # GValue orig_value; /* the value before the change */ 1241s # } ChangedProperty; 1241s # 1241s # static void 1241s # _changed_property_free (ChangedProperty *data) 1241s # { 1241s # g_value_unset (&data->orig_value); 1241s # g_free (data); 1241s # } 1241s # 1241s # static gboolean 1241s # _g_strv_equal0 (gchar **a, gchar **b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # guint n; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # if (g_strv_length (a) != g_strv_length (b)) 1241s # goto out; 1241s # for (n = 0; a[n] != NULL; n++) 1241s # if (g_strcmp0 (a[n], b[n]) != 0) 1241s # goto out; 1241s # ret = TRUE; 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _g_variant_equal0 (GVariant *a, GVariant *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # ret = g_variant_equal (a, b); 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # G_GNUC_UNUSED static gboolean 1241s # _g_value_equal (const GValue *a, const GValue *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1241s # switch (G_VALUE_TYPE (a)) 1241s # { 1241s # case G_TYPE_BOOLEAN: 1241s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1241s # break; 1241s # case G_TYPE_UCHAR: 1241s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1241s # break; 1241s # case G_TYPE_INT: 1241s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1241s # break; 1241s # case G_TYPE_UINT: 1241s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1241s # break; 1241s # case G_TYPE_INT64: 1241s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1241s # break; 1241s # case G_TYPE_UINT64: 1241s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1241s # break; 1241s # case G_TYPE_DOUBLE: 1241s # { 1241s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1241s # gdouble da = g_value_get_double (a); 1241s # gdouble db = g_value_get_double (b); 1241s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1241s # } 1241s # break; 1241s # case G_TYPE_STRING: 1241s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1241s # break; 1241s # case G_TYPE_VARIANT: 1241s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1241s # break; 1241s # default: 1241s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1241s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1241s # else 1241s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1241s # break; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static void 1241s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1241s # GClosure *closure, 1241s # GValue *return_value, 1241s # unsigned int n_param_values, 1241s # const GValue *param_values, 1241s # void *invocation_hint G_GNUC_UNUSED, 1241s # void *marshal_data) 1241s # { 1241s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1241s # (void *data1, 1241s # GDBusMethodInvocation *arg_method_invocation, 1241s # void *data2); 1241s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1241s # GCClosure *cc = (GCClosure*) closure; 1241s # void *data1, *data2; 1241s # gboolean v_return; 1241s # 1241s # g_return_if_fail (return_value != NULL); 1241s # g_return_if_fail (n_param_values == 2); 1241s # 1241s # if (G_CCLOSURE_SWAP_DATA (closure)) 1241s # { 1241s # data1 = closure->data; 1241s # data2 = g_value_peek_pointer (param_values + 0); 1241s # } 1241s # else 1241s # { 1241s # data1 = g_value_peek_pointer (param_values + 0); 1241s # data2 = closure->data; 1241s # } 1241s # 1241s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1241s # (marshal_data ? marshal_data : cc->callback); 1241s # 1241s # v_return = 1241s # callback (data1, 1241s # g_marshal_value_peek_object (param_values + 1), 1241s # data2); 1241s # 1241s # g_value_set_boolean (return_value, v_return); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ 1241s # * Code for interface org.project.CallableIface 1241s # * ------------------------------------------------------------------------ 1241s # */ 1241s # 1241s # /** 1241s # * SECTION:OrgProjectCallableIface 1241s # * @title: OrgProjectCallableIface 1241s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1241s # * 1241s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1241s # */ 1241s # 1241s # /* ---- Introspection data for org.project.CallableIface ---- */ 1241s # 1241s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_simple_method = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "SimpleMethod", 1241s # NULL, 1241s # NULL, 1241s # NULL 1241s # }, 1241s # "handle-simple-method", 1241s # FALSE 1241s # }; 1241s # 1241s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1241s # { 1241s # &_org_project_callable_iface_method_info_simple_method.parent_struct, 1241s # NULL 1241s # }; 1241s # 1241s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "org.project.CallableIface", 1241s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1241s # NULL, 1241s # NULL, 1241s # NULL 1241s # }, 1241s # "org-project-callable-iface", 1241s # }; 1241s # 1241s # 1241s # /** 1241s # * org_project_callable_iface_interface_info: 1241s # * 1241s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1241s # * 1241s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1241s # */ 1241s # GDBusInterfaceInfo * 1241s # org_project_callable_iface_interface_info (void) 1241s # { 1241s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1241s # } 1241s # 1241s # /** 1241s # * org_project_callable_iface_override_properties: 1241s # * @klass: The class structure for a #GObject derived class. 1241s # * @property_id_begin: The property id to assign to the first overridden property. 1241s # * 1241s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1241s # * The properties are overridden in the order they are defined. 1241s # * 1241s # * Returns: The last property id. 1241s # */ 1241s # guint 1241s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1241s # { 1241s # return property_id_begin - 1; 1241s # } 1241s # 1241s # 1241s # inline static void 1241s # org_project_callable_iface_method_marshal_simple_method ( 1241s # GClosure *closure, 1241s # GValue *return_value, 1241s # unsigned int n_param_values, 1241s # const GValue *param_values, 1241s # void *invocation_hint, 1241s # void *marshal_data) 1241s # { 1241s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1241s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1241s # } 1241s # 1241s # 1241s # /** 1241s # * OrgProjectCallableIface: 1241s # * 1241s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectCallableIfaceIface: 1241s # * @parent_iface: The parent interface. 1241s # * @handle_simple_method: Handler for the #OrgProjectCallableIface::handle-simple-method signal. 1241s # * 1241s # * Virtual table for the D-Bus interface org.project.CallableIface. 1241s # */ 1241s # 1241s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1241s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1241s # 1241s # static void 1241s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1241s # { 1241s # /* GObject signals for incoming D-Bus method calls: */ 1241s # /** 1241s # * OrgProjectCallableIface::handle-simple-method: 1241s # * @object: A #OrgProjectCallableIface. 1241s # * @invocation: A #GDBusMethodInvocation. 1241s # * 1241s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1241s # * 1241s # * 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. 1241s # * 1241s # * 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. 1241s # */ 1241s # g_signal_new ("handle-simple-method", 1241s # G_TYPE_FROM_INTERFACE (iface), 1241s # G_SIGNAL_RUN_LAST, 1241s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_simple_method), 1241s # g_signal_accumulator_true_handled, 1241s # NULL, 1241s # org_project_callable_iface_method_marshal_simple_method, 1241s # G_TYPE_BOOLEAN, 1241s # 1, 1241s # G_TYPE_DBUS_METHOD_INVOCATION); 1241s # 1241s # } 1241s # 1241s # /** 1241s # * org_project_callable_iface_call_simple_method: 1241s # * @proxy: A #OrgProjectCallableIfaceProxy. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_callable_iface_call_simple_method_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1241s # */ 1241s # void 1241s # org_project_callable_iface_call_simple_method ( 1241s # OrgProjectCallableIface *proxy, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1241s # "SimpleMethod", 1241s # g_variant_new ("()"), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # cancellable, 1241s # callback, 1241s # user_data); 1241s # } 1241s # 1241s # /** 1241s # * org_project_callable_iface_call_simple_method_finish: 1241s # * @proxy: A #OrgProjectCallableIfaceProxy. 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_simple_method(). 1241s # * @error: Return location for error or %NULL. 1241s # * 1241s # * Finishes an operation started with org_project_callable_iface_call_simple_method(). 1241s # * 1241s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1241s # */ 1241s # gboolean 1241s # org_project_callable_iface_call_simple_method_finish ( 1241s # OrgProjectCallableIface *proxy, 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GVariant *_ret; 1241s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1241s # if (_ret == NULL) 1241s # goto _out; 1241s # g_variant_get (_ret, 1241s # "()"); 1241s # g_variant_unref (_ret); 1241s # _out: 1241s # return _ret != NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_callable_iface_call_simple_method_sync: 1241s # * @proxy: A #OrgProjectCallableIfaceProxy. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL. 1241s # * 1241s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_callable_iface_call_simple_method() for the asynchronous version of this method. 1241s # * 1241s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1241s # */ 1241s # gboolean 1241s # org_project_callable_iface_call_simple_method_sync ( 1241s # OrgProjectCallableIface *proxy, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GVariant *_ret; 1241s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1241s # "SimpleMethod", 1241s # g_variant_new ("()"), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # cancellable, 1241s # error); 1241s # if (_ret == NULL) 1241s # goto _out; 1241s # g_variant_get (_ret, 1241s # "()"); 1241s # g_variant_unref (_ret); 1241s # _out: 1241s # return _ret != NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_callable_iface_complete_simple_method: 1241s # * @object: A #OrgProjectCallableIface. 1241s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1241s # * 1241s # * 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. 1241s # * 1241s # * This method will free @invocation, you cannot use it afterwards. 1241s # */ 1241s # void 1241s # org_project_callable_iface_complete_simple_method ( 1241s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1241s # GDBusMethodInvocation *invocation) 1241s # { 1241s # g_dbus_method_invocation_return_value (invocation, 1241s # g_variant_new ("()")); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * OrgProjectCallableIfaceProxy: 1241s # * 1241s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectCallableIfaceProxyClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for #OrgProjectCallableIfaceProxy. 1241s # */ 1241s # 1241s # struct _OrgProjectCallableIfaceProxyPrivate 1241s # { 1241s # GData *qdata; 1241s # }; 1241s # 1241s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1241s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # org_project_callable_iface_proxy_finalize (GObject *object) 1241s # { 1241s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1241s # g_datalist_clear (&proxy->priv->qdata); 1241s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1241s # guint prop_id G_GNUC_UNUSED, 1241s # GValue *value G_GNUC_UNUSED, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void 1241s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1241s # guint prop_id G_GNUC_UNUSED, 1241s # const GValue *value G_GNUC_UNUSED, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void 1241s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1241s # const gchar *sender_name G_GNUC_UNUSED, 1241s # const gchar *signal_name, 1241s # GVariant *parameters) 1241s # { 1241s # _ExtendedGDBusSignalInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # gsize n; 1241s # guint signal_id; 1241s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1241s # if (info == NULL) 1241s # return; 1241s # num_params = g_variant_n_children (parameters); 1241s # paramv = g_new0 (GValue, num_params + 1); 1241s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1241s # g_value_set_object (¶mv[0], proxy); 1241s # g_variant_iter_init (&iter, parameters); 1241s # n = 1; 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1241s # g_signal_emitv (paramv, signal_id, 0, NULL); 1241s # for (n = 0; n < num_params + 1; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static void 1241s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1241s # GVariant *changed_properties, 1241s # const gchar *const *invalidated_properties) 1241s # { 1241s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1241s # guint n; 1241s # const gchar *key; 1241s # GVariantIter *iter; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # g_variant_get (changed_properties, "a{sv}", &iter); 1241s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1241s # g_datalist_remove_data (&proxy->priv->qdata, key); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # g_variant_iter_free (iter); 1241s # for (n = 0; invalidated_properties[n] != NULL; n++) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1241s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # } 1241s # 1241s # static void 1241s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1241s # #else 1241s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1241s # #endif 1241s # 1241s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1241s # } 1241s # 1241s # static void 1241s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusProxyClass *proxy_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1241s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1241s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1241s # 1241s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1241s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1241s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # /** 1241s # * org_project_callable_iface_proxy_new: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # org_project_callable_iface_proxy_new ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # 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); 1241s # } 1241s # 1241s # /** 1241s # * org_project_callable_iface_proxy_new_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectCallableIface * 1241s # org_project_callable_iface_proxy_new_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_callable_iface_proxy_new_sync: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectCallableIface * 1241s # org_project_callable_iface_proxy_new_sync ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /** 1241s # * org_project_callable_iface_proxy_new_for_bus: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # org_project_callable_iface_proxy_new_for_bus ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # 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); 1241s # } 1241s # 1241s # /** 1241s # * org_project_callable_iface_proxy_new_for_bus_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectCallableIface * 1241s # org_project_callable_iface_proxy_new_for_bus_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_callable_iface_proxy_new_for_bus_sync: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectCallableIface * 1241s # org_project_callable_iface_proxy_new_for_bus_sync ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * OrgProjectCallableIfaceSkeleton: 1241s # * 1241s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectCallableIfaceSkeletonClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1241s # */ 1241s # 1241s # struct _OrgProjectCallableIfaceSkeletonPrivate 1241s # { 1241s # GValue *properties; 1241s # GList *changed_properties; 1241s # GSource *changed_properties_idle_source; 1241s # GMainContext *context; 1241s # GMutex lock; 1241s # }; 1241s # 1241s # static void 1241s # _org_project_callable_iface_skeleton_handle_method_call ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name, 1241s # const gchar *method_name, 1241s # GVariant *parameters, 1241s # GDBusMethodInvocation *invocation, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1241s # _ExtendedGDBusMethodInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # guint num_extra; 1241s # gsize n; 1241s # guint signal_id; 1241s # GValue return_value = G_VALUE_INIT; 1241s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1241s # g_assert (info != NULL); 1241s # num_params = g_variant_n_children (parameters); 1241s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1241s # n = 0; 1241s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1241s # g_value_set_object (¶mv[n++], skeleton); 1241s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1241s # g_value_set_object (¶mv[n++], invocation); 1241s # if (info->pass_fdlist) 1241s # { 1241s # #ifdef G_OS_UNIX 1241s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1241s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1241s # #else 1241s # g_assert_not_reached (); 1241s # #endif 1241s # } 1241s # g_variant_iter_init (&iter, parameters); 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1241s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1241s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1241s # if (!g_value_get_boolean (&return_value)) 1241s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1241s # g_value_unset (&return_value); 1241s # for (n = 0; n < num_params + num_extra; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static GVariant * 1241s # _org_project_callable_iface_skeleton_handle_get_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # GVariant *ret; 1241s # ret = NULL; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # g_value_init (&value, pspec->value_type); 1241s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1241s # g_value_unset (&value); 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _org_project_callable_iface_skeleton_handle_set_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GVariant *variant, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # gboolean ret; 1241s # ret = FALSE; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # if (info->use_gvariant) 1241s # g_value_set_variant (&value, variant); 1241s # else 1241s # g_dbus_gvariant_to_gvalue (variant, &value); 1241s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # g_value_unset (&value); 1241s # ret = TRUE; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1241s # { 1241s # _org_project_callable_iface_skeleton_handle_method_call, 1241s # _org_project_callable_iface_skeleton_handle_get_property, 1241s # _org_project_callable_iface_skeleton_handle_set_property, 1241s # {NULL} 1241s # }; 1241s # 1241s # static GDBusInterfaceInfo * 1241s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return org_project_callable_iface_interface_info (); 1241s # } 1241s # 1241s # static GDBusInterfaceVTable * 1241s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1241s # } 1241s # 1241s # static GVariant * 1241s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1241s # { 1241s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1241s # 1241s # GVariantBuilder builder; 1241s # guint n; 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1241s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #else 1241s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #endif 1241s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1241s # goto out; 1241s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1241s # { 1241s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1241s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1241s # { 1241s # GVariant *value; 1241s # 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); 1241s # if (value != NULL) 1241s # { 1241s # g_variant_take_ref (value); 1241s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1241s # g_variant_unref (value); 1241s # } 1241s # } 1241s # } 1241s # out: 1241s # return g_variant_builder_end (&builder); 1241s # } 1241s # 1241s # static void 1241s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # org_project_callable_iface_skeleton_finalize (GObject *object) 1241s # { 1241s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1241s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1241s # if (skeleton->priv->changed_properties_idle_source != NULL) 1241s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1241s # g_main_context_unref (skeleton->priv->context); 1241s # g_mutex_clear (&skeleton->priv->lock); 1241s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1241s # #else 1241s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1241s # #endif 1241s # 1241s # g_mutex_init (&skeleton->priv->lock); 1241s # skeleton->priv->context = g_main_context_ref_thread_default (); 1241s # } 1241s # 1241s # static void 1241s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusInterfaceSkeletonClass *skeleton_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1241s # 1241s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1241s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1241s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1241s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1241s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # /** 1241s # * org_project_callable_iface_skeleton_new: 1241s # * 1241s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1241s # */ 1241s # OrgProjectCallableIface * 1241s # org_project_callable_iface_skeleton_new (void) 1241s # { 1241s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ 1241s # * Code for interface org.project.OtherCallableIface 1241s # * ------------------------------------------------------------------------ 1241s # */ 1241s # 1241s # /** 1241s # * SECTION:OrgProjectOtherCallableIface 1241s # * @title: OrgProjectOtherCallableIface 1241s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1241s # * 1241s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1241s # */ 1241s # 1241s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1241s # 1241s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_simple_method = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "SimpleMethod", 1241s # NULL, 1241s # NULL, 1241s # NULL 1241s # }, 1241s # "handle-simple-method", 1241s # FALSE 1241s # }; 1241s # 1241s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1241s # { 1241s # &_org_project_other_callable_iface_method_info_simple_method.parent_struct, 1241s # NULL 1241s # }; 1241s # 1241s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "org.project.OtherCallableIface", 1241s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1241s # NULL, 1241s # NULL, 1241s # NULL 1241s # }, 1241s # "org-project-other-callable-iface", 1241s # }; 1241s # 1241s # 1241s # /** 1241s # * org_project_other_callable_iface_interface_info: 1241s # * 1241s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1241s # * 1241s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1241s # */ 1241s # GDBusInterfaceInfo * 1241s # org_project_other_callable_iface_interface_info (void) 1241s # { 1241s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1241s # } 1241s # 1241s # /** 1241s # * org_project_other_callable_iface_override_properties: 1241s # * @klass: The class structure for a #GObject derived class. 1241s # * @property_id_begin: The property id to assign to the first overridden property. 1241s # * 1241s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1241s # * The properties are overridden in the order they are defined. 1241s # * 1241s # * Returns: The last property id. 1241s # */ 1241s # guint 1241s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1241s # { 1241s # return property_id_begin - 1; 1241s # } 1241s # 1241s # 1241s # inline static void 1241s # org_project_other_callable_iface_method_marshal_simple_method ( 1241s # GClosure *closure, 1241s # GValue *return_value, 1241s # unsigned int n_param_values, 1241s # const GValue *param_values, 1241s # void *invocation_hint, 1241s # void *marshal_data) 1241s # { 1241s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1241s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1241s # } 1241s # 1241s # 1241s # /** 1241s # * OrgProjectOtherCallableIface: 1241s # * 1241s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectOtherCallableIfaceIface: 1241s # * @parent_iface: The parent interface. 1241s # * @handle_simple_method: Handler for the #OrgProjectOtherCallableIface::handle-simple-method signal. 1241s # * 1241s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1241s # */ 1241s # 1241s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1241s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1241s # 1241s # static void 1241s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1241s # { 1241s # /* GObject signals for incoming D-Bus method calls: */ 1241s # /** 1241s # * OrgProjectOtherCallableIface::handle-simple-method: 1241s # * @object: A #OrgProjectOtherCallableIface. 1241s # * @invocation: A #GDBusMethodInvocation. 1241s # * 1241s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1241s # * 1241s # * 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. 1241s # * 1241s # * 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. 1241s # */ 1241s # g_signal_new ("handle-simple-method", 1241s # G_TYPE_FROM_INTERFACE (iface), 1241s # G_SIGNAL_RUN_LAST, 1241s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_simple_method), 1241s # g_signal_accumulator_true_handled, 1241s # NULL, 1241s # org_project_other_callable_iface_method_marshal_simple_method, 1241s # G_TYPE_BOOLEAN, 1241s # 1, 1241s # G_TYPE_DBUS_METHOD_INVOCATION); 1241s # 1241s # } 1241s # 1241s # /** 1241s # * org_project_other_callable_iface_call_simple_method: 1241s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_other_callable_iface_call_simple_method_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_other_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1241s # */ 1241s # void 1241s # org_project_other_callable_iface_call_simple_method ( 1241s # OrgProjectOtherCallableIface *proxy, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1241s # "SimpleMethod", 1241s # g_variant_new ("()"), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # cancellable, 1241s # callback, 1241s # user_data); 1241s # } 1241s # 1241s # /** 1241s # * org_project_other_callable_iface_call_simple_method_finish: 1241s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_simple_method(). 1241s # * @error: Return location for error or %NULL. 1241s # * 1241s # * Finishes an operation started with org_project_other_callable_iface_call_simple_method(). 1241s # * 1241s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1241s # */ 1241s # gboolean 1241s # org_project_other_callable_iface_call_simple_method_finish ( 1241s # OrgProjectOtherCallableIface *proxy, 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GVariant *_ret; 1241s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1241s # if (_ret == NULL) 1241s # goto _out; 1241s # g_variant_get (_ret, 1241s # "()"); 1241s # g_variant_unref (_ret); 1241s # _out: 1241s # return _ret != NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_other_callable_iface_call_simple_method_sync: 1241s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL. 1241s # * 1241s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_other_callable_iface_call_simple_method() for the asynchronous version of this method. 1241s # * 1241s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1241s # */ 1241s # gboolean 1241s # org_project_other_callable_iface_call_simple_method_sync ( 1241s # OrgProjectOtherCallableIface *proxy, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GVariant *_ret; 1241s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1241s # "SimpleMethod", 1241s # g_variant_new ("()"), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # cancellable, 1241s # error); 1241s # if (_ret == NULL) 1241s # goto _out; 1241s # g_variant_get (_ret, 1241s # "()"); 1241s # g_variant_unref (_ret); 1241s # _out: 1241s # return _ret != NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_other_callable_iface_complete_simple_method: 1241s # * @object: A #OrgProjectOtherCallableIface. 1241s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1241s # * 1241s # * 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. 1241s # * 1241s # * This method will free @invocation, you cannot use it afterwards. 1241s # */ 1241s # void 1241s # org_project_other_callable_iface_complete_simple_method ( 1241s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1241s # GDBusMethodInvocation *invocation) 1241s # { 1241s # g_dbus_method_invocation_return_value (invocation, 1241s # g_variant_new ("()")); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * OrgProjectOtherCallableIfaceProxy: 1241s # * 1241s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectOtherCallableIfaceProxyClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1241s # */ 1241s # 1241s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1241s # { 1241s # GData *qdata; 1241s # }; 1241s # 1241s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1241s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1241s # { 1241s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1241s # g_datalist_clear (&proxy->priv->qdata); 1241s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1241s # guint prop_id G_GNUC_UNUSED, 1241s # GValue *value G_GNUC_UNUSED, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void 1241s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1241s # guint prop_id G_GNUC_UNUSED, 1241s # const GValue *value G_GNUC_UNUSED, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void 1241s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1241s # const gchar *sender_name G_GNUC_UNUSED, 1241s # const gchar *signal_name, 1241s # GVariant *parameters) 1241s # { 1241s # _ExtendedGDBusSignalInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # gsize n; 1241s # guint signal_id; 1241s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1241s # if (info == NULL) 1241s # return; 1241s # num_params = g_variant_n_children (parameters); 1241s # paramv = g_new0 (GValue, num_params + 1); 1241s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1241s # g_value_set_object (¶mv[0], proxy); 1241s # g_variant_iter_init (&iter, parameters); 1241s # n = 1; 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1241s # g_signal_emitv (paramv, signal_id, 0, NULL); 1241s # for (n = 0; n < num_params + 1; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static void 1241s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1241s # GVariant *changed_properties, 1241s # const gchar *const *invalidated_properties) 1241s # { 1241s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1241s # guint n; 1241s # const gchar *key; 1241s # GVariantIter *iter; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # g_variant_get (changed_properties, "a{sv}", &iter); 1241s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1241s # g_datalist_remove_data (&proxy->priv->qdata, key); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # g_variant_iter_free (iter); 1241s # for (n = 0; invalidated_properties[n] != NULL; n++) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1241s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # } 1241s # 1241s # static void 1241s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1241s # #else 1241s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1241s # #endif 1241s # 1241s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1241s # } 1241s # 1241s # static void 1241s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusProxyClass *proxy_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1241s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1241s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1241s # 1241s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1241s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1241s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # /** 1241s # * org_project_other_callable_iface_proxy_new: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # org_project_other_callable_iface_proxy_new ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # 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); 1241s # } 1241s # 1241s # /** 1241s # * org_project_other_callable_iface_proxy_new_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectOtherCallableIface * 1241s # org_project_other_callable_iface_proxy_new_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_other_callable_iface_proxy_new_sync: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectOtherCallableIface * 1241s # org_project_other_callable_iface_proxy_new_sync ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /** 1241s # * org_project_other_callable_iface_proxy_new_for_bus: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # org_project_other_callable_iface_proxy_new_for_bus ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # 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); 1241s # } 1241s # 1241s # /** 1241s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectOtherCallableIface * 1241s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectOtherCallableIface * 1241s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * OrgProjectOtherCallableIfaceSkeleton: 1241s # * 1241s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectOtherCallableIfaceSkeletonClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1241s # */ 1241s # 1241s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1241s # { 1241s # GValue *properties; 1241s # GList *changed_properties; 1241s # GSource *changed_properties_idle_source; 1241s # GMainContext *context; 1241s # GMutex lock; 1241s # }; 1241s # 1241s # static void 1241s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name, 1241s # const gchar *method_name, 1241s # GVariant *parameters, 1241s # GDBusMethodInvocation *invocation, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1241s # _ExtendedGDBusMethodInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # guint num_extra; 1241s # gsize n; 1241s # guint signal_id; 1241s # GValue return_value = G_VALUE_INIT; 1241s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1241s # g_assert (info != NULL); 1241s # num_params = g_variant_n_children (parameters); 1241s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1241s # n = 0; 1241s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1241s # g_value_set_object (¶mv[n++], skeleton); 1241s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1241s # g_value_set_object (¶mv[n++], invocation); 1241s # if (info->pass_fdlist) 1241s # { 1241s # #ifdef G_OS_UNIX 1241s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1241s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1241s # #else 1241s # g_assert_not_reached (); 1241s # #endif 1241s # } 1241s # g_variant_iter_init (&iter, parameters); 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1241s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1241s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1241s # if (!g_value_get_boolean (&return_value)) 1241s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1241s # g_value_unset (&return_value); 1241s # for (n = 0; n < num_params + num_extra; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static GVariant * 1241s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # GVariant *ret; 1241s # ret = NULL; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # g_value_init (&value, pspec->value_type); 1241s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1241s # g_value_unset (&value); 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GVariant *variant, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # gboolean ret; 1241s # ret = FALSE; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # if (info->use_gvariant) 1241s # g_value_set_variant (&value, variant); 1241s # else 1241s # g_dbus_gvariant_to_gvalue (variant, &value); 1241s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # g_value_unset (&value); 1241s # ret = TRUE; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1241s # { 1241s # _org_project_other_callable_iface_skeleton_handle_method_call, 1241s # _org_project_other_callable_iface_skeleton_handle_get_property, 1241s # _org_project_other_callable_iface_skeleton_handle_set_property, 1241s # {NULL} 1241s # }; 1241s # 1241s # static GDBusInterfaceInfo * 1241s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return org_project_other_callable_iface_interface_info (); 1241s # } 1241s # 1241s # static GDBusInterfaceVTable * 1241s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1241s # } 1241s # 1241s # static GVariant * 1241s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1241s # { 1241s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1241s # 1241s # GVariantBuilder builder; 1241s # guint n; 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1241s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #else 1241s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #endif 1241s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1241s # goto out; 1241s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1241s # { 1241s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1241s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1241s # { 1241s # GVariant *value; 1241s # 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); 1241s # if (value != NULL) 1241s # { 1241s # g_variant_take_ref (value); 1241s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1241s # g_variant_unref (value); 1241s # } 1241s # } 1241s # } 1241s # out: 1241s # return g_variant_builder_end (&builder); 1241s # } 1241s # 1241s # static void 1241s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1241s # { 1241s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1241s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1241s # if (skeleton->priv->changed_properties_idle_source != NULL) 1241s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1241s # g_main_context_unref (skeleton->priv->context); 1241s # g_mutex_clear (&skeleton->priv->lock); 1241s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1241s # #else 1241s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1241s # #endif 1241s # 1241s # g_mutex_init (&skeleton->priv->lock); 1241s # skeleton->priv->context = g_main_context_ref_thread_default (); 1241s # } 1241s # 1241s # static void 1241s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusInterfaceSkeletonClass *skeleton_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1241s # 1241s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1241s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1241s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1241s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1241s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # /** 1241s # * org_project_other_callable_iface_skeleton_new: 1241s # * 1241s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1241s # */ 1241s # OrgProjectOtherCallableIface * 1241s # org_project_other_callable_iface_skeleton_new (void) 1241s # { 1241s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1241s # } 1241s # Error: 1241s ok 10 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_in_args 1241s # gdbus-codegen: /usr/bin/gdbus-codegen 1241s # tmpdir: /tmp/tmpl4sis2it 1241s # /tmp/tmpl4sis2it/tmpsup9n0qn.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmpsup9n0qn.xml', '--output', '-', '--body'] 1241s # Return code: 0 1241s # Output: 1241s # /* 1241s # * This file is generated by gdbus-codegen, do not modify it. 1241s # * 1241s # * The license of this code is the same as for the D-Bus interface description 1241s # * it was derived from. Note that it links to GLib, so must comply with the 1241s # * LGPL linking clauses. 1241s # */ 1241s # 1241s # #ifdef HAVE_CONFIG_H 1241s # # include "config.h" 1241s # #endif 1241s # 1241s # #include 1241s # #ifdef G_OS_UNIX 1241s # # include 1241s # #endif 1241s # 1241s # #ifdef G_ENABLE_DEBUG 1241s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1241s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1241s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1241s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1241s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1241s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1241s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1241s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1241s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1241s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1241s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1241s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1241s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1241s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1241s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1241s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1241s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1241s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1241s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1241s # #else /* !G_ENABLE_DEBUG */ 1241s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1241s # * Do not access GValues directly in your code. Instead, use the 1241s # * g_value_get_*() functions 1241s # */ 1241s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1241s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1241s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1241s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1241s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1241s # #endif /* !G_ENABLE_DEBUG */ 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusArgInfo parent_struct; 1241s # gboolean use_gvariant; 1241s # } _ExtendedGDBusArgInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusMethodInfo parent_struct; 1241s # const gchar *signal_name; 1241s # gboolean pass_fdlist; 1241s # } _ExtendedGDBusMethodInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusSignalInfo parent_struct; 1241s # const gchar *signal_name; 1241s # } _ExtendedGDBusSignalInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusPropertyInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # guint use_gvariant : 1; 1241s # guint emits_changed_signal : 1; 1241s # } _ExtendedGDBusPropertyInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusInterfaceInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # } _ExtendedGDBusInterfaceInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # guint prop_id; 1241s # GValue orig_value; /* the value before the change */ 1241s # } ChangedProperty; 1241s # 1241s # static void 1241s # _changed_property_free (ChangedProperty *data) 1241s # { 1241s # g_value_unset (&data->orig_value); 1241s # g_free (data); 1241s # } 1241s # 1241s # static gboolean 1241s # _g_strv_equal0 (gchar **a, gchar **b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # guint n; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # if (g_strv_length (a) != g_strv_length (b)) 1241s # goto out; 1241s # for (n = 0; a[n] != NULL; n++) 1241s # if (g_strcmp0 (a[n], b[n]) != 0) 1241s # goto out; 1241s # ret = TRUE; 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _g_variant_equal0 (GVariant *a, GVariant *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # ret = g_variant_equal (a, b); 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # G_GNUC_UNUSED static gboolean 1241s # _g_value_equal (const GValue *a, const GValue *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1241s # switch (G_VALUE_TYPE (a)) 1241s # { 1241s # case G_TYPE_BOOLEAN: 1241s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1241s # break; 1241s # case G_TYPE_UCHAR: 1241s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1241s # break; 1241s # case G_TYPE_INT: 1241s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1241s # break; 1241s # case G_TYPE_UINT: 1241s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1241s # break; 1241s # case G_TYPE_INT64: 1241s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1241s # break; 1241s # case G_TYPE_UINT64: 1241s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1241s # break; 1241s # case G_TYPE_DOUBLE: 1241s # { 1241s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1241s # gdouble da = g_value_get_double (a); 1241s # gdouble db = g_value_get_double (b); 1241s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1241s # } 1241s # break; 1241s # case G_TYPE_STRING: 1241s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1241s # break; 1241s # case G_TYPE_VARIANT: 1241s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1241s # break; 1241s # default: 1241s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1241s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1241s # else 1241s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1241s # break; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static void 1241s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN ( 1241s # GClosure *closure, 1241s # GValue *return_value, 1241s # unsigned int n_param_values, 1241s # const GValue *param_values, 1241s # void *invocation_hint G_GNUC_UNUSED, 1241s # void *marshal_data) 1241s # { 1241s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1241s # (void *data1, 1241s # GDBusMethodInvocation *arg_method_invocation, 1241s # gboolean arg_arg_b, 1241s # void *data2); 1241s # _GDbusCodegenMarshalBoolean_ObjectBooleanFunc callback; 1241s # GCClosure *cc = (GCClosure*) closure; 1241s # void *data1, *data2; 1241s # gboolean v_return; 1241s # 1241s # g_return_if_fail (return_value != NULL); 1241s # g_return_if_fail (n_param_values == 3); 1241s # 1241s # if (G_CCLOSURE_SWAP_DATA (closure)) 1241s # { 1241s # data1 = closure->data; 1241s # data2 = g_value_peek_pointer (param_values + 0); 1241s # } 1241s # else 1241s # { 1241s # data1 = g_value_peek_pointer (param_values + 0); 1241s # data2 = closure->data; 1241s # } 1241s # 1241s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1241s # (marshal_data ? marshal_data : cc->callback); 1241s # 1241s # v_return = 1241s # callback (data1, 1241s # g_marshal_value_peek_object (param_values + 1), 1241s # g_marshal_value_peek_boolean (param_values + 2), 1241s # data2); 1241s # 1241s # g_value_set_boolean (return_value, v_return); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ 1241s # * Code for interface org.project.UsefulInterface 1241s # * ------------------------------------------------------------------------ 1241s # */ 1241s # 1241s # /** 1241s # * SECTION:OrgProjectUsefulInterface 1241s # * @title: OrgProjectUsefulInterface 1241s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1241s # * 1241s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1241s # */ 1241s # 1241s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1241s # 1241s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "arg_b", 1241s # (gchar *) "b", 1241s # NULL 1241s # }, 1241s # FALSE 1241s # }; 1241s # 1241s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers[] = 1241s # { 1241s # &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b.parent_struct, 1241s # NULL 1241s # }; 1241s # 1241s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "SingleArgMethodB", 1241s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers, 1241s # NULL, 1241s # NULL 1241s # }, 1241s # "handle-single-arg-method-b", 1241s # FALSE 1241s # }; 1241s # 1241s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1241s # { 1241s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1241s # NULL 1241s # }; 1241s # 1241s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "org.project.UsefulInterface", 1241s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1241s # NULL, 1241s # NULL, 1241s # NULL 1241s # }, 1241s # "org-project-useful-interface", 1241s # }; 1241s # 1241s # 1241s # /** 1241s # * org_project_useful_interface_interface_info: 1241s # * 1241s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1241s # * 1241s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1241s # */ 1241s # GDBusInterfaceInfo * 1241s # org_project_useful_interface_interface_info (void) 1241s # { 1241s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_override_properties: 1241s # * @klass: The class structure for a #GObject derived class. 1241s # * @property_id_begin: The property id to assign to the first overridden property. 1241s # * 1241s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1241s # * The properties are overridden in the order they are defined. 1241s # * 1241s # * Returns: The last property id. 1241s # */ 1241s # guint 1241s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1241s # { 1241s # return property_id_begin - 1; 1241s # } 1241s # 1241s # 1241s # inline static void 1241s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1241s # GClosure *closure, 1241s # GValue *return_value, 1241s # unsigned int n_param_values, 1241s # const GValue *param_values, 1241s # void *invocation_hint, 1241s # void *marshal_data) 1241s # { 1241s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN (closure, 1241s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1241s # } 1241s # 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterface: 1241s # * 1241s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceIface: 1241s # * @parent_iface: The parent interface. 1241s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1241s # * 1241s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1241s # */ 1241s # 1241s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1241s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1241s # 1241s # static void 1241s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1241s # { 1241s # /* GObject signals for incoming D-Bus method calls: */ 1241s # /** 1241s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1241s # * @object: A #OrgProjectUsefulInterface. 1241s # * @invocation: A #GDBusMethodInvocation. 1241s # * @arg_arg_b: Argument passed by remote caller. 1241s # * 1241s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1241s # * 1241s # * 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. 1241s # * 1241s # * 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. 1241s # */ 1241s # g_signal_new ("handle-single-arg-method-b", 1241s # G_TYPE_FROM_INTERFACE (iface), 1241s # G_SIGNAL_RUN_LAST, 1241s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1241s # g_signal_accumulator_true_handled, 1241s # NULL, 1241s # org_project_useful_interface_method_marshal_single_arg_method_b, 1241s # G_TYPE_BOOLEAN, 1241s # 2, 1241s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN); 1241s # 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_call_single_arg_method_b: 1241s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1241s # * @arg_arg_b: Argument to pass with the method invocation. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1241s # */ 1241s # void 1241s # org_project_useful_interface_call_single_arg_method_b ( 1241s # OrgProjectUsefulInterface *proxy, 1241s # gboolean arg_arg_b, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1241s # "SingleArgMethodB", 1241s # g_variant_new ("(b)", 1241s # arg_arg_b), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # cancellable, 1241s # callback, 1241s # user_data); 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_call_single_arg_method_b_finish: 1241s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1241s # * @error: Return location for error or %NULL. 1241s # * 1241s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1241s # * 1241s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1241s # */ 1241s # gboolean 1241s # org_project_useful_interface_call_single_arg_method_b_finish ( 1241s # OrgProjectUsefulInterface *proxy, 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GVariant *_ret; 1241s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1241s # if (_ret == NULL) 1241s # goto _out; 1241s # g_variant_get (_ret, 1241s # "()"); 1241s # g_variant_unref (_ret); 1241s # _out: 1241s # return _ret != NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_call_single_arg_method_b_sync: 1241s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1241s # * @arg_arg_b: Argument to pass with the method invocation. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL. 1241s # * 1241s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1241s # * 1241s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1241s # */ 1241s # gboolean 1241s # org_project_useful_interface_call_single_arg_method_b_sync ( 1241s # OrgProjectUsefulInterface *proxy, 1241s # gboolean arg_arg_b, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GVariant *_ret; 1241s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1241s # "SingleArgMethodB", 1241s # g_variant_new ("(b)", 1241s # arg_arg_b), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # cancellable, 1241s # error); 1241s # if (_ret == NULL) 1241s # goto _out; 1241s # g_variant_get (_ret, 1241s # "()"); 1241s # g_variant_unref (_ret); 1241s # _out: 1241s # return _ret != NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_complete_single_arg_method_b: 1241s # * @object: A #OrgProjectUsefulInterface. 1241s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1241s # * 1241s # * 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. 1241s # * 1241s # * This method will free @invocation, you cannot use it afterwards. 1241s # */ 1241s # void 1241s # org_project_useful_interface_complete_single_arg_method_b ( 1241s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1241s # GDBusMethodInvocation *invocation) 1241s # { 1241s # g_dbus_method_invocation_return_value (invocation, 1241s # g_variant_new ("()")); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceProxy: 1241s # * 1241s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceProxyClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1241s # */ 1241s # 1241s # struct _OrgProjectUsefulInterfaceProxyPrivate 1241s # { 1241s # GData *qdata; 1241s # }; 1241s # 1241s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1241s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # org_project_useful_interface_proxy_finalize (GObject *object) 1241s # { 1241s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1241s # g_datalist_clear (&proxy->priv->qdata); 1241s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1241s # guint prop_id G_GNUC_UNUSED, 1241s # GValue *value G_GNUC_UNUSED, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1241s # guint prop_id G_GNUC_UNUSED, 1241s # const GValue *value G_GNUC_UNUSED, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1241s # const gchar *sender_name G_GNUC_UNUSED, 1241s # const gchar *signal_name, 1241s # GVariant *parameters) 1241s # { 1241s # _ExtendedGDBusSignalInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # gsize n; 1241s # guint signal_id; 1241s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1241s # if (info == NULL) 1241s # return; 1241s # num_params = g_variant_n_children (parameters); 1241s # paramv = g_new0 (GValue, num_params + 1); 1241s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_value_set_object (¶mv[0], proxy); 1241s # g_variant_iter_init (&iter, parameters); 1241s # n = 1; 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_signal_emitv (paramv, signal_id, 0, NULL); 1241s # for (n = 0; n < num_params + 1; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1241s # GVariant *changed_properties, 1241s # const gchar *const *invalidated_properties) 1241s # { 1241s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1241s # guint n; 1241s # const gchar *key; 1241s # GVariantIter *iter; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # g_variant_get (changed_properties, "a{sv}", &iter); 1241s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1241s # g_datalist_remove_data (&proxy->priv->qdata, key); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # g_variant_iter_free (iter); 1241s # for (n = 0; invalidated_properties[n] != NULL; n++) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1241s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1241s # #else 1241s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1241s # #endif 1241s # 1241s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusProxyClass *proxy_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1241s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1241s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1241s # 1241s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1241s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1241s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # org_project_useful_interface_proxy_new ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # g_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); 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_proxy_new_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_sync: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_proxy_new_sync ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_for_bus: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # org_project_useful_interface_proxy_new_for_bus ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # g_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); 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_for_bus_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_proxy_new_for_bus_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_for_bus_sync: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_proxy_new_for_bus_sync ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceSkeleton: 1241s # * 1241s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceSkeletonClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1241s # */ 1241s # 1241s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1241s # { 1241s # GValue *properties; 1241s # GList *changed_properties; 1241s # GSource *changed_properties_idle_source; 1241s # GMainContext *context; 1241s # GMutex lock; 1241s # }; 1241s # 1241s # static void 1241s # _org_project_useful_interface_skeleton_handle_method_call ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name, 1241s # const gchar *method_name, 1241s # GVariant *parameters, 1241s # GDBusMethodInvocation *invocation, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1241s # _ExtendedGDBusMethodInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # guint num_extra; 1241s # gsize n; 1241s # guint signal_id; 1241s # GValue return_value = G_VALUE_INIT; 1241s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1241s # g_assert (info != NULL); 1241s # num_params = g_variant_n_children (parameters); 1241s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1241s # n = 0; 1241s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_value_set_object (¶mv[n++], skeleton); 1241s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1241s # g_value_set_object (¶mv[n++], invocation); 1241s # if (info->pass_fdlist) 1241s # { 1241s # #ifdef G_OS_UNIX 1241s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1241s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1241s # #else 1241s # g_assert_not_reached (); 1241s # #endif 1241s # } 1241s # g_variant_iter_init (&iter, parameters); 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1241s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1241s # if (!g_value_get_boolean (&return_value)) 1241s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1241s # g_value_unset (&return_value); 1241s # for (n = 0; n < num_params + num_extra; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static GVariant * 1241s # _org_project_useful_interface_skeleton_handle_get_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # GVariant *ret; 1241s # ret = NULL; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # g_value_init (&value, pspec->value_type); 1241s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1241s # g_value_unset (&value); 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _org_project_useful_interface_skeleton_handle_set_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GVariant *variant, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # gboolean ret; 1241s # ret = FALSE; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # if (info->use_gvariant) 1241s # g_value_set_variant (&value, variant); 1241s # else 1241s # g_dbus_gvariant_to_gvalue (variant, &value); 1241s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # g_value_unset (&value); 1241s # ret = TRUE; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1241s # { 1241s # _org_project_useful_interface_skeleton_handle_method_call, 1241s # _org_project_useful_interface_skeleton_handle_get_property, 1241s # _org_project_useful_interface_skeleton_handle_set_property, 1241s # {NULL} 1241s # }; 1241s # 1241s # static GDBusInterfaceInfo * 1241s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return org_project_useful_interface_interface_info (); 1241s # } 1241s # 1241s # static GDBusInterfaceVTable * 1241s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1241s # } 1241s # 1241s # static GVariant * 1241s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1241s # 1241s # GVariantBuilder builder; 1241s # guint n; 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1241s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #else 1241s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #endif 1241s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1241s # goto out; 1241s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1241s # { 1241s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1241s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1241s # { 1241s # GVariant *value; 1241s # 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); 1241s # if (value != NULL) 1241s # { 1241s # g_variant_take_ref (value); 1241s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1241s # g_variant_unref (value); 1241s # } 1241s # } 1241s # } 1241s # out: 1241s # return g_variant_builder_end (&builder); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # org_project_useful_interface_skeleton_finalize (GObject *object) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1241s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1241s # if (skeleton->priv->changed_properties_idle_source != NULL) 1241s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1241s # g_main_context_unref (skeleton->priv->context); 1241s # g_mutex_clear (&skeleton->priv->lock); 1241s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1241s # #else 1241s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1241s # #endif 1241s # 1241s # g_mutex_init (&skeleton->priv->lock); 1241s # skeleton->priv->context = g_main_context_ref_thread_default (); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusInterfaceSkeletonClass *skeleton_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1241s # 1241s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1241s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1241s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1241s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1241s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_skeleton_new: 1241s # * 1241s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_skeleton_new (void) 1241s # { 1241s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1241s # } 1241s # Error: 1241s # 1241s # /tmp/tmpl4sis2it/tmp8zwc0u9p.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmp8zwc0u9p.xml', '--output', '-', '--body'] 1241s # Return code: 0 1241s # Output: 1241s # /* 1241s # * This file is generated by gdbus-codegen, do not modify it. 1241s # * 1241s # * The license of this code is the same as for the D-Bus interface description 1241s # * it was derived from. Note that it links to GLib, so must comply with the 1241s # * LGPL linking clauses. 1241s # */ 1241s # 1241s # #ifdef HAVE_CONFIG_H 1241s # # include "config.h" 1241s # #endif 1241s # 1241s # #include 1241s # #ifdef G_OS_UNIX 1241s # # include 1241s # #endif 1241s # 1241s # #ifdef G_ENABLE_DEBUG 1241s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1241s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1241s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1241s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1241s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1241s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1241s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1241s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1241s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1241s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1241s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1241s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1241s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1241s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1241s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1241s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1241s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1241s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1241s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1241s # #else /* !G_ENABLE_DEBUG */ 1241s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1241s # * Do not access GValues directly in your code. Instead, use the 1241s # * g_value_get_*() functions 1241s # */ 1241s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1241s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1241s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1241s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1241s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1241s # #endif /* !G_ENABLE_DEBUG */ 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusArgInfo parent_struct; 1241s # gboolean use_gvariant; 1241s # } _ExtendedGDBusArgInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusMethodInfo parent_struct; 1241s # const gchar *signal_name; 1241s # gboolean pass_fdlist; 1241s # } _ExtendedGDBusMethodInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusSignalInfo parent_struct; 1241s # const gchar *signal_name; 1241s # } _ExtendedGDBusSignalInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusPropertyInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # guint use_gvariant : 1; 1241s # guint emits_changed_signal : 1; 1241s # } _ExtendedGDBusPropertyInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusInterfaceInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # } _ExtendedGDBusInterfaceInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # guint prop_id; 1241s # GValue orig_value; /* the value before the change */ 1241s # } ChangedProperty; 1241s # 1241s # static void 1241s # _changed_property_free (ChangedProperty *data) 1241s # { 1241s # g_value_unset (&data->orig_value); 1241s # g_free (data); 1241s # } 1241s # 1241s # static gboolean 1241s # _g_strv_equal0 (gchar **a, gchar **b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # guint n; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # if (g_strv_length (a) != g_strv_length (b)) 1241s # goto out; 1241s # for (n = 0; a[n] != NULL; n++) 1241s # if (g_strcmp0 (a[n], b[n]) != 0) 1241s # goto out; 1241s # ret = TRUE; 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _g_variant_equal0 (GVariant *a, GVariant *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # ret = g_variant_equal (a, b); 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # G_GNUC_UNUSED static gboolean 1241s # _g_value_equal (const GValue *a, const GValue *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1241s # switch (G_VALUE_TYPE (a)) 1241s # { 1241s # case G_TYPE_BOOLEAN: 1241s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1241s # break; 1241s # case G_TYPE_UCHAR: 1241s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1241s # break; 1241s # case G_TYPE_INT: 1241s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1241s # break; 1241s # case G_TYPE_UINT: 1241s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1241s # break; 1241s # case G_TYPE_INT64: 1241s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1241s # break; 1241s # case G_TYPE_UINT64: 1241s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1241s # break; 1241s # case G_TYPE_DOUBLE: 1241s # { 1241s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1241s # gdouble da = g_value_get_double (a); 1241s # gdouble db = g_value_get_double (b); 1241s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1241s # } 1241s # break; 1241s # case G_TYPE_STRING: 1241s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1241s # break; 1241s # case G_TYPE_VARIANT: 1241s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1241s # break; 1241s # default: 1241s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1241s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1241s # else 1241s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1241s # break; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static void 1241s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR ( 1241s # GClosure *closure, 1241s # GValue *return_value, 1241s # unsigned int n_param_values, 1241s # const GValue *param_values, 1241s # void *invocation_hint G_GNUC_UNUSED, 1241s # void *marshal_data) 1241s # { 1241s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1241s # (void *data1, 1241s # GDBusMethodInvocation *arg_method_invocation, 1241s # guchar arg_arg_y, 1241s # void *data2); 1241s # _GDbusCodegenMarshalBoolean_ObjectUcharFunc callback; 1241s # GCClosure *cc = (GCClosure*) closure; 1241s # void *data1, *data2; 1241s # gboolean v_return; 1241s # 1241s # g_return_if_fail (return_value != NULL); 1241s # g_return_if_fail (n_param_values == 3); 1241s # 1241s # if (G_CCLOSURE_SWAP_DATA (closure)) 1241s # { 1241s # data1 = closure->data; 1241s # data2 = g_value_peek_pointer (param_values + 0); 1241s # } 1241s # else 1241s # { 1241s # data1 = g_value_peek_pointer (param_values + 0); 1241s # data2 = closure->data; 1241s # } 1241s # 1241s # callback = (_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1241s # (marshal_data ? marshal_data : cc->callback); 1241s # 1241s # v_return = 1241s # callback (data1, 1241s # g_marshal_value_peek_object (param_values + 1), 1241s # g_marshal_value_peek_uchar (param_values + 2), 1241s # data2); 1241s # 1241s # g_value_set_boolean (return_value, v_return); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ 1241s # * Code for interface org.project.UsefulInterface 1241s # * ------------------------------------------------------------------------ 1241s # */ 1241s # 1241s # /** 1241s # * SECTION:OrgProjectUsefulInterface 1241s # * @title: OrgProjectUsefulInterface 1241s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1241s # * 1241s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1241s # */ 1241s # 1241s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1241s # 1241s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "arg_y", 1241s # (gchar *) "y", 1241s # NULL 1241s # }, 1241s # FALSE 1241s # }; 1241s # 1241s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers[] = 1241s # { 1241s # &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y.parent_struct, 1241s # NULL 1241s # }; 1241s # 1241s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "SingleArgMethodY", 1241s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers, 1241s # NULL, 1241s # NULL 1241s # }, 1241s # "handle-single-arg-method-y", 1241s # FALSE 1241s # }; 1241s # 1241s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1241s # { 1241s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1241s # NULL 1241s # }; 1241s # 1241s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "org.project.UsefulInterface", 1241s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1241s # NULL, 1241s # NULL, 1241s # NULL 1241s # }, 1241s # "org-project-useful-interface", 1241s # }; 1241s # 1241s # 1241s # /** 1241s # * org_project_useful_interface_interface_info: 1241s # * 1241s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1241s # * 1241s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1241s # */ 1241s # GDBusInterfaceInfo * 1241s # org_project_useful_interface_interface_info (void) 1241s # { 1241s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_override_properties: 1241s # * @klass: The class structure for a #GObject derived class. 1241s # * @property_id_begin: The property id to assign to the first overridden property. 1241s # * 1241s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1241s # * The properties are overridden in the order they are defined. 1241s # * 1241s # * Returns: The last property id. 1241s # */ 1241s # guint 1241s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1241s # { 1241s # return property_id_begin - 1; 1241s # } 1241s # 1241s # 1241s # inline static void 1241s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1241s # GClosure *closure, 1241s # GValue *return_value, 1241s # unsigned int n_param_values, 1241s # const GValue *param_values, 1241s # void *invocation_hint, 1241s # void *marshal_data) 1241s # { 1241s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR (closure, 1241s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1241s # } 1241s # 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterface: 1241s # * 1241s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceIface: 1241s # * @parent_iface: The parent interface. 1241s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1241s # * 1241s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1241s # */ 1241s # 1241s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1241s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1241s # 1241s # static void 1241s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1241s # { 1241s # /* GObject signals for incoming D-Bus method calls: */ 1241s # /** 1241s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1241s # * @object: A #OrgProjectUsefulInterface. 1241s # * @invocation: A #GDBusMethodInvocation. 1241s # * @arg_arg_y: Argument passed by remote caller. 1241s # * 1241s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1241s # * 1241s # * 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. 1241s # * 1241s # * 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. 1241s # */ 1241s # g_signal_new ("handle-single-arg-method-y", 1241s # G_TYPE_FROM_INTERFACE (iface), 1241s # G_SIGNAL_RUN_LAST, 1241s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1241s # g_signal_accumulator_true_handled, 1241s # NULL, 1241s # org_project_useful_interface_method_marshal_single_arg_method_y, 1241s # G_TYPE_BOOLEAN, 1241s # 2, 1241s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UCHAR); 1241s # 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_call_single_arg_method_y: 1241s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1241s # * @arg_arg_y: Argument to pass with the method invocation. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1241s # */ 1241s # void 1241s # org_project_useful_interface_call_single_arg_method_y ( 1241s # OrgProjectUsefulInterface *proxy, 1241s # guchar arg_arg_y, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1241s # "SingleArgMethodY", 1241s # g_variant_new ("(y)", 1241s # arg_arg_y), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # cancellable, 1241s # callback, 1241s # user_data); 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_call_single_arg_method_y_finish: 1241s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1241s # * @error: Return location for error or %NULL. 1241s # * 1241s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1241s # * 1241s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1241s # */ 1241s # gboolean 1241s # org_project_useful_interface_call_single_arg_method_y_finish ( 1241s # OrgProjectUsefulInterface *proxy, 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GVariant *_ret; 1241s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1241s # if (_ret == NULL) 1241s # goto _out; 1241s # g_variant_get (_ret, 1241s # "()"); 1241s # g_variant_unref (_ret); 1241s # _out: 1241s # return _ret != NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_call_single_arg_method_y_sync: 1241s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1241s # * @arg_arg_y: Argument to pass with the method invocation. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL. 1241s # * 1241s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1241s # * 1241s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1241s # */ 1241s # gboolean 1241s # org_project_useful_interface_call_single_arg_method_y_sync ( 1241s # OrgProjectUsefulInterface *proxy, 1241s # guchar arg_arg_y, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GVariant *_ret; 1241s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1241s # "SingleArgMethodY", 1241s # g_variant_new ("(y)", 1241s # arg_arg_y), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # cancellable, 1241s # error); 1241s # if (_ret == NULL) 1241s # goto _out; 1241s # g_variant_get (_ret, 1241s # "()"); 1241s # g_variant_unref (_ret); 1241s # _out: 1241s # return _ret != NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_complete_single_arg_method_y: 1241s # * @object: A #OrgProjectUsefulInterface. 1241s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1241s # * 1241s # * 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. 1241s # * 1241s # * This method will free @invocation, you cannot use it afterwards. 1241s # */ 1241s # void 1241s # org_project_useful_interface_complete_single_arg_method_y ( 1241s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1241s # GDBusMethodInvocation *invocation) 1241s # { 1241s # g_dbus_method_invocation_return_value (invocation, 1241s # g_variant_new ("()")); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceProxy: 1241s # * 1241s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceProxyClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1241s # */ 1241s # 1241s # struct _OrgProjectUsefulInterfaceProxyPrivate 1241s # { 1241s # GData *qdata; 1241s # }; 1241s # 1241s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1241s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # org_project_useful_interface_proxy_finalize (GObject *object) 1241s # { 1241s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1241s # g_datalist_clear (&proxy->priv->qdata); 1241s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1241s # guint prop_id G_GNUC_UNUSED, 1241s # GValue *value G_GNUC_UNUSED, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1241s # guint prop_id G_GNUC_UNUSED, 1241s # const GValue *value G_GNUC_UNUSED, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1241s # const gchar *sender_name G_GNUC_UNUSED, 1241s # const gchar *signal_name, 1241s # GVariant *parameters) 1241s # { 1241s # _ExtendedGDBusSignalInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # gsize n; 1241s # guint signal_id; 1241s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1241s # if (info == NULL) 1241s # return; 1241s # num_params = g_variant_n_children (parameters); 1241s # paramv = g_new0 (GValue, num_params + 1); 1241s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_value_set_object (¶mv[0], proxy); 1241s # g_variant_iter_init (&iter, parameters); 1241s # n = 1; 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_signal_emitv (paramv, signal_id, 0, NULL); 1241s # for (n = 0; n < num_params + 1; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1241s # GVariant *changed_properties, 1241s # const gchar *const *invalidated_properties) 1241s # { 1241s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1241s # guint n; 1241s # const gchar *key; 1241s # GVariantIter *iter; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # g_variant_get (changed_properties, "a{sv}", &iter); 1241s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1241s # g_datalist_remove_data (&proxy->priv->qdata, key); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # g_variant_iter_free (iter); 1241s # for (n = 0; invalidated_properties[n] != NULL; n++) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1241s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1241s # #else 1241s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1241s # #endif 1241s # 1241s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusProxyClass *proxy_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1241s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1241s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1241s # 1241s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1241s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1241s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # org_project_useful_interface_proxy_new ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # g_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); 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_proxy_new_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_sync: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_proxy_new_sync ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_for_bus: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # org_project_useful_interface_proxy_new_for_bus ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # g_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); 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_for_bus_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_proxy_new_for_bus_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_for_bus_sync: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_proxy_new_for_bus_sync ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceSkeleton: 1241s # * 1241s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceSkeletonClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1241s # */ 1241s # 1241s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1241s # { 1241s # GValue *properties; 1241s # GList *changed_properties; 1241s # GSource *changed_properties_idle_source; 1241s # GMainContext *context; 1241s # GMutex lock; 1241s # }; 1241s # 1241s # static void 1241s # _org_project_useful_interface_skeleton_handle_method_call ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name, 1241s # const gchar *method_name, 1241s # GVariant *parameters, 1241s # GDBusMethodInvocation *invocation, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1241s # _ExtendedGDBusMethodInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # guint num_extra; 1241s # gsize n; 1241s # guint signal_id; 1241s # GValue return_value = G_VALUE_INIT; 1241s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1241s # g_assert (info != NULL); 1241s # num_params = g_variant_n_children (parameters); 1241s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1241s # n = 0; 1241s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_value_set_object (¶mv[n++], skeleton); 1241s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1241s # g_value_set_object (¶mv[n++], invocation); 1241s # if (info->pass_fdlist) 1241s # { 1241s # #ifdef G_OS_UNIX 1241s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1241s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1241s # #else 1241s # g_assert_not_reached (); 1241s # #endif 1241s # } 1241s # g_variant_iter_init (&iter, parameters); 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1241s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1241s # if (!g_value_get_boolean (&return_value)) 1241s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1241s # g_value_unset (&return_value); 1241s # for (n = 0; n < num_params + num_extra; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static GVariant * 1241s # _org_project_useful_interface_skeleton_handle_get_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # GVariant *ret; 1241s # ret = NULL; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # g_value_init (&value, pspec->value_type); 1241s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1241s # g_value_unset (&value); 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _org_project_useful_interface_skeleton_handle_set_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GVariant *variant, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # gboolean ret; 1241s # ret = FALSE; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # if (info->use_gvariant) 1241s # g_value_set_variant (&value, variant); 1241s # else 1241s # g_dbus_gvariant_to_gvalue (variant, &value); 1241s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # g_value_unset (&value); 1241s # ret = TRUE; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1241s # { 1241s # _org_project_useful_interface_skeleton_handle_method_call, 1241s # _org_project_useful_interface_skeleton_handle_get_property, 1241s # _org_project_useful_interface_skeleton_handle_set_property, 1241s # {NULL} 1241s # }; 1241s # 1241s # static GDBusInterfaceInfo * 1241s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return org_project_useful_interface_interface_info (); 1241s # } 1241s # 1241s # static GDBusInterfaceVTable * 1241s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1241s # } 1241s # 1241s # static GVariant * 1241s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1241s # 1241s # GVariantBuilder builder; 1241s # guint n; 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1241s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #else 1241s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #endif 1241s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1241s # goto out; 1241s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1241s # { 1241s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1241s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1241s # { 1241s # GVariant *value; 1241s # 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); 1241s # if (value != NULL) 1241s # { 1241s # g_variant_take_ref (value); 1241s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1241s # g_variant_unref (value); 1241s # } 1241s # } 1241s # } 1241s # out: 1241s # return g_variant_builder_end (&builder); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # org_project_useful_interface_skeleton_finalize (GObject *object) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1241s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1241s # if (skeleton->priv->changed_properties_idle_source != NULL) 1241s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1241s # g_main_context_unref (skeleton->priv->context); 1241s # g_mutex_clear (&skeleton->priv->lock); 1241s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1241s # #else 1241s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1241s # #endif 1241s # 1241s # g_mutex_init (&skeleton->priv->lock); 1241s # skeleton->priv->context = g_main_context_ref_thread_default (); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusInterfaceSkeletonClass *skeleton_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1241s # 1241s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1241s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1241s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1241s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1241s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_skeleton_new: 1241s # * 1241s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_skeleton_new (void) 1241s # { 1241s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1241s # } 1241s # Error: 1241s # 1241s # /tmp/tmpl4sis2it/tmpz4xdq6pn.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmpz4xdq6pn.xml', '--output', '-', '--body'] 1241s # Return code: 0 1241s # Output: 1241s # /* 1241s # * This file is generated by gdbus-codegen, do not modify it. 1241s # * 1241s # * The license of this code is the same as for the D-Bus interface description 1241s # * it was derived from. Note that it links to GLib, so must comply with the 1241s # * LGPL linking clauses. 1241s # */ 1241s # 1241s # #ifdef HAVE_CONFIG_H 1241s # # include "config.h" 1241s # #endif 1241s # 1241s # #include 1241s # #ifdef G_OS_UNIX 1241s # # include 1241s # #endif 1241s # 1241s # #ifdef G_ENABLE_DEBUG 1241s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1241s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1241s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1241s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1241s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1241s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1241s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1241s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1241s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1241s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1241s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1241s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1241s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1241s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1241s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1241s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1241s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1241s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1241s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1241s # #else /* !G_ENABLE_DEBUG */ 1241s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1241s # * Do not access GValues directly in your code. Instead, use the 1241s # * g_value_get_*() functions 1241s # */ 1241s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1241s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1241s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1241s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1241s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1241s # #endif /* !G_ENABLE_DEBUG */ 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusArgInfo parent_struct; 1241s # gboolean use_gvariant; 1241s # } _ExtendedGDBusArgInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusMethodInfo parent_struct; 1241s # const gchar *signal_name; 1241s # gboolean pass_fdlist; 1241s # } _ExtendedGDBusMethodInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusSignalInfo parent_struct; 1241s # const gchar *signal_name; 1241s # } _ExtendedGDBusSignalInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusPropertyInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # guint use_gvariant : 1; 1241s # guint emits_changed_signal : 1; 1241s # } _ExtendedGDBusPropertyInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusInterfaceInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # } _ExtendedGDBusInterfaceInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # guint prop_id; 1241s # GValue orig_value; /* the value before the change */ 1241s # } ChangedProperty; 1241s # 1241s # static void 1241s # _changed_property_free (ChangedProperty *data) 1241s # { 1241s # g_value_unset (&data->orig_value); 1241s # g_free (data); 1241s # } 1241s # 1241s # static gboolean 1241s # _g_strv_equal0 (gchar **a, gchar **b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # guint n; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # if (g_strv_length (a) != g_strv_length (b)) 1241s # goto out; 1241s # for (n = 0; a[n] != NULL; n++) 1241s # if (g_strcmp0 (a[n], b[n]) != 0) 1241s # goto out; 1241s # ret = TRUE; 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _g_variant_equal0 (GVariant *a, GVariant *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # ret = g_variant_equal (a, b); 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # G_GNUC_UNUSED static gboolean 1241s # _g_value_equal (const GValue *a, const GValue *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1241s # switch (G_VALUE_TYPE (a)) 1241s # { 1241s # case G_TYPE_BOOLEAN: 1241s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1241s # break; 1241s # case G_TYPE_UCHAR: 1241s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1241s # break; 1241s # case G_TYPE_INT: 1241s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1241s # break; 1241s # case G_TYPE_UINT: 1241s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1241s # break; 1241s # case G_TYPE_INT64: 1241s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1241s # break; 1241s # case G_TYPE_UINT64: 1241s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1241s # break; 1241s # case G_TYPE_DOUBLE: 1241s # { 1241s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1241s # gdouble da = g_value_get_double (a); 1241s # gdouble db = g_value_get_double (b); 1241s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1241s # } 1241s # break; 1241s # case G_TYPE_STRING: 1241s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1241s # break; 1241s # case G_TYPE_VARIANT: 1241s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1241s # break; 1241s # default: 1241s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1241s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1241s # else 1241s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1241s # break; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static void 1241s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1241s # GClosure *closure, 1241s # GValue *return_value, 1241s # unsigned int n_param_values, 1241s # const GValue *param_values, 1241s # void *invocation_hint G_GNUC_UNUSED, 1241s # void *marshal_data) 1241s # { 1241s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1241s # (void *data1, 1241s # GDBusMethodInvocation *arg_method_invocation, 1241s # gint16 arg_arg_n, 1241s # void *data2); 1241s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1241s # GCClosure *cc = (GCClosure*) closure; 1241s # void *data1, *data2; 1241s # gboolean v_return; 1241s # 1241s # g_return_if_fail (return_value != NULL); 1241s # g_return_if_fail (n_param_values == 3); 1241s # 1241s # if (G_CCLOSURE_SWAP_DATA (closure)) 1241s # { 1241s # data1 = closure->data; 1241s # data2 = g_value_peek_pointer (param_values + 0); 1241s # } 1241s # else 1241s # { 1241s # data1 = g_value_peek_pointer (param_values + 0); 1241s # data2 = closure->data; 1241s # } 1241s # 1241s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1241s # (marshal_data ? marshal_data : cc->callback); 1241s # 1241s # v_return = 1241s # callback (data1, 1241s # g_marshal_value_peek_object (param_values + 1), 1241s # g_marshal_value_peek_int (param_values + 2), 1241s # data2); 1241s # 1241s # g_value_set_boolean (return_value, v_return); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ 1241s # * Code for interface org.project.UsefulInterface 1241s # * ------------------------------------------------------------------------ 1241s # */ 1241s # 1241s # /** 1241s # * SECTION:OrgProjectUsefulInterface 1241s # * @title: OrgProjectUsefulInterface 1241s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1241s # * 1241s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1241s # */ 1241s # 1241s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1241s # 1241s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "arg_n", 1241s # (gchar *) "n", 1241s # NULL 1241s # }, 1241s # FALSE 1241s # }; 1241s # 1241s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers[] = 1241s # { 1241s # &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n.parent_struct, 1241s # NULL 1241s # }; 1241s # 1241s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "SingleArgMethodN", 1241s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers, 1241s # NULL, 1241s # NULL 1241s # }, 1241s # "handle-single-arg-method-n", 1241s # FALSE 1241s # }; 1241s # 1241s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1241s # { 1241s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1241s # NULL 1241s # }; 1241s # 1241s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "org.project.UsefulInterface", 1241s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1241s # NULL, 1241s # NULL, 1241s # NULL 1241s # }, 1241s # "org-project-useful-interface", 1241s # }; 1241s # 1241s # 1241s # /** 1241s # * org_project_useful_interface_interface_info: 1241s # * 1241s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1241s # * 1241s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1241s # */ 1241s # GDBusInterfaceInfo * 1241s # org_project_useful_interface_interface_info (void) 1241s # { 1241s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_override_properties: 1241s # * @klass: The class structure for a #GObject derived class. 1241s # * @property_id_begin: The property id to assign to the first overridden property. 1241s # * 1241s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1241s # * The properties are overridden in the order they are defined. 1241s # * 1241s # * Returns: The last property id. 1241s # */ 1241s # guint 1241s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1241s # { 1241s # return property_id_begin - 1; 1241s # } 1241s # 1241s # 1241s # inline static void 1241s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1241s # GClosure *closure, 1241s # GValue *return_value, 1241s # unsigned int n_param_values, 1241s # const GValue *param_values, 1241s # void *invocation_hint, 1241s # void *marshal_data) 1241s # { 1241s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1241s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1241s # } 1241s # 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterface: 1241s # * 1241s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceIface: 1241s # * @parent_iface: The parent interface. 1241s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1241s # * 1241s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1241s # */ 1241s # 1241s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1241s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1241s # 1241s # static void 1241s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1241s # { 1241s # /* GObject signals for incoming D-Bus method calls: */ 1241s # /** 1241s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1241s # * @object: A #OrgProjectUsefulInterface. 1241s # * @invocation: A #GDBusMethodInvocation. 1241s # * @arg_arg_n: Argument passed by remote caller. 1241s # * 1241s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1241s # * 1241s # * 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. 1241s # * 1241s # * 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. 1241s # */ 1241s # g_signal_new ("handle-single-arg-method-n", 1241s # G_TYPE_FROM_INTERFACE (iface), 1241s # G_SIGNAL_RUN_LAST, 1241s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1241s # g_signal_accumulator_true_handled, 1241s # NULL, 1241s # org_project_useful_interface_method_marshal_single_arg_method_n, 1241s # G_TYPE_BOOLEAN, 1241s # 2, 1241s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1241s # 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_call_single_arg_method_n: 1241s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1241s # * @arg_arg_n: Argument to pass with the method invocation. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1241s # */ 1241s # void 1241s # org_project_useful_interface_call_single_arg_method_n ( 1241s # OrgProjectUsefulInterface *proxy, 1241s # gint16 arg_arg_n, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1241s # "SingleArgMethodN", 1241s # g_variant_new ("(n)", 1241s # arg_arg_n), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # cancellable, 1241s # callback, 1241s # user_data); 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_call_single_arg_method_n_finish: 1241s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1241s # * @error: Return location for error or %NULL. 1241s # * 1241s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1241s # * 1241s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1241s # */ 1241s # gboolean 1241s # org_project_useful_interface_call_single_arg_method_n_finish ( 1241s # OrgProjectUsefulInterface *proxy, 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GVariant *_ret; 1241s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1241s # if (_ret == NULL) 1241s # goto _out; 1241s # g_variant_get (_ret, 1241s # "()"); 1241s # g_variant_unref (_ret); 1241s # _out: 1241s # return _ret != NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_call_single_arg_method_n_sync: 1241s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1241s # * @arg_arg_n: Argument to pass with the method invocation. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL. 1241s # * 1241s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1241s # * 1241s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1241s # */ 1241s # gboolean 1241s # org_project_useful_interface_call_single_arg_method_n_sync ( 1241s # OrgProjectUsefulInterface *proxy, 1241s # gint16 arg_arg_n, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GVariant *_ret; 1241s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1241s # "SingleArgMethodN", 1241s # g_variant_new ("(n)", 1241s # arg_arg_n), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # cancellable, 1241s # error); 1241s # if (_ret == NULL) 1241s # goto _out; 1241s # g_variant_get (_ret, 1241s # "()"); 1241s # g_variant_unref (_ret); 1241s # _out: 1241s # return _ret != NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_complete_single_arg_method_n: 1241s # * @object: A #OrgProjectUsefulInterface. 1241s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1241s # * 1241s # * 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. 1241s # * 1241s # * This method will free @invocation, you cannot use it afterwards. 1241s # */ 1241s # void 1241s # org_project_useful_interface_complete_single_arg_method_n ( 1241s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1241s # GDBusMethodInvocation *invocation) 1241s # { 1241s # g_dbus_method_invocation_return_value (invocation, 1241s # g_variant_new ("()")); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceProxy: 1241s # * 1241s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceProxyClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1241s # */ 1241s # 1241s # struct _OrgProjectUsefulInterfaceProxyPrivate 1241s # { 1241s # GData *qdata; 1241s # }; 1241s # 1241s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1241s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # org_project_useful_interface_proxy_finalize (GObject *object) 1241s # { 1241s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1241s # g_datalist_clear (&proxy->priv->qdata); 1241s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1241s # guint prop_id G_GNUC_UNUSED, 1241s # GValue *value G_GNUC_UNUSED, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1241s # guint prop_id G_GNUC_UNUSED, 1241s # const GValue *value G_GNUC_UNUSED, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1241s # const gchar *sender_name G_GNUC_UNUSED, 1241s # const gchar *signal_name, 1241s # GVariant *parameters) 1241s # { 1241s # _ExtendedGDBusSignalInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # gsize n; 1241s # guint signal_id; 1241s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1241s # if (info == NULL) 1241s # return; 1241s # num_params = g_variant_n_children (parameters); 1241s # paramv = g_new0 (GValue, num_params + 1); 1241s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_value_set_object (¶mv[0], proxy); 1241s # g_variant_iter_init (&iter, parameters); 1241s # n = 1; 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_signal_emitv (paramv, signal_id, 0, NULL); 1241s # for (n = 0; n < num_params + 1; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1241s # GVariant *changed_properties, 1241s # const gchar *const *invalidated_properties) 1241s # { 1241s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1241s # guint n; 1241s # const gchar *key; 1241s # GVariantIter *iter; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # g_variant_get (changed_properties, "a{sv}", &iter); 1241s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1241s # g_datalist_remove_data (&proxy->priv->qdata, key); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # g_variant_iter_free (iter); 1241s # for (n = 0; invalidated_properties[n] != NULL; n++) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1241s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1241s # #else 1241s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1241s # #endif 1241s # 1241s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusProxyClass *proxy_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1241s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1241s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1241s # 1241s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1241s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1241s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # org_project_useful_interface_proxy_new ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # g_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); 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_proxy_new_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_sync: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_proxy_new_sync ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_for_bus: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # org_project_useful_interface_proxy_new_for_bus ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # g_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); 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_for_bus_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_proxy_new_for_bus_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_for_bus_sync: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_proxy_new_for_bus_sync ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceSkeleton: 1241s # * 1241s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceSkeletonClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1241s # */ 1241s # 1241s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1241s # { 1241s # GValue *properties; 1241s # GList *changed_properties; 1241s # GSource *changed_properties_idle_source; 1241s # GMainContext *context; 1241s # GMutex lock; 1241s # }; 1241s # 1241s # static void 1241s # _org_project_useful_interface_skeleton_handle_method_call ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name, 1241s # const gchar *method_name, 1241s # GVariant *parameters, 1241s # GDBusMethodInvocation *invocation, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1241s # _ExtendedGDBusMethodInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # guint num_extra; 1241s # gsize n; 1241s # guint signal_id; 1241s # GValue return_value = G_VALUE_INIT; 1241s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1241s # g_assert (info != NULL); 1241s # num_params = g_variant_n_children (parameters); 1241s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1241s # n = 0; 1241s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_value_set_object (¶mv[n++], skeleton); 1241s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1241s # g_value_set_object (¶mv[n++], invocation); 1241s # if (info->pass_fdlist) 1241s # { 1241s # #ifdef G_OS_UNIX 1241s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1241s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1241s # #else 1241s # g_assert_not_reached (); 1241s # #endif 1241s # } 1241s # g_variant_iter_init (&iter, parameters); 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1241s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1241s # if (!g_value_get_boolean (&return_value)) 1241s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1241s # g_value_unset (&return_value); 1241s # for (n = 0; n < num_params + num_extra; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static GVariant * 1241s # _org_project_useful_interface_skeleton_handle_get_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # GVariant *ret; 1241s # ret = NULL; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # g_value_init (&value, pspec->value_type); 1241s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1241s # g_value_unset (&value); 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _org_project_useful_interface_skeleton_handle_set_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GVariant *variant, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # gboolean ret; 1241s # ret = FALSE; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # if (info->use_gvariant) 1241s # g_value_set_variant (&value, variant); 1241s # else 1241s # g_dbus_gvariant_to_gvalue (variant, &value); 1241s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # g_value_unset (&value); 1241s # ret = TRUE; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1241s # { 1241s # _org_project_useful_interface_skeleton_handle_method_call, 1241s # _org_project_useful_interface_skeleton_handle_get_property, 1241s # _org_project_useful_interface_skeleton_handle_set_property, 1241s # {NULL} 1241s # }; 1241s # 1241s # static GDBusInterfaceInfo * 1241s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return org_project_useful_interface_interface_info (); 1241s # } 1241s # 1241s # static GDBusInterfaceVTable * 1241s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1241s # } 1241s # 1241s # static GVariant * 1241s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1241s # 1241s # GVariantBuilder builder; 1241s # guint n; 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1241s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #else 1241s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #endif 1241s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1241s # goto out; 1241s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1241s # { 1241s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1241s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1241s # { 1241s # GVariant *value; 1241s # 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); 1241s # if (value != NULL) 1241s # { 1241s # g_variant_take_ref (value); 1241s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1241s # g_variant_unref (value); 1241s # } 1241s # } 1241s # } 1241s # out: 1241s # return g_variant_builder_end (&builder); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # org_project_useful_interface_skeleton_finalize (GObject *object) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1241s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1241s # if (skeleton->priv->changed_properties_idle_source != NULL) 1241s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1241s # g_main_context_unref (skeleton->priv->context); 1241s # g_mutex_clear (&skeleton->priv->lock); 1241s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1241s # #else 1241s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1241s # #endif 1241s # 1241s # g_mutex_init (&skeleton->priv->lock); 1241s # skeleton->priv->context = g_main_context_ref_thread_default (); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusInterfaceSkeletonClass *skeleton_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1241s # 1241s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1241s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1241s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1241s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1241s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_skeleton_new: 1241s # * 1241s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_skeleton_new (void) 1241s # { 1241s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1241s # } 1241s # Error: 1241s # 1241s # /tmp/tmpl4sis2it/tmp5wilc6ei.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmp5wilc6ei.xml', '--output', '-', '--body'] 1241s # Return code: 0 1241s # Output: 1241s # /* 1241s # * This file is generated by gdbus-codegen, do not modify it. 1241s # * 1241s # * The license of this code is the same as for the D-Bus interface description 1241s # * it was derived from. Note that it links to GLib, so must comply with the 1241s # * LGPL linking clauses. 1241s # */ 1241s # 1241s # #ifdef HAVE_CONFIG_H 1241s # # include "config.h" 1241s # #endif 1241s # 1241s # #include 1241s # #ifdef G_OS_UNIX 1241s # # include 1241s # #endif 1241s # 1241s # #ifdef G_ENABLE_DEBUG 1241s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1241s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1241s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1241s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1241s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1241s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1241s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1241s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1241s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1241s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1241s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1241s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1241s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1241s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1241s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1241s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1241s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1241s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1241s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1241s # #else /* !G_ENABLE_DEBUG */ 1241s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1241s # * Do not access GValues directly in your code. Instead, use the 1241s # * g_value_get_*() functions 1241s # */ 1241s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1241s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1241s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1241s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1241s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1241s # #endif /* !G_ENABLE_DEBUG */ 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusArgInfo parent_struct; 1241s # gboolean use_gvariant; 1241s # } _ExtendedGDBusArgInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusMethodInfo parent_struct; 1241s # const gchar *signal_name; 1241s # gboolean pass_fdlist; 1241s # } _ExtendedGDBusMethodInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusSignalInfo parent_struct; 1241s # const gchar *signal_name; 1241s # } _ExtendedGDBusSignalInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusPropertyInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # guint use_gvariant : 1; 1241s # guint emits_changed_signal : 1; 1241s # } _ExtendedGDBusPropertyInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusInterfaceInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # } _ExtendedGDBusInterfaceInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # guint prop_id; 1241s # GValue orig_value; /* the value before the change */ 1241s # } ChangedProperty; 1241s # 1241s # static void 1241s # _changed_property_free (ChangedProperty *data) 1241s # { 1241s # g_value_unset (&data->orig_value); 1241s # g_free (data); 1241s # } 1241s # 1241s # static gboolean 1241s # _g_strv_equal0 (gchar **a, gchar **b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # guint n; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # if (g_strv_length (a) != g_strv_length (b)) 1241s # goto out; 1241s # for (n = 0; a[n] != NULL; n++) 1241s # if (g_strcmp0 (a[n], b[n]) != 0) 1241s # goto out; 1241s # ret = TRUE; 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _g_variant_equal0 (GVariant *a, GVariant *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # ret = g_variant_equal (a, b); 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # G_GNUC_UNUSED static gboolean 1241s # _g_value_equal (const GValue *a, const GValue *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1241s # switch (G_VALUE_TYPE (a)) 1241s # { 1241s # case G_TYPE_BOOLEAN: 1241s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1241s # break; 1241s # case G_TYPE_UCHAR: 1241s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1241s # break; 1241s # case G_TYPE_INT: 1241s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1241s # break; 1241s # case G_TYPE_UINT: 1241s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1241s # break; 1241s # case G_TYPE_INT64: 1241s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1241s # break; 1241s # case G_TYPE_UINT64: 1241s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1241s # break; 1241s # case G_TYPE_DOUBLE: 1241s # { 1241s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1241s # gdouble da = g_value_get_double (a); 1241s # gdouble db = g_value_get_double (b); 1241s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1241s # } 1241s # break; 1241s # case G_TYPE_STRING: 1241s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1241s # break; 1241s # case G_TYPE_VARIANT: 1241s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1241s # break; 1241s # default: 1241s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1241s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1241s # else 1241s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1241s # break; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static void 1241s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1241s # GClosure *closure, 1241s # GValue *return_value, 1241s # unsigned int n_param_values, 1241s # const GValue *param_values, 1241s # void *invocation_hint G_GNUC_UNUSED, 1241s # void *marshal_data) 1241s # { 1241s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1241s # (void *data1, 1241s # GDBusMethodInvocation *arg_method_invocation, 1241s # guint16 arg_arg_q, 1241s # void *data2); 1241s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1241s # GCClosure *cc = (GCClosure*) closure; 1241s # void *data1, *data2; 1241s # gboolean v_return; 1241s # 1241s # g_return_if_fail (return_value != NULL); 1241s # g_return_if_fail (n_param_values == 3); 1241s # 1241s # if (G_CCLOSURE_SWAP_DATA (closure)) 1241s # { 1241s # data1 = closure->data; 1241s # data2 = g_value_peek_pointer (param_values + 0); 1241s # } 1241s # else 1241s # { 1241s # data1 = g_value_peek_pointer (param_values + 0); 1241s # data2 = closure->data; 1241s # } 1241s # 1241s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1241s # (marshal_data ? marshal_data : cc->callback); 1241s # 1241s # v_return = 1241s # callback (data1, 1241s # g_marshal_value_peek_object (param_values + 1), 1241s # g_marshal_value_peek_uint (param_values + 2), 1241s # data2); 1241s # 1241s # g_value_set_boolean (return_value, v_return); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ 1241s # * Code for interface org.project.UsefulInterface 1241s # * ------------------------------------------------------------------------ 1241s # */ 1241s # 1241s # /** 1241s # * SECTION:OrgProjectUsefulInterface 1241s # * @title: OrgProjectUsefulInterface 1241s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1241s # * 1241s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1241s # */ 1241s # 1241s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1241s # 1241s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "arg_q", 1241s # (gchar *) "q", 1241s # NULL 1241s # }, 1241s # FALSE 1241s # }; 1241s # 1241s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers[] = 1241s # { 1241s # &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q.parent_struct, 1241s # NULL 1241s # }; 1241s # 1241s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "SingleArgMethodQ", 1241s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers, 1241s # NULL, 1241s # NULL 1241s # }, 1241s # "handle-single-arg-method-q", 1241s # FALSE 1241s # }; 1241s # 1241s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1241s # { 1241s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1241s # NULL 1241s # }; 1241s # 1241s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "org.project.UsefulInterface", 1241s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1241s # NULL, 1241s # NULL, 1241s # NULL 1241s # }, 1241s # "org-project-useful-interface", 1241s # }; 1241s # 1241s # 1241s # /** 1241s # * org_project_useful_interface_interface_info: 1241s # * 1241s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1241s # * 1241s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1241s # */ 1241s # GDBusInterfaceInfo * 1241s # org_project_useful_interface_interface_info (void) 1241s # { 1241s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_override_properties: 1241s # * @klass: The class structure for a #GObject derived class. 1241s # * @property_id_begin: The property id to assign to the first overridden property. 1241s # * 1241s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1241s # * The properties are overridden in the order they are defined. 1241s # * 1241s # * Returns: The last property id. 1241s # */ 1241s # guint 1241s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1241s # { 1241s # return property_id_begin - 1; 1241s # } 1241s # 1241s # 1241s # inline static void 1241s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1241s # GClosure *closure, 1241s # GValue *return_value, 1241s # unsigned int n_param_values, 1241s # const GValue *param_values, 1241s # void *invocation_hint, 1241s # void *marshal_data) 1241s # { 1241s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1241s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1241s # } 1241s # 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterface: 1241s # * 1241s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceIface: 1241s # * @parent_iface: The parent interface. 1241s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1241s # * 1241s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1241s # */ 1241s # 1241s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1241s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1241s # 1241s # static void 1241s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1241s # { 1241s # /* GObject signals for incoming D-Bus method calls: */ 1241s # /** 1241s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1241s # * @object: A #OrgProjectUsefulInterface. 1241s # * @invocation: A #GDBusMethodInvocation. 1241s # * @arg_arg_q: Argument passed by remote caller. 1241s # * 1241s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1241s # * 1241s # * 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. 1241s # * 1241s # * 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. 1241s # */ 1241s # g_signal_new ("handle-single-arg-method-q", 1241s # G_TYPE_FROM_INTERFACE (iface), 1241s # G_SIGNAL_RUN_LAST, 1241s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1241s # g_signal_accumulator_true_handled, 1241s # NULL, 1241s # org_project_useful_interface_method_marshal_single_arg_method_q, 1241s # G_TYPE_BOOLEAN, 1241s # 2, 1241s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1241s # 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_call_single_arg_method_q: 1241s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1241s # * @arg_arg_q: Argument to pass with the method invocation. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1241s # */ 1241s # void 1241s # org_project_useful_interface_call_single_arg_method_q ( 1241s # OrgProjectUsefulInterface *proxy, 1241s # guint16 arg_arg_q, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1241s # "SingleArgMethodQ", 1241s # g_variant_new ("(q)", 1241s # arg_arg_q), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # cancellable, 1241s # callback, 1241s # user_data); 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_call_single_arg_method_q_finish: 1241s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1241s # * @error: Return location for error or %NULL. 1241s # * 1241s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1241s # * 1241s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1241s # */ 1241s # gboolean 1241s # org_project_useful_interface_call_single_arg_method_q_finish ( 1241s # OrgProjectUsefulInterface *proxy, 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GVariant *_ret; 1241s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1241s # if (_ret == NULL) 1241s # goto _out; 1241s # g_variant_get (_ret, 1241s # "()"); 1241s # g_variant_unref (_ret); 1241s # _out: 1241s # return _ret != NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_call_single_arg_method_q_sync: 1241s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1241s # * @arg_arg_q: Argument to pass with the method invocation. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL. 1241s # * 1241s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1241s # * 1241s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1241s # */ 1241s # gboolean 1241s # org_project_useful_interface_call_single_arg_method_q_sync ( 1241s # OrgProjectUsefulInterface *proxy, 1241s # guint16 arg_arg_q, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GVariant *_ret; 1241s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1241s # "SingleArgMethodQ", 1241s # g_variant_new ("(q)", 1241s # arg_arg_q), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # cancellable, 1241s # error); 1241s # if (_ret == NULL) 1241s # goto _out; 1241s # g_variant_get (_ret, 1241s # "()"); 1241s # g_variant_unref (_ret); 1241s # _out: 1241s # return _ret != NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_complete_single_arg_method_q: 1241s # * @object: A #OrgProjectUsefulInterface. 1241s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1241s # * 1241s # * 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. 1241s # * 1241s # * This method will free @invocation, you cannot use it afterwards. 1241s # */ 1241s # void 1241s # org_project_useful_interface_complete_single_arg_method_q ( 1241s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1241s # GDBusMethodInvocation *invocation) 1241s # { 1241s # g_dbus_method_invocation_return_value (invocation, 1241s # g_variant_new ("()")); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceProxy: 1241s # * 1241s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceProxyClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1241s # */ 1241s # 1241s # struct _OrgProjectUsefulInterfaceProxyPrivate 1241s # { 1241s # GData *qdata; 1241s # }; 1241s # 1241s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1241s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # org_project_useful_interface_proxy_finalize (GObject *object) 1241s # { 1241s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1241s # g_datalist_clear (&proxy->priv->qdata); 1241s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1241s # guint prop_id G_GNUC_UNUSED, 1241s # GValue *value G_GNUC_UNUSED, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1241s # guint prop_id G_GNUC_UNUSED, 1241s # const GValue *value G_GNUC_UNUSED, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1241s # const gchar *sender_name G_GNUC_UNUSED, 1241s # const gchar *signal_name, 1241s # GVariant *parameters) 1241s # { 1241s # _ExtendedGDBusSignalInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # gsize n; 1241s # guint signal_id; 1241s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1241s # if (info == NULL) 1241s # return; 1241s # num_params = g_variant_n_children (parameters); 1241s # paramv = g_new0 (GValue, num_params + 1); 1241s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_value_set_object (¶mv[0], proxy); 1241s # g_variant_iter_init (&iter, parameters); 1241s # n = 1; 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_signal_emitv (paramv, signal_id, 0, NULL); 1241s # for (n = 0; n < num_params + 1; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1241s # GVariant *changed_properties, 1241s # const gchar *const *invalidated_properties) 1241s # { 1241s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1241s # guint n; 1241s # const gchar *key; 1241s # GVariantIter *iter; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # g_variant_get (changed_properties, "a{sv}", &iter); 1241s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1241s # g_datalist_remove_data (&proxy->priv->qdata, key); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # g_variant_iter_free (iter); 1241s # for (n = 0; invalidated_properties[n] != NULL; n++) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1241s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1241s # #else 1241s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1241s # #endif 1241s # 1241s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusProxyClass *proxy_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1241s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1241s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1241s # 1241s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1241s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1241s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # org_project_useful_interface_proxy_new ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # g_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); 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_proxy_new_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_sync: 1241s # * @connection: A #GDBusConnection. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_proxy_new_sync ( 1241s # GDBusConnection *connection, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_for_bus: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1241s # */ 1241s # void 1241s # org_project_useful_interface_proxy_new_for_bus ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # g_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); 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_for_bus_finish: 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_proxy_new_for_bus_finish ( 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GObject *ret; 1241s # GObject *source_object; 1241s # source_object = g_async_result_get_source_object (res); 1241s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1241s # g_object_unref (source_object); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_proxy_new_for_bus_sync: 1241s # * @bus_type: A #GBusType. 1241s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1241s # * @name: A bus name (well-known or unique). 1241s # * @object_path: An object path. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL 1241s # * 1241s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1241s # * 1241s # * The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_proxy_new_for_bus_sync ( 1241s # GBusType bus_type, 1241s # GDBusProxyFlags flags, 1241s # const gchar *name, 1241s # const gchar *object_path, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GInitable *ret; 1241s # 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); 1241s # if (ret != NULL) 1241s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1241s # else 1241s # return NULL; 1241s # } 1241s # 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceSkeleton: 1241s # * 1241s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceSkeletonClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1241s # */ 1241s # 1241s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1241s # { 1241s # GValue *properties; 1241s # GList *changed_properties; 1241s # GSource *changed_properties_idle_source; 1241s # GMainContext *context; 1241s # GMutex lock; 1241s # }; 1241s # 1241s # static void 1241s # _org_project_useful_interface_skeleton_handle_method_call ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name, 1241s # const gchar *method_name, 1241s # GVariant *parameters, 1241s # GDBusMethodInvocation *invocation, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1241s # _ExtendedGDBusMethodInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # guint num_extra; 1241s # gsize n; 1241s # guint signal_id; 1241s # GValue return_value = G_VALUE_INIT; 1241s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1241s # g_assert (info != NULL); 1241s # num_params = g_variant_n_children (parameters); 1241s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1241s # n = 0; 1241s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_value_set_object (¶mv[n++], skeleton); 1241s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1241s # g_value_set_object (¶mv[n++], invocation); 1241s # if (info->pass_fdlist) 1241s # { 1241s # #ifdef G_OS_UNIX 1241s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1241s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1241s # #else 1241s # g_assert_not_reached (); 1241s # #endif 1241s # } 1241s # g_variant_iter_init (&iter, parameters); 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1241s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1241s # if (!g_value_get_boolean (&return_value)) 1241s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1241s # g_value_unset (&return_value); 1241s # for (n = 0; n < num_params + num_extra; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static GVariant * 1241s # _org_project_useful_interface_skeleton_handle_get_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # GVariant *ret; 1241s # ret = NULL; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # g_value_init (&value, pspec->value_type); 1241s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1241s # g_value_unset (&value); 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _org_project_useful_interface_skeleton_handle_set_property ( 1241s # GDBusConnection *connection G_GNUC_UNUSED, 1241s # const gchar *sender G_GNUC_UNUSED, 1241s # const gchar *object_path G_GNUC_UNUSED, 1241s # const gchar *interface_name G_GNUC_UNUSED, 1241s # const gchar *property_name, 1241s # GVariant *variant, 1241s # GError **error, 1241s # gpointer user_data) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1241s # GValue value = G_VALUE_INIT; 1241s # GParamSpec *pspec; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # gboolean ret; 1241s # ret = FALSE; 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1241s # g_assert (info != NULL); 1241s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1241s # if (pspec == NULL) 1241s # { 1241s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1241s # } 1241s # else 1241s # { 1241s # if (info->use_gvariant) 1241s # g_value_set_variant (&value, variant); 1241s # else 1241s # g_dbus_gvariant_to_gvalue (variant, &value); 1241s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1241s # g_value_unset (&value); 1241s # ret = TRUE; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1241s # { 1241s # _org_project_useful_interface_skeleton_handle_method_call, 1241s # _org_project_useful_interface_skeleton_handle_get_property, 1241s # _org_project_useful_interface_skeleton_handle_set_property, 1241s # {NULL} 1241s # }; 1241s # 1241s # static GDBusInterfaceInfo * 1241s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return org_project_useful_interface_interface_info (); 1241s # } 1241s # 1241s # static GDBusInterfaceVTable * 1241s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1241s # { 1241s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1241s # } 1241s # 1241s # static GVariant * 1241s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1241s # 1241s # GVariantBuilder builder; 1241s # guint n; 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1241s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #else 1241s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1241s # #endif 1241s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1241s # goto out; 1241s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1241s # { 1241s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1241s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1241s # { 1241s # GVariant *value; 1241s # 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); 1241s # if (value != NULL) 1241s # { 1241s # g_variant_take_ref (value); 1241s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1241s # g_variant_unref (value); 1241s # } 1241s # } 1241s # } 1241s # out: 1241s # return g_variant_builder_end (&builder); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # org_project_useful_interface_skeleton_finalize (GObject *object) 1241s # { 1241s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1241s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1241s # if (skeleton->priv->changed_properties_idle_source != NULL) 1241s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1241s # g_main_context_unref (skeleton->priv->context); 1241s # g_mutex_clear (&skeleton->priv->lock); 1241s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1241s # { 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1241s # #else 1241s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1241s # #endif 1241s # 1241s # g_mutex_init (&skeleton->priv->lock); 1241s # skeleton->priv->context = g_main_context_ref_thread_default (); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1241s # { 1241s # GObjectClass *gobject_class; 1241s # GDBusInterfaceSkeletonClass *skeleton_class; 1241s # 1241s # gobject_class = G_OBJECT_CLASS (klass); 1241s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1241s # 1241s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1241s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1241s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1241s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1241s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1241s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1241s # #endif 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_skeleton_new: 1241s # * 1241s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1241s # * 1241s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1241s # */ 1241s # OrgProjectUsefulInterface * 1241s # org_project_useful_interface_skeleton_new (void) 1241s # { 1241s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1241s # } 1241s # Error: 1241s # 1241s # /tmp/tmpl4sis2it/tmptrdl8858.xml: 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # 1241s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmptrdl8858.xml', '--output', '-', '--body'] 1241s # Return code: 0 1241s # Output: 1241s # /* 1241s # * This file is generated by gdbus-codegen, do not modify it. 1241s # * 1241s # * The license of this code is the same as for the D-Bus interface description 1241s # * it was derived from. Note that it links to GLib, so must comply with the 1241s # * LGPL linking clauses. 1241s # */ 1241s # 1241s # #ifdef HAVE_CONFIG_H 1241s # # include "config.h" 1241s # #endif 1241s # 1241s # #include 1241s # #ifdef G_OS_UNIX 1241s # # include 1241s # #endif 1241s # 1241s # #ifdef G_ENABLE_DEBUG 1241s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1241s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1241s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1241s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1241s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1241s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1241s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1241s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1241s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1241s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1241s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1241s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1241s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1241s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1241s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1241s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1241s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1241s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1241s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1241s # #else /* !G_ENABLE_DEBUG */ 1241s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1241s # * Do not access GValues directly in your code. Instead, use the 1241s # * g_value_get_*() functions 1241s # */ 1241s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1241s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1241s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1241s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1241s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1241s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1241s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1241s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1241s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1241s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1241s # #endif /* !G_ENABLE_DEBUG */ 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusArgInfo parent_struct; 1241s # gboolean use_gvariant; 1241s # } _ExtendedGDBusArgInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusMethodInfo parent_struct; 1241s # const gchar *signal_name; 1241s # gboolean pass_fdlist; 1241s # } _ExtendedGDBusMethodInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusSignalInfo parent_struct; 1241s # const gchar *signal_name; 1241s # } _ExtendedGDBusSignalInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusPropertyInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # guint use_gvariant : 1; 1241s # guint emits_changed_signal : 1; 1241s # } _ExtendedGDBusPropertyInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # GDBusInterfaceInfo parent_struct; 1241s # const gchar *hyphen_name; 1241s # } _ExtendedGDBusInterfaceInfo; 1241s # 1241s # typedef struct 1241s # { 1241s # const _ExtendedGDBusPropertyInfo *info; 1241s # guint prop_id; 1241s # GValue orig_value; /* the value before the change */ 1241s # } ChangedProperty; 1241s # 1241s # static void 1241s # _changed_property_free (ChangedProperty *data) 1241s # { 1241s # g_value_unset (&data->orig_value); 1241s # g_free (data); 1241s # } 1241s # 1241s # static gboolean 1241s # _g_strv_equal0 (gchar **a, gchar **b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # guint n; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # if (g_strv_length (a) != g_strv_length (b)) 1241s # goto out; 1241s # for (n = 0; a[n] != NULL; n++) 1241s # if (g_strcmp0 (a[n], b[n]) != 0) 1241s # goto out; 1241s # ret = TRUE; 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # static gboolean 1241s # _g_variant_equal0 (GVariant *a, GVariant *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # if (a == NULL && b == NULL) 1241s # { 1241s # ret = TRUE; 1241s # goto out; 1241s # } 1241s # if (a == NULL || b == NULL) 1241s # goto out; 1241s # ret = g_variant_equal (a, b); 1241s # out: 1241s # return ret; 1241s # } 1241s # 1241s # G_GNUC_UNUSED static gboolean 1241s # _g_value_equal (const GValue *a, const GValue *b) 1241s # { 1241s # gboolean ret = FALSE; 1241s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1241s # switch (G_VALUE_TYPE (a)) 1241s # { 1241s # case G_TYPE_BOOLEAN: 1241s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1241s # break; 1241s # case G_TYPE_UCHAR: 1241s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1241s # break; 1241s # case G_TYPE_INT: 1241s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1241s # break; 1241s # case G_TYPE_UINT: 1241s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1241s # break; 1241s # case G_TYPE_INT64: 1241s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1241s # break; 1241s # case G_TYPE_UINT64: 1241s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1241s # break; 1241s # case G_TYPE_DOUBLE: 1241s # { 1241s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1241s # gdouble da = g_value_get_double (a); 1241s # gdouble db = g_value_get_double (b); 1241s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1241s # } 1241s # break; 1241s # case G_TYPE_STRING: 1241s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1241s # break; 1241s # case G_TYPE_VARIANT: 1241s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1241s # break; 1241s # default: 1241s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1241s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1241s # else 1241s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1241s # break; 1241s # } 1241s # return ret; 1241s # } 1241s # 1241s # static void 1241s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1241s # GClosure *closure, 1241s # GValue *return_value, 1241s # unsigned int n_param_values, 1241s # const GValue *param_values, 1241s # void *invocation_hint G_GNUC_UNUSED, 1241s # void *marshal_data) 1241s # { 1241s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1241s # (void *data1, 1241s # GDBusMethodInvocation *arg_method_invocation, 1241s # gint arg_arg_i, 1241s # void *data2); 1241s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1241s # GCClosure *cc = (GCClosure*) closure; 1241s # void *data1, *data2; 1241s # gboolean v_return; 1241s # 1241s # g_return_if_fail (return_value != NULL); 1241s # g_return_if_fail (n_param_values == 3); 1241s # 1241s # if (G_CCLOSURE_SWAP_DATA (closure)) 1241s # { 1241s # data1 = closure->data; 1241s # data2 = g_value_peek_pointer (param_values + 0); 1241s # } 1241s # else 1241s # { 1241s # data1 = g_value_peek_pointer (param_values + 0); 1241s # data2 = closure->data; 1241s # } 1241s # 1241s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1241s # (marshal_data ? marshal_data : cc->callback); 1241s # 1241s # v_return = 1241s # callback (data1, 1241s # g_marshal_value_peek_object (param_values + 1), 1241s # g_marshal_value_peek_int (param_values + 2), 1241s # data2); 1241s # 1241s # g_value_set_boolean (return_value, v_return); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ 1241s # * Code for interface org.project.UsefulInterface 1241s # * ------------------------------------------------------------------------ 1241s # */ 1241s # 1241s # /** 1241s # * SECTION:OrgProjectUsefulInterface 1241s # * @title: OrgProjectUsefulInterface 1241s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1241s # * 1241s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1241s # */ 1241s # 1241s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1241s # 1241s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "arg_i", 1241s # (gchar *) "i", 1241s # NULL 1241s # }, 1241s # FALSE 1241s # }; 1241s # 1241s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers[] = 1241s # { 1241s # &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i.parent_struct, 1241s # NULL 1241s # }; 1241s # 1241s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "SingleArgMethodI", 1241s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers, 1241s # NULL, 1241s # NULL 1241s # }, 1241s # "handle-single-arg-method-i", 1241s # FALSE 1241s # }; 1241s # 1241s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1241s # { 1241s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1241s # NULL 1241s # }; 1241s # 1241s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1241s # { 1241s # { 1241s # -1, 1241s # (gchar *) "org.project.UsefulInterface", 1241s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1241s # NULL, 1241s # NULL, 1241s # NULL 1241s # }, 1241s # "org-project-useful-interface", 1241s # }; 1241s # 1241s # 1241s # /** 1241s # * org_project_useful_interface_interface_info: 1241s # * 1241s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1241s # * 1241s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1241s # */ 1241s # GDBusInterfaceInfo * 1241s # org_project_useful_interface_interface_info (void) 1241s # { 1241s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_override_properties: 1241s # * @klass: The class structure for a #GObject derived class. 1241s # * @property_id_begin: The property id to assign to the first overridden property. 1241s # * 1241s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1241s # * The properties are overridden in the order they are defined. 1241s # * 1241s # * Returns: The last property id. 1241s # */ 1241s # guint 1241s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1241s # { 1241s # return property_id_begin - 1; 1241s # } 1241s # 1241s # 1241s # inline static void 1241s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1241s # GClosure *closure, 1241s # GValue *return_value, 1241s # unsigned int n_param_values, 1241s # const GValue *param_values, 1241s # void *invocation_hint, 1241s # void *marshal_data) 1241s # { 1241s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1241s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1241s # } 1241s # 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterface: 1241s # * 1241s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceIface: 1241s # * @parent_iface: The parent interface. 1241s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1241s # * 1241s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1241s # */ 1241s # 1241s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1241s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1241s # 1241s # static void 1241s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1241s # { 1241s # /* GObject signals for incoming D-Bus method calls: */ 1241s # /** 1241s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1241s # * @object: A #OrgProjectUsefulInterface. 1241s # * @invocation: A #GDBusMethodInvocation. 1241s # * @arg_arg_i: Argument passed by remote caller. 1241s # * 1241s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1241s # * 1241s # * 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. 1241s # * 1241s # * 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. 1241s # */ 1241s # g_signal_new ("handle-single-arg-method-i", 1241s # G_TYPE_FROM_INTERFACE (iface), 1241s # G_SIGNAL_RUN_LAST, 1241s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1241s # g_signal_accumulator_true_handled, 1241s # NULL, 1241s # org_project_useful_interface_method_marshal_single_arg_method_i, 1241s # G_TYPE_BOOLEAN, 1241s # 2, 1241s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1241s # 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_call_single_arg_method_i: 1241s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1241s # * @arg_arg_i: Argument to pass with the method invocation. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1241s # * @user_data: User data to pass to @callback. 1241s # * 1241s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1241s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1241s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1241s # * 1241s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1241s # */ 1241s # void 1241s # org_project_useful_interface_call_single_arg_method_i ( 1241s # OrgProjectUsefulInterface *proxy, 1241s # gint arg_arg_i, 1241s # GCancellable *cancellable, 1241s # GAsyncReadyCallback callback, 1241s # gpointer user_data) 1241s # { 1241s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1241s # "SingleArgMethodI", 1241s # g_variant_new ("(i)", 1241s # arg_arg_i), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # cancellable, 1241s # callback, 1241s # user_data); 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_call_single_arg_method_i_finish: 1241s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1241s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1241s # * @error: Return location for error or %NULL. 1241s # * 1241s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1241s # * 1241s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1241s # */ 1241s # gboolean 1241s # org_project_useful_interface_call_single_arg_method_i_finish ( 1241s # OrgProjectUsefulInterface *proxy, 1241s # GAsyncResult *res, 1241s # GError **error) 1241s # { 1241s # GVariant *_ret; 1241s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1241s # if (_ret == NULL) 1241s # goto _out; 1241s # g_variant_get (_ret, 1241s # "()"); 1241s # g_variant_unref (_ret); 1241s # _out: 1241s # return _ret != NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_call_single_arg_method_i_sync: 1241s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1241s # * @arg_arg_i: Argument to pass with the method invocation. 1241s # * @cancellable: (nullable): A #GCancellable or %NULL. 1241s # * @error: Return location for error or %NULL. 1241s # * 1241s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1241s # * 1241s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1241s # * 1241s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1241s # */ 1241s # gboolean 1241s # org_project_useful_interface_call_single_arg_method_i_sync ( 1241s # OrgProjectUsefulInterface *proxy, 1241s # gint arg_arg_i, 1241s # GCancellable *cancellable, 1241s # GError **error) 1241s # { 1241s # GVariant *_ret; 1241s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1241s # "SingleArgMethodI", 1241s # g_variant_new ("(i)", 1241s # arg_arg_i), 1241s # G_DBUS_CALL_FLAGS_NONE, 1241s # -1, 1241s # cancellable, 1241s # error); 1241s # if (_ret == NULL) 1241s # goto _out; 1241s # g_variant_get (_ret, 1241s # "()"); 1241s # g_variant_unref (_ret); 1241s # _out: 1241s # return _ret != NULL; 1241s # } 1241s # 1241s # /** 1241s # * org_project_useful_interface_complete_single_arg_method_i: 1241s # * @object: A #OrgProjectUsefulInterface. 1241s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1241s # * 1241s # * 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. 1241s # * 1241s # * This method will free @invocation, you cannot use it afterwards. 1241s # */ 1241s # void 1241s # org_project_useful_interface_complete_single_arg_method_i ( 1241s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1241s # GDBusMethodInvocation *invocation) 1241s # { 1241s # g_dbus_method_invocation_return_value (invocation, 1241s # g_variant_new ("()")); 1241s # } 1241s # 1241s # /* ------------------------------------------------------------------------ */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceProxy: 1241s # * 1241s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1241s # */ 1241s # 1241s # /** 1241s # * OrgProjectUsefulInterfaceProxyClass: 1241s # * @parent_class: The parent class. 1241s # * 1241s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1241s # */ 1241s # 1241s # struct _OrgProjectUsefulInterfaceProxyPrivate 1241s # { 1241s # GData *qdata; 1241s # }; 1241s # 1241s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1241s # 1241s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1241s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1241s # 1241s # #else 1241s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1241s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1241s # 1241s # #endif 1241s # static void 1241s # org_project_useful_interface_proxy_finalize (GObject *object) 1241s # { 1241s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1241s # g_datalist_clear (&proxy->priv->qdata); 1241s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1241s # guint prop_id G_GNUC_UNUSED, 1241s # GValue *value G_GNUC_UNUSED, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1241s # guint prop_id G_GNUC_UNUSED, 1241s # const GValue *value G_GNUC_UNUSED, 1241s # GParamSpec *pspec G_GNUC_UNUSED) 1241s # { 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1241s # const gchar *sender_name G_GNUC_UNUSED, 1241s # const gchar *signal_name, 1241s # GVariant *parameters) 1241s # { 1241s # _ExtendedGDBusSignalInfo *info; 1241s # GVariantIter iter; 1241s # GVariant *child; 1241s # GValue *paramv; 1241s # gsize num_params; 1241s # gsize n; 1241s # guint signal_id; 1241s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1241s # if (info == NULL) 1241s # return; 1241s # num_params = g_variant_n_children (parameters); 1241s # paramv = g_new0 (GValue, num_params + 1); 1241s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_value_set_object (¶mv[0], proxy); 1241s # g_variant_iter_init (&iter, parameters); 1241s # n = 1; 1241s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1241s # { 1241s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1241s # if (arg_info->use_gvariant) 1241s # { 1241s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1241s # g_value_set_variant (¶mv[n], child); 1241s # n++; 1241s # } 1241s # else 1241s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1241s # g_variant_unref (child); 1241s # } 1241s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1241s # g_signal_emitv (paramv, signal_id, 0, NULL); 1241s # for (n = 0; n < num_params + 1; n++) 1241s # g_value_unset (¶mv[n]); 1241s # g_free (paramv); 1241s # } 1241s # 1241s # static void 1241s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1241s # GVariant *changed_properties, 1241s # const gchar *const *invalidated_properties) 1241s # { 1241s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1241s # guint n; 1241s # const gchar *key; 1241s # GVariantIter *iter; 1241s # _ExtendedGDBusPropertyInfo *info; 1241s # g_variant_get (changed_properties, "a{sv}", &iter); 1241s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1241s # { 1241s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1241s # g_datalist_remove_data (&proxy->priv->qdata, key); 1241s # if (info != NULL) 1241s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1241s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpl4sis2it/tmpl_53mnui.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmpl_53mnui.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # guint arg_arg_u, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 3); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # g_marshal_value_peek_uint (param_values + 2), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_u", 1242s # (gchar *) "u", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodU", 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-u", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @arg_arg_u: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-u", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_u, 1242s # G_TYPE_BOOLEAN, 1242s # 2, 1242s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_u: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_u: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_u ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # guint arg_arg_u, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodU", 1242s # g_variant_new ("(u)", 1242s # arg_arg_u), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_u_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_u_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_u_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_u: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_u_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # guint arg_arg_u, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodU", 1242s # g_variant_new ("(u)", 1242s # arg_arg_u), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_u: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_u ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("()")); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpl4sis2it/tmpblv1731_.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmpblv1731_.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # gint64 arg_arg_x, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectInt64Func callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 3); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # g_marshal_value_peek_int64 (param_values + 2), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_x", 1242s # (gchar *) "x", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodX", 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-x", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @arg_arg_x: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-x", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_x, 1242s # G_TYPE_BOOLEAN, 1242s # 2, 1242s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_x: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_x: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_x ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gint64 arg_arg_x, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodX", 1242s # g_variant_new ("(x)", 1242s # arg_arg_x), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_x_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_x_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_x_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_x: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_x_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gint64 arg_arg_x, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodX", 1242s # g_variant_new ("(x)", 1242s # arg_arg_x), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_x: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_x ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("()")); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpl4sis2it/tmplchkpoqm.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmplchkpoqm.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # guint64 arg_arg_t, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectUint64Func callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 3); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # g_marshal_value_peek_uint64 (param_values + 2), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_t", 1242s # (gchar *) "t", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodT", 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-t", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @arg_arg_t: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-t", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_t, 1242s # G_TYPE_BOOLEAN, 1242s # 2, 1242s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT64); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_t: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_t: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_t ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # guint64 arg_arg_t, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodT", 1242s # g_variant_new ("(t)", 1242s # arg_arg_t), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_t_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_t_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_t_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_t: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_t_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # guint64 arg_arg_t, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodT", 1242s # g_variant_new ("(t)", 1242s # arg_arg_t), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_t: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_t ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("()")); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpl4sis2it/tmpyzqe3rs9.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmpyzqe3rs9.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # gdouble arg_arg_d, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectDoubleFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 3); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # g_marshal_value_peek_double (param_values + 2), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_d", 1242s # (gchar *) "d", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodD", 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-d", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @arg_arg_d: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-d", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_d, 1242s # G_TYPE_BOOLEAN, 1242s # 2, 1242s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_DOUBLE); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_d: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_d: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_d ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gdouble arg_arg_d, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodD", 1242s # g_variant_new ("(d)", 1242s # arg_arg_d), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_d_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_d_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_d_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_d: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_d_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gdouble arg_arg_d, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodD", 1242s # g_variant_new ("(d)", 1242s # arg_arg_d), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_d: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_d ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("()")); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpl4sis2it/tmpocay3veg.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmpocay3veg.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # const gchar *arg_arg_s, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 3); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # g_marshal_value_peek_string (param_values + 2), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_s", 1242s # (gchar *) "s", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodS", 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-s", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @arg_arg_s: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-s", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_s, 1242s # G_TYPE_BOOLEAN, 1242s # 2, 1242s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_s: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_s: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_s ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # const gchar *arg_arg_s, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodS", 1242s # g_variant_new ("(s)", 1242s # arg_arg_s), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_s_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_s_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_s_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_s: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_s_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # const gchar *arg_arg_s, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodS", 1242s # g_variant_new ("(s)", 1242s # arg_arg_s), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_s: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_s ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("()")); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpl4sis2it/tmp7wg5q29y.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmp7wg5q29y.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # const gchar *arg_arg_o, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 3); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # g_marshal_value_peek_string (param_values + 2), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_o", 1242s # (gchar *) "o", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodO", 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-o", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @arg_arg_o: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-o", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_o, 1242s # G_TYPE_BOOLEAN, 1242s # 2, 1242s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_o: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_o: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_o ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # const gchar *arg_arg_o, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodO", 1242s # g_variant_new ("(o)", 1242s # arg_arg_o), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_o_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_o_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_o_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_o: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_o_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # const gchar *arg_arg_o, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodO", 1242s # g_variant_new ("(o)", 1242s # arg_arg_o), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_o: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_o ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("()")); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpl4sis2it/tmpovu9g0jc.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmpovu9g0jc.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # const gchar *arg_arg_g, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 3); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # g_marshal_value_peek_string (param_values + 2), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_g", 1242s # (gchar *) "g", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodG", 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-g", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @arg_arg_g: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-g", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_g, 1242s # G_TYPE_BOOLEAN, 1242s # 2, 1242s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_g: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_g: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_g ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # const gchar *arg_arg_g, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodG", 1242s # g_variant_new ("(g)", 1242s # arg_arg_g), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_g_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_g_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_g_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_g: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_g_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # const gchar *arg_arg_g, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodG", 1242s # g_variant_new ("(g)", 1242s # arg_arg_g), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_g: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_g ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("()")); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpl4sis2it/tmpj1m_q_eb.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmpj1m_q_eb.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # GVariant *arg_arg_h, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 3); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # g_marshal_value_peek_variant (param_values + 2), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_h", 1242s # (gchar *) "h", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodH", 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-h", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @arg_arg_h: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-h", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_h, 1242s # G_TYPE_BOOLEAN, 1242s # 2, 1242s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_h: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_h: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_h ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GVariant *arg_arg_h, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodH", 1242s # g_variant_new ("(@h)", 1242s # arg_arg_h), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_h_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_h_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_h_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_h: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_h_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GVariant *arg_arg_h, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodH", 1242s # g_variant_new ("(@h)", 1242s # arg_arg_h), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_h: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_h ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("()")); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpl4sis2it/tmptzrsk6eq.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmptzrsk6eq.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # const gchar *arg_arg_ay, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 3); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # g_marshal_value_peek_string (param_values + 2), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_ay", 1242s # (gchar *) "ay", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodAy", 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-ay", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @arg_arg_ay: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-ay", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1242s # G_TYPE_BOOLEAN, 1242s # 2, 1242s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_ay: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_ay: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_ay ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # const gchar *arg_arg_ay, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAy", 1242s # g_variant_new ("(^ay)", 1242s # arg_arg_ay), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_ay: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # const gchar *arg_arg_ay, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAy", 1242s # g_variant_new ("(^ay)", 1242s # arg_arg_ay), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_ay: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_ay ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("()")); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpl4sis2it/tmp20eshn0b.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmp20eshn0b.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # const gchar *const *arg_arg_as, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 3); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # g_marshal_value_peek_boxed (param_values + 2), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_as", 1242s # (gchar *) "as", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodAs", 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-as", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @arg_arg_as: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-as", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_as, 1242s # G_TYPE_BOOLEAN, 1242s # 2, 1242s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_as: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_as: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_as ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # const gchar *const *arg_arg_as, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAs", 1242s # g_variant_new ("(^as)", 1242s # arg_arg_as), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_as_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_as_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_as_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_as: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_as_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # const gchar *const *arg_arg_as, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAs", 1242s # g_variant_new ("(^as)", 1242s # arg_arg_as), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_as: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_as ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("()")); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpl4sis2it/tmp2cb23tmu.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmp2cb23tmu.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # const gchar *const *arg_arg_ao, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 3); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # g_marshal_value_peek_boxed (param_values + 2), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_ao", 1242s # (gchar *) "ao", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodAo", 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-ao", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @arg_arg_ao: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-ao", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1242s # G_TYPE_BOOLEAN, 1242s # 2, 1242s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_ao: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_ao: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_ao ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # const gchar *const *arg_arg_ao, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAo", 1242s # g_variant_new ("(^ao)", 1242s # arg_arg_ao), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_ao: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # const gchar *const *arg_arg_ao, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAo", 1242s # g_variant_new ("(^ao)", 1242s # arg_arg_ao), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_ao: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_ao ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("()")); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpl4sis2it/tmp6j7yecus.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmp6j7yecus.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # const gchar *const *arg_arg_aay, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 3); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # g_marshal_value_peek_boxed (param_values + 2), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_aay", 1242s # (gchar *) "aay", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodAay", 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-aay", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @arg_arg_aay: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-aay", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1242s # G_TYPE_BOOLEAN, 1242s # 2, 1242s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_aay: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_aay: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_aay ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # const gchar *const *arg_arg_aay, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAay", 1242s # g_variant_new ("(^aay)", 1242s # arg_arg_aay), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_aay: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # const gchar *const *arg_arg_aay, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAay", 1242s # g_variant_new ("(^aay)", 1242s # arg_arg_aay), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_aay: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_aay ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("()")); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpl4sis2it/tmpd_8bjpcn.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4sis2it/tmpd_8bjpcn.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # GVariant *arg_arg_asv, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 3); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # g_marshal_value_peek_variant (param_values + 2), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_asv", 1242s # (gchar *) "a{sv}", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodAsv", 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-asv", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @arg_arg_asv: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-asv", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1242s # G_TYPE_BOOLEAN, 1242s # 2, 1242s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_asv: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_asv: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_asv ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GVariant *arg_arg_asv, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAsv", 1242s # g_variant_new ("(@a{sv})", 1242s # arg_arg_asv), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @arg_arg_asv: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GVariant *arg_arg_asv, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAsv", 1242s # g_variant_new ("(@a{sv})", 1242s # arg_arg_asv), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_asv: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_asv ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("()")); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s ok 11 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_out_args 1242s # gdbus-codegen: /usr/bin/gdbus-codegen 1242s # tmpdir: /tmp/tmpck9_a8ii 1242s # /tmp/tmpck9_a8ii/tmprshzzblk.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmprshzzblk.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_b", 1242s # (gchar *) "b", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodB", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-b", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-b", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_b, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_b: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_b ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodB", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_b_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_b_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gboolean *out_arg_b, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(b)", 1242s # out_arg_b); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_b_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_b_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gboolean *out_arg_b, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodB", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(b)", 1242s # out_arg_b); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_b: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_b: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_b ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # gboolean arg_b) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(b)", 1242s # arg_b)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmpt8p8wgw5.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmpt8p8wgw5.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_y", 1242s # (gchar *) "y", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodY", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-y", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-y", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_y, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_y: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_y ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodY", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_y_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_y_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # guchar *out_arg_y, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(y)", 1242s # out_arg_y); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_y_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_y_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # guchar *out_arg_y, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodY", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(y)", 1242s # out_arg_y); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_y: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_y: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_y ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # guchar arg_y) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(y)", 1242s # arg_y)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmpsv0lspj9.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmpsv0lspj9.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_n", 1242s # (gchar *) "n", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodN", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-n", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-n", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_n, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_n: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_n ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodN", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_n_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_n_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gint16 *out_arg_n, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(n)", 1242s # out_arg_n); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_n_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_n_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gint16 *out_arg_n, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodN", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(n)", 1242s # out_arg_n); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_n: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_n: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_n ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # gint16 arg_n) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(n)", 1242s # arg_n)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmpvye2lhqq.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmpvye2lhqq.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_q", 1242s # (gchar *) "q", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodQ", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-q", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-q", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_q, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_q: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_q ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodQ", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_q_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_q_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # guint16 *out_arg_q, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(q)", 1242s # out_arg_q); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_q_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_q_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # guint16 *out_arg_q, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodQ", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(q)", 1242s # out_arg_q); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_q: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_q: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_q ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # guint16 arg_q) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(q)", 1242s # arg_q)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmpebzdprk5.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmpebzdprk5.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_i", 1242s # (gchar *) "i", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodI", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-i", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-i", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_i, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_i: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_i ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodI", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_i_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_i_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gint *out_arg_i, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(i)", 1242s # out_arg_i); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_i_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_i_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gint *out_arg_i, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodI", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(i)", 1242s # out_arg_i); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_i: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_i: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_i ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # gint arg_i) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(i)", 1242s # arg_i)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmp6u67wd2r.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmp6u67wd2r.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_u", 1242s # (gchar *) "u", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodU", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-u", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-u", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_u, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_u: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_u ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodU", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_u_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_u_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # guint *out_arg_u, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(u)", 1242s # out_arg_u); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_u_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_u_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # guint *out_arg_u, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodU", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(u)", 1242s # out_arg_u); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_u: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_u: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_u ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # guint arg_u) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(u)", 1242s # arg_u)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmp7ppzmz23.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmp7ppzmz23.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_x", 1242s # (gchar *) "x", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodX", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-x", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-x", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_x, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_x: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_x ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodX", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_x_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_x_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gint64 *out_arg_x, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(x)", 1242s # out_arg_x); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_x_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_x_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gint64 *out_arg_x, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodX", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(x)", 1242s # out_arg_x); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_x: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_x: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_x ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # gint64 arg_x) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(x)", 1242s # arg_x)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmpharydco_.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmpharydco_.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_t", 1242s # (gchar *) "t", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodT", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-t", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-t", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_t, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_t: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_t ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodT", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_t_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_t_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # guint64 *out_arg_t, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(t)", 1242s # out_arg_t); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_t_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_t_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # guint64 *out_arg_t, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodT", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(t)", 1242s # out_arg_t); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_t: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_t: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_t ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # guint64 arg_t) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(t)", 1242s # arg_t)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmp7l_hwcf0.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmp7l_hwcf0.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_d", 1242s # (gchar *) "d", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodD", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-d", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-d", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_d, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_d: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_d ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodD", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_d_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_d_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gdouble *out_arg_d, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(d)", 1242s # out_arg_d); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_d_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_d_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gdouble *out_arg_d, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodD", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(d)", 1242s # out_arg_d); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_d: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_d: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_d ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # gdouble arg_d) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(d)", 1242s # arg_d)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmp3ue7o2k_.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmp3ue7o2k_.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_s", 1242s # (gchar *) "s", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodS", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-s", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-s", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_s, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_s: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_s ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodS", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_s_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_s_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gchar **out_arg_s, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(s)", 1242s # out_arg_s); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_s_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_s_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gchar **out_arg_s, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodS", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(s)", 1242s # out_arg_s); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_s: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_s: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_s ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # const gchar *arg_s) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(s)", 1242s # arg_s)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmp5skgjelg.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmp5skgjelg.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_o", 1242s # (gchar *) "o", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodO", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-o", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-o", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_o, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_o: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_o ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodO", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_o_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_o_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gchar **out_arg_o, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(o)", 1242s # out_arg_o); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_o_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_o_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gchar **out_arg_o, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodO", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(o)", 1242s # out_arg_o); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_o: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_o: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_o ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # const gchar *arg_o) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(o)", 1242s # arg_o)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmphbsssyip.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmphbsssyip.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_g", 1242s # (gchar *) "g", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodG", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-g", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-g", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_g, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_g: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_g ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodG", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_g_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_g_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gchar **out_arg_g, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(g)", 1242s # out_arg_g); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_g_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_g_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gchar **out_arg_g, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodG", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(g)", 1242s # out_arg_g); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_g: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_g: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_g ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # const gchar *arg_g) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(g)", 1242s # arg_g)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmpl571xycj.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmpl571xycj.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_h", 1242s # (gchar *) "h", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodH", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-h", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-h", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_h, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_h: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_h ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodH", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_h_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_h_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GVariant **out_arg_h, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(@h)", 1242s # out_arg_h); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_h_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_h_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GVariant **out_arg_h, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodH", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(@h)", 1242s # out_arg_h); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_h: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_h: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_h ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # GVariant *arg_h) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(@h)", 1242s # arg_h)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmp46mw_l5l.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmp46mw_l5l.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_ay", 1242s # (gchar *) "ay", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodAy", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-ay", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-ay", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_ay: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_ay ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAy", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gchar **out_arg_ay, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(^ay)", 1242s # out_arg_ay); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gchar **out_arg_ay, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAy", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(^ay)", 1242s # out_arg_ay); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_ay: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_ay: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_ay ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # const gchar *arg_ay) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(^ay)", 1242s # arg_ay)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmpcfk4na2x.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmpcfk4na2x.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_as", 1242s # (gchar *) "as", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodAs", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-as", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-as", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_as, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_as: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_as ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAs", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_as_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_as_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gchar ***out_arg_as, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(^as)", 1242s # out_arg_as); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_as_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_as_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gchar ***out_arg_as, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAs", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(^as)", 1242s # out_arg_as); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_as: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_as: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_as ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # const gchar *const *arg_as) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(^as)", 1242s # arg_as)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmp589o95qr.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmp589o95qr.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_ao", 1242s # (gchar *) "ao", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodAo", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-ao", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-ao", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_ao: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_ao ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAo", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gchar ***out_arg_ao, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(^ao)", 1242s # out_arg_ao); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gchar ***out_arg_ao, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAo", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(^ao)", 1242s # out_arg_ao); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_ao: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_ao: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_ao ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # const gchar *const *arg_ao) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(^ao)", 1242s # arg_ao)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmpq_xaqz2k.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmpq_xaqz2k.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_aay", 1242s # (gchar *) "aay", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodAay", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-aay", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-aay", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_aay: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_aay ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAay", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gchar ***out_arg_aay, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(^aay)", 1242s # out_arg_aay); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # gchar ***out_arg_aay, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAay", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(^aay)", 1242s # out_arg_aay); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_aay: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_aay: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_aay ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # const gchar *const *arg_aay) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(^aay)", 1242s # arg_aay)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s # 1242s # /tmp/tmpck9_a8ii/tmp3l23mcj2.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpck9_a8ii/tmp3l23mcj2.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "arg_asv", 1242s # (gchar *) "a{sv}", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgMethodAsv", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-single-arg-method-asv", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-single-arg-method-asv", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_asv: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_useful_interface_call_single_arg_method_asv ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAsv", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GVariant **out_arg_asv, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(@a{sv})", 1242s # out_arg_asv); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1242s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1242s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1242s # OrgProjectUsefulInterface *proxy, 1242s # GVariant **out_arg_asv, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SingleArgMethodAsv", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(@a{sv})", 1242s # out_arg_asv); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_complete_single_arg_method_asv: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @arg_asv: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_useful_interface_complete_single_arg_method_asv ( 1242s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # GVariant *arg_asv) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(@a{sv})", 1242s # arg_asv)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s ok 12 __main__.TestCodegen.test_generate_methods_marshallers_multiple_in_args 1242s # gdbus-codegen: /usr/bin/gdbus-codegen 1242s # tmpdir: /tmp/tmpjeqourw4 1242s # /tmp/tmpjeqourw4/tmpzjeohrii.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjeqourw4/tmpzjeohrii.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # gboolean arg_an_b, 1242s # guchar arg_an_y, 1242s # gint16 arg_an_n, 1242s # guint16 arg_an_q, 1242s # gint arg_an_i, 1242s # guint arg_an_u, 1242s # gint64 arg_an_x, 1242s # guint64 arg_an_t, 1242s # gdouble arg_an_d, 1242s # const gchar *arg_an_s, 1242s # const gchar *arg_an_o, 1242s # const gchar *arg_an_g, 1242s # GVariant *arg_an_h, 1242s # const gchar *arg_an_ay, 1242s # const gchar *const *arg_an_as, 1242s # const gchar *const *arg_an_ao, 1242s # const gchar *const *arg_an_aay, 1242s # GVariant *arg_an_asv, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 20); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # g_marshal_value_peek_boolean (param_values + 2), 1242s # g_marshal_value_peek_uchar (param_values + 3), 1242s # g_marshal_value_peek_int (param_values + 4), 1242s # g_marshal_value_peek_uint (param_values + 5), 1242s # g_marshal_value_peek_int (param_values + 6), 1242s # g_marshal_value_peek_uint (param_values + 7), 1242s # g_marshal_value_peek_int64 (param_values + 8), 1242s # g_marshal_value_peek_uint64 (param_values + 9), 1242s # g_marshal_value_peek_double (param_values + 10), 1242s # g_marshal_value_peek_string (param_values + 11), 1242s # g_marshal_value_peek_string (param_values + 12), 1242s # g_marshal_value_peek_string (param_values + 13), 1242s # g_marshal_value_peek_variant (param_values + 14), 1242s # g_marshal_value_peek_string (param_values + 15), 1242s # g_marshal_value_peek_boxed (param_values + 16), 1242s # g_marshal_value_peek_boxed (param_values + 17), 1242s # g_marshal_value_peek_boxed (param_values + 18), 1242s # g_marshal_value_peek_variant (param_values + 19), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.CallableIface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectCallableIface 1242s # * @title: OrgProjectCallableIface 1242s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.CallableIface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_b", 1242s # (gchar *) "b", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_y", 1242s # (gchar *) "y", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_n", 1242s # (gchar *) "n", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_q", 1242s # (gchar *) "q", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_i", 1242s # (gchar *) "i", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_u", 1242s # (gchar *) "u", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_x", 1242s # (gchar *) "x", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_t", 1242s # (gchar *) "t", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_d", 1242s # (gchar *) "d", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_s", 1242s # (gchar *) "s", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_o", 1242s # (gchar *) "o", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_g", 1242s # (gchar *) "g", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_h", 1242s # (gchar *) "h", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_ay", 1242s # (gchar *) "ay", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_as", 1242s # (gchar *) "as", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_ao", 1242s # (gchar *) "ao", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_aay", 1242s # (gchar *) "aay", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_asv", 1242s # (gchar *) "a{sv}", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1242s # { 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "MethodWithManyArgs", 1242s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "handle-method-with-many-args", 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_b", 1242s # (gchar *) "b", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_y", 1242s # (gchar *) "y", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_n", 1242s # (gchar *) "n", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_q", 1242s # (gchar *) "q", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_i", 1242s # (gchar *) "i", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_u", 1242s # (gchar *) "u", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_x", 1242s # (gchar *) "x", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_t", 1242s # (gchar *) "t", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_d", 1242s # (gchar *) "d", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_s", 1242s # (gchar *) "s", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_o", 1242s # (gchar *) "o", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_g", 1242s # (gchar *) "g", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_h", 1242s # (gchar *) "h", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_ay", 1242s # (gchar *) "ay", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_as", 1242s # (gchar *) "as", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_ao", 1242s # (gchar *) "ao", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_aay", 1242s # (gchar *) "aay", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_asv", 1242s # (gchar *) "a{sv}", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers[] = 1242s # { 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_same_method_with_many_args = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SameMethodWithManyArgs", 1242s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "handle-same-method-with-many-args", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1242s # { 1242s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1242s # &_org_project_callable_iface_method_info_same_method_with_many_args.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.CallableIface", 1242s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-callable-iface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_callable_iface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_callable_iface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_callable_iface_method_marshal_method_with_many_args ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _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, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_callable_iface_method_marshal_same_method_with_many_args ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _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, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectCallableIface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectCallableIfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1242s # * @handle_same_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-same-method-with-many-args signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.CallableIface. 1242s # */ 1242s # 1242s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectCallableIface::handle-method-with-many-args: 1242s # * @object: A #OrgProjectCallableIface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @arg_an_b: Argument passed by remote caller. 1242s # * @arg_an_y: Argument passed by remote caller. 1242s # * @arg_an_n: Argument passed by remote caller. 1242s # * @arg_an_q: Argument passed by remote caller. 1242s # * @arg_an_i: Argument passed by remote caller. 1242s # * @arg_an_u: Argument passed by remote caller. 1242s # * @arg_an_x: Argument passed by remote caller. 1242s # * @arg_an_t: Argument passed by remote caller. 1242s # * @arg_an_d: Argument passed by remote caller. 1242s # * @arg_an_s: Argument passed by remote caller. 1242s # * @arg_an_o: Argument passed by remote caller. 1242s # * @arg_an_g: Argument passed by remote caller. 1242s # * @arg_an_h: Argument passed by remote caller. 1242s # * @arg_an_ay: Argument passed by remote caller. 1242s # * @arg_an_as: Argument passed by remote caller. 1242s # * @arg_an_ao: Argument passed by remote caller. 1242s # * @arg_an_aay: Argument passed by remote caller. 1242s # * @arg_an_asv: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-method-with-many-args", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_callable_iface_method_marshal_method_with_many_args, 1242s # G_TYPE_BOOLEAN, 1242s # 19, 1242s # 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); 1242s # 1242s # /** 1242s # * OrgProjectCallableIface::handle-same-method-with-many-args: 1242s # * @object: A #OrgProjectCallableIface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @arg_an_b: Argument passed by remote caller. 1242s # * @arg_an_y: Argument passed by remote caller. 1242s # * @arg_an_n: Argument passed by remote caller. 1242s # * @arg_an_q: Argument passed by remote caller. 1242s # * @arg_an_i: Argument passed by remote caller. 1242s # * @arg_an_u: Argument passed by remote caller. 1242s # * @arg_an_x: Argument passed by remote caller. 1242s # * @arg_an_t: Argument passed by remote caller. 1242s # * @arg_an_d: Argument passed by remote caller. 1242s # * @arg_an_s: Argument passed by remote caller. 1242s # * @arg_an_o: Argument passed by remote caller. 1242s # * @arg_an_g: Argument passed by remote caller. 1242s # * @arg_an_h: Argument passed by remote caller. 1242s # * @arg_an_ay: Argument passed by remote caller. 1242s # * @arg_an_as: Argument passed by remote caller. 1242s # * @arg_an_ao: Argument passed by remote caller. 1242s # * @arg_an_aay: Argument passed by remote caller. 1242s # * @arg_an_asv: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the SameMethodWithManyArgs() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-same-method-with-many-args", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_same_method_with_many_args), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_callable_iface_method_marshal_same_method_with_many_args, 1242s # G_TYPE_BOOLEAN, 1242s # 19, 1242s # 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); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_call_method_with_many_args: 1242s # * @proxy: A #OrgProjectCallableIfaceProxy. 1242s # * @arg_an_b: Argument to pass with the method invocation. 1242s # * @arg_an_y: Argument to pass with the method invocation. 1242s # * @arg_an_n: Argument to pass with the method invocation. 1242s # * @arg_an_q: Argument to pass with the method invocation. 1242s # * @arg_an_i: Argument to pass with the method invocation. 1242s # * @arg_an_u: Argument to pass with the method invocation. 1242s # * @arg_an_x: Argument to pass with the method invocation. 1242s # * @arg_an_t: Argument to pass with the method invocation. 1242s # * @arg_an_d: Argument to pass with the method invocation. 1242s # * @arg_an_s: Argument to pass with the method invocation. 1242s # * @arg_an_o: Argument to pass with the method invocation. 1242s # * @arg_an_g: Argument to pass with the method invocation. 1242s # * @arg_an_h: Argument to pass with the method invocation. 1242s # * @arg_an_ay: Argument to pass with the method invocation. 1242s # * @arg_an_as: Argument to pass with the method invocation. 1242s # * @arg_an_ao: Argument to pass with the method invocation. 1242s # * @arg_an_aay: Argument to pass with the method invocation. 1242s # * @arg_an_asv: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_callable_iface_call_method_with_many_args ( 1242s # OrgProjectCallableIface *proxy, 1242s # gboolean arg_an_b, 1242s # guchar arg_an_y, 1242s # gint16 arg_an_n, 1242s # guint16 arg_an_q, 1242s # gint arg_an_i, 1242s # guint arg_an_u, 1242s # gint64 arg_an_x, 1242s # guint64 arg_an_t, 1242s # gdouble arg_an_d, 1242s # const gchar *arg_an_s, 1242s # const gchar *arg_an_o, 1242s # const gchar *arg_an_g, 1242s # GVariant *arg_an_h, 1242s # const gchar *arg_an_ay, 1242s # const gchar *const *arg_an_as, 1242s # const gchar *const *arg_an_ao, 1242s # const gchar *const *arg_an_aay, 1242s # GVariant *arg_an_asv, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "MethodWithManyArgs", 1242s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1242s # arg_an_b, 1242s # arg_an_y, 1242s # arg_an_n, 1242s # arg_an_q, 1242s # arg_an_i, 1242s # arg_an_u, 1242s # arg_an_x, 1242s # arg_an_t, 1242s # arg_an_d, 1242s # arg_an_s, 1242s # arg_an_o, 1242s # arg_an_g, 1242s # arg_an_h, 1242s # arg_an_ay, 1242s # arg_an_as, 1242s # arg_an_ao, 1242s # arg_an_aay, 1242s # arg_an_asv), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_call_method_with_many_args_finish: 1242s # * @proxy: A #OrgProjectCallableIfaceProxy. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_callable_iface_call_method_with_many_args_finish ( 1242s # OrgProjectCallableIface *proxy, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_call_method_with_many_args_sync: 1242s # * @proxy: A #OrgProjectCallableIfaceProxy. 1242s # * @arg_an_b: Argument to pass with the method invocation. 1242s # * @arg_an_y: Argument to pass with the method invocation. 1242s # * @arg_an_n: Argument to pass with the method invocation. 1242s # * @arg_an_q: Argument to pass with the method invocation. 1242s # * @arg_an_i: Argument to pass with the method invocation. 1242s # * @arg_an_u: Argument to pass with the method invocation. 1242s # * @arg_an_x: Argument to pass with the method invocation. 1242s # * @arg_an_t: Argument to pass with the method invocation. 1242s # * @arg_an_d: Argument to pass with the method invocation. 1242s # * @arg_an_s: Argument to pass with the method invocation. 1242s # * @arg_an_o: Argument to pass with the method invocation. 1242s # * @arg_an_g: Argument to pass with the method invocation. 1242s # * @arg_an_h: Argument to pass with the method invocation. 1242s # * @arg_an_ay: Argument to pass with the method invocation. 1242s # * @arg_an_as: Argument to pass with the method invocation. 1242s # * @arg_an_ao: Argument to pass with the method invocation. 1242s # * @arg_an_aay: Argument to pass with the method invocation. 1242s # * @arg_an_asv: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_callable_iface_call_method_with_many_args_sync ( 1242s # OrgProjectCallableIface *proxy, 1242s # gboolean arg_an_b, 1242s # guchar arg_an_y, 1242s # gint16 arg_an_n, 1242s # guint16 arg_an_q, 1242s # gint arg_an_i, 1242s # guint arg_an_u, 1242s # gint64 arg_an_x, 1242s # guint64 arg_an_t, 1242s # gdouble arg_an_d, 1242s # const gchar *arg_an_s, 1242s # const gchar *arg_an_o, 1242s # const gchar *arg_an_g, 1242s # GVariant *arg_an_h, 1242s # const gchar *arg_an_ay, 1242s # const gchar *const *arg_an_as, 1242s # const gchar *const *arg_an_ao, 1242s # const gchar *const *arg_an_aay, 1242s # GVariant *arg_an_asv, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "MethodWithManyArgs", 1242s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1242s # arg_an_b, 1242s # arg_an_y, 1242s # arg_an_n, 1242s # arg_an_q, 1242s # arg_an_i, 1242s # arg_an_u, 1242s # arg_an_x, 1242s # arg_an_t, 1242s # arg_an_d, 1242s # arg_an_s, 1242s # arg_an_o, 1242s # arg_an_g, 1242s # arg_an_h, 1242s # arg_an_ay, 1242s # arg_an_as, 1242s # arg_an_ao, 1242s # arg_an_aay, 1242s # arg_an_asv), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_call_same_method_with_many_args: 1242s # * @proxy: A #OrgProjectCallableIfaceProxy. 1242s # * @arg_an_b: Argument to pass with the method invocation. 1242s # * @arg_an_y: Argument to pass with the method invocation. 1242s # * @arg_an_n: Argument to pass with the method invocation. 1242s # * @arg_an_q: Argument to pass with the method invocation. 1242s # * @arg_an_i: Argument to pass with the method invocation. 1242s # * @arg_an_u: Argument to pass with the method invocation. 1242s # * @arg_an_x: Argument to pass with the method invocation. 1242s # * @arg_an_t: Argument to pass with the method invocation. 1242s # * @arg_an_d: Argument to pass with the method invocation. 1242s # * @arg_an_s: Argument to pass with the method invocation. 1242s # * @arg_an_o: Argument to pass with the method invocation. 1242s # * @arg_an_g: Argument to pass with the method invocation. 1242s # * @arg_an_h: Argument to pass with the method invocation. 1242s # * @arg_an_ay: Argument to pass with the method invocation. 1242s # * @arg_an_as: Argument to pass with the method invocation. 1242s # * @arg_an_ao: Argument to pass with the method invocation. 1242s # * @arg_an_aay: Argument to pass with the method invocation. 1242s # * @arg_an_asv: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_callable_iface_call_same_method_with_many_args_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_callable_iface_call_same_method_with_many_args_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_callable_iface_call_same_method_with_many_args ( 1242s # OrgProjectCallableIface *proxy, 1242s # gboolean arg_an_b, 1242s # guchar arg_an_y, 1242s # gint16 arg_an_n, 1242s # guint16 arg_an_q, 1242s # gint arg_an_i, 1242s # guint arg_an_u, 1242s # gint64 arg_an_x, 1242s # guint64 arg_an_t, 1242s # gdouble arg_an_d, 1242s # const gchar *arg_an_s, 1242s # const gchar *arg_an_o, 1242s # const gchar *arg_an_g, 1242s # GVariant *arg_an_h, 1242s # const gchar *arg_an_ay, 1242s # const gchar *const *arg_an_as, 1242s # const gchar *const *arg_an_ao, 1242s # const gchar *const *arg_an_aay, 1242s # GVariant *arg_an_asv, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "SameMethodWithManyArgs", 1242s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1242s # arg_an_b, 1242s # arg_an_y, 1242s # arg_an_n, 1242s # arg_an_q, 1242s # arg_an_i, 1242s # arg_an_u, 1242s # arg_an_x, 1242s # arg_an_t, 1242s # arg_an_d, 1242s # arg_an_s, 1242s # arg_an_o, 1242s # arg_an_g, 1242s # arg_an_h, 1242s # arg_an_ay, 1242s # arg_an_as, 1242s # arg_an_ao, 1242s # arg_an_aay, 1242s # arg_an_asv), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_call_same_method_with_many_args_finish: 1242s # * @proxy: A #OrgProjectCallableIfaceProxy. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_same_method_with_many_args(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_callable_iface_call_same_method_with_many_args(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_callable_iface_call_same_method_with_many_args_finish ( 1242s # OrgProjectCallableIface *proxy, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_call_same_method_with_many_args_sync: 1242s # * @proxy: A #OrgProjectCallableIfaceProxy. 1242s # * @arg_an_b: Argument to pass with the method invocation. 1242s # * @arg_an_y: Argument to pass with the method invocation. 1242s # * @arg_an_n: Argument to pass with the method invocation. 1242s # * @arg_an_q: Argument to pass with the method invocation. 1242s # * @arg_an_i: Argument to pass with the method invocation. 1242s # * @arg_an_u: Argument to pass with the method invocation. 1242s # * @arg_an_x: Argument to pass with the method invocation. 1242s # * @arg_an_t: Argument to pass with the method invocation. 1242s # * @arg_an_d: Argument to pass with the method invocation. 1242s # * @arg_an_s: Argument to pass with the method invocation. 1242s # * @arg_an_o: Argument to pass with the method invocation. 1242s # * @arg_an_g: Argument to pass with the method invocation. 1242s # * @arg_an_h: Argument to pass with the method invocation. 1242s # * @arg_an_ay: Argument to pass with the method invocation. 1242s # * @arg_an_as: Argument to pass with the method invocation. 1242s # * @arg_an_ao: Argument to pass with the method invocation. 1242s # * @arg_an_aay: Argument to pass with the method invocation. 1242s # * @arg_an_asv: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_callable_iface_call_same_method_with_many_args() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_callable_iface_call_same_method_with_many_args_sync ( 1242s # OrgProjectCallableIface *proxy, 1242s # gboolean arg_an_b, 1242s # guchar arg_an_y, 1242s # gint16 arg_an_n, 1242s # guint16 arg_an_q, 1242s # gint arg_an_i, 1242s # guint arg_an_u, 1242s # gint64 arg_an_x, 1242s # guint64 arg_an_t, 1242s # gdouble arg_an_d, 1242s # const gchar *arg_an_s, 1242s # const gchar *arg_an_o, 1242s # const gchar *arg_an_g, 1242s # GVariant *arg_an_h, 1242s # const gchar *arg_an_ay, 1242s # const gchar *const *arg_an_as, 1242s # const gchar *const *arg_an_ao, 1242s # const gchar *const *arg_an_aay, 1242s # GVariant *arg_an_asv, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "SameMethodWithManyArgs", 1242s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1242s # arg_an_b, 1242s # arg_an_y, 1242s # arg_an_n, 1242s # arg_an_q, 1242s # arg_an_i, 1242s # arg_an_u, 1242s # arg_an_x, 1242s # arg_an_t, 1242s # arg_an_d, 1242s # arg_an_s, 1242s # arg_an_o, 1242s # arg_an_g, 1242s # arg_an_h, 1242s # arg_an_ay, 1242s # arg_an_as, 1242s # arg_an_ao, 1242s # arg_an_aay, 1242s # arg_an_asv), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_complete_method_with_many_args: 1242s # * @object: A #OrgProjectCallableIface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_callable_iface_complete_method_with_many_args ( 1242s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("()")); 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_complete_same_method_with_many_args: 1242s # * @object: A #OrgProjectCallableIface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_callable_iface_complete_same_method_with_many_args ( 1242s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("()")); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectCallableIfaceProxy: 1242s # * 1242s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectCallableIfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectCallableIfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectCallableIfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_callable_iface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1242s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1242s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_callable_iface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectCallableIface * 1242s # org_project_callable_iface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectCallableIface * 1242s # org_project_callable_iface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_callable_iface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_callable_iface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectCallableIface * 1242s # org_project_callable_iface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectCallableIface * 1242s # org_project_callable_iface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectCallableIfaceSkeleton: 1242s # * 1242s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectCallableIfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectCallableIfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_callable_iface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_callable_iface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_callable_iface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1242s # { 1242s # _org_project_callable_iface_skeleton_handle_method_call, 1242s # _org_project_callable_iface_skeleton_handle_get_property, 1242s # _org_project_callable_iface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_callable_iface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_callable_iface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectCallableIface * 1242s # org_project_callable_iface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.OtherCallableIface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectOtherCallableIface 1242s # * @title: OrgProjectOtherCallableIface 1242s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_b", 1242s # (gchar *) "b", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_y", 1242s # (gchar *) "y", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_n", 1242s # (gchar *) "n", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_q", 1242s # (gchar *) "q", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_i", 1242s # (gchar *) "i", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_u", 1242s # (gchar *) "u", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_x", 1242s # (gchar *) "x", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_t", 1242s # (gchar *) "t", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_d", 1242s # (gchar *) "d", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_s", 1242s # (gchar *) "s", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_o", 1242s # (gchar *) "o", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_g", 1242s # (gchar *) "g", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_h", 1242s # (gchar *) "h", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_ay", 1242s # (gchar *) "ay", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_as", 1242s # (gchar *) "as", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_ao", 1242s # (gchar *) "ao", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_aay", 1242s # (gchar *) "aay", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_asv", 1242s # (gchar *) "a{sv}", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1242s # { 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_method_with_many_args = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "MethodWithManyArgs", 1242s # (GDBusArgInfo **) &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "handle-method-with-many-args", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1242s # { 1242s # &_org_project_other_callable_iface_method_info_method_with_many_args.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.OtherCallableIface", 1242s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-other-callable-iface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_other_callable_iface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_other_callable_iface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_callable_iface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_other_callable_iface_method_marshal_method_with_many_args ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _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, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectOtherCallableIface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectOtherCallableIfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_method_with_many_args: Handler for the #OrgProjectOtherCallableIface::handle-method-with-many-args signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1242s # */ 1242s # 1242s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectOtherCallableIface::handle-method-with-many-args: 1242s # * @object: A #OrgProjectOtherCallableIface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @arg_an_b: Argument passed by remote caller. 1242s # * @arg_an_y: Argument passed by remote caller. 1242s # * @arg_an_n: Argument passed by remote caller. 1242s # * @arg_an_q: Argument passed by remote caller. 1242s # * @arg_an_i: Argument passed by remote caller. 1242s # * @arg_an_u: Argument passed by remote caller. 1242s # * @arg_an_x: Argument passed by remote caller. 1242s # * @arg_an_t: Argument passed by remote caller. 1242s # * @arg_an_d: Argument passed by remote caller. 1242s # * @arg_an_s: Argument passed by remote caller. 1242s # * @arg_an_o: Argument passed by remote caller. 1242s # * @arg_an_g: Argument passed by remote caller. 1242s # * @arg_an_h: Argument passed by remote caller. 1242s # * @arg_an_ay: Argument passed by remote caller. 1242s # * @arg_an_as: Argument passed by remote caller. 1242s # * @arg_an_ao: Argument passed by remote caller. 1242s # * @arg_an_aay: Argument passed by remote caller. 1242s # * @arg_an_asv: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-method-with-many-args", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_method_with_many_args), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_other_callable_iface_method_marshal_method_with_many_args, 1242s # G_TYPE_BOOLEAN, 1242s # 19, 1242s # 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); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_callable_iface_call_method_with_many_args: 1242s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1242s # * @arg_an_b: Argument to pass with the method invocation. 1242s # * @arg_an_y: Argument to pass with the method invocation. 1242s # * @arg_an_n: Argument to pass with the method invocation. 1242s # * @arg_an_q: Argument to pass with the method invocation. 1242s # * @arg_an_i: Argument to pass with the method invocation. 1242s # * @arg_an_u: Argument to pass with the method invocation. 1242s # * @arg_an_x: Argument to pass with the method invocation. 1242s # * @arg_an_t: Argument to pass with the method invocation. 1242s # * @arg_an_d: Argument to pass with the method invocation. 1242s # * @arg_an_s: Argument to pass with the method invocation. 1242s # * @arg_an_o: Argument to pass with the method invocation. 1242s # * @arg_an_g: Argument to pass with the method invocation. 1242s # * @arg_an_h: Argument to pass with the method invocation. 1242s # * @arg_an_ay: Argument to pass with the method invocation. 1242s # * @arg_an_as: Argument to pass with the method invocation. 1242s # * @arg_an_ao: Argument to pass with the method invocation. 1242s # * @arg_an_aay: Argument to pass with the method invocation. 1242s # * @arg_an_asv: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_other_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_other_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_other_callable_iface_call_method_with_many_args ( 1242s # OrgProjectOtherCallableIface *proxy, 1242s # gboolean arg_an_b, 1242s # guchar arg_an_y, 1242s # gint16 arg_an_n, 1242s # guint16 arg_an_q, 1242s # gint arg_an_i, 1242s # guint arg_an_u, 1242s # gint64 arg_an_x, 1242s # guint64 arg_an_t, 1242s # gdouble arg_an_d, 1242s # const gchar *arg_an_s, 1242s # const gchar *arg_an_o, 1242s # const gchar *arg_an_g, 1242s # GVariant *arg_an_h, 1242s # const gchar *arg_an_ay, 1242s # const gchar *const *arg_an_as, 1242s # const gchar *const *arg_an_ao, 1242s # const gchar *const *arg_an_aay, 1242s # GVariant *arg_an_asv, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "MethodWithManyArgs", 1242s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1242s # arg_an_b, 1242s # arg_an_y, 1242s # arg_an_n, 1242s # arg_an_q, 1242s # arg_an_i, 1242s # arg_an_u, 1242s # arg_an_x, 1242s # arg_an_t, 1242s # arg_an_d, 1242s # arg_an_s, 1242s # arg_an_o, 1242s # arg_an_g, 1242s # arg_an_h, 1242s # arg_an_ay, 1242s # arg_an_as, 1242s # arg_an_ao, 1242s # arg_an_aay, 1242s # arg_an_asv), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_callable_iface_call_method_with_many_args_finish: 1242s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_method_with_many_args(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_other_callable_iface_call_method_with_many_args(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_other_callable_iface_call_method_with_many_args_finish ( 1242s # OrgProjectOtherCallableIface *proxy, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_callable_iface_call_method_with_many_args_sync: 1242s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1242s # * @arg_an_b: Argument to pass with the method invocation. 1242s # * @arg_an_y: Argument to pass with the method invocation. 1242s # * @arg_an_n: Argument to pass with the method invocation. 1242s # * @arg_an_q: Argument to pass with the method invocation. 1242s # * @arg_an_i: Argument to pass with the method invocation. 1242s # * @arg_an_u: Argument to pass with the method invocation. 1242s # * @arg_an_x: Argument to pass with the method invocation. 1242s # * @arg_an_t: Argument to pass with the method invocation. 1242s # * @arg_an_d: Argument to pass with the method invocation. 1242s # * @arg_an_s: Argument to pass with the method invocation. 1242s # * @arg_an_o: Argument to pass with the method invocation. 1242s # * @arg_an_g: Argument to pass with the method invocation. 1242s # * @arg_an_h: Argument to pass with the method invocation. 1242s # * @arg_an_ay: Argument to pass with the method invocation. 1242s # * @arg_an_as: Argument to pass with the method invocation. 1242s # * @arg_an_ao: Argument to pass with the method invocation. 1242s # * @arg_an_aay: Argument to pass with the method invocation. 1242s # * @arg_an_asv: Argument to pass with the method invocation. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_other_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_other_callable_iface_call_method_with_many_args_sync ( 1242s # OrgProjectOtherCallableIface *proxy, 1242s # gboolean arg_an_b, 1242s # guchar arg_an_y, 1242s # gint16 arg_an_n, 1242s # guint16 arg_an_q, 1242s # gint arg_an_i, 1242s # guint arg_an_u, 1242s # gint64 arg_an_x, 1242s # guint64 arg_an_t, 1242s # gdouble arg_an_d, 1242s # const gchar *arg_an_s, 1242s # const gchar *arg_an_o, 1242s # const gchar *arg_an_g, 1242s # GVariant *arg_an_h, 1242s # const gchar *arg_an_ay, 1242s # const gchar *const *arg_an_as, 1242s # const gchar *const *arg_an_ao, 1242s # const gchar *const *arg_an_aay, 1242s # GVariant *arg_an_asv, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "MethodWithManyArgs", 1242s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1242s # arg_an_b, 1242s # arg_an_y, 1242s # arg_an_n, 1242s # arg_an_q, 1242s # arg_an_i, 1242s # arg_an_u, 1242s # arg_an_x, 1242s # arg_an_t, 1242s # arg_an_d, 1242s # arg_an_s, 1242s # arg_an_o, 1242s # arg_an_g, 1242s # arg_an_h, 1242s # arg_an_ay, 1242s # arg_an_as, 1242s # arg_an_ao, 1242s # arg_an_aay, 1242s # arg_an_asv), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "()"); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_callable_iface_complete_method_with_many_args: 1242s # * @object: A #OrgProjectOtherCallableIface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_other_callable_iface_complete_method_with_many_args ( 1242s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("()")); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectOtherCallableIfaceProxy: 1242s # * 1242s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectOtherCallableIfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1242s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1242s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_callable_iface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_other_callable_iface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_callable_iface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectOtherCallableIface * 1242s # org_project_other_callable_iface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_callable_iface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectOtherCallableIface * 1242s # org_project_other_callable_iface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_other_callable_iface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_other_callable_iface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectOtherCallableIface * 1242s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectOtherCallableIface * 1242s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectOtherCallableIfaceSkeleton: 1242s # * 1242s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectOtherCallableIfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1242s # { 1242s # _org_project_other_callable_iface_skeleton_handle_method_call, 1242s # _org_project_other_callable_iface_skeleton_handle_get_property, 1242s # _org_project_other_callable_iface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_other_callable_iface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_callable_iface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectOtherCallableIface * 1242s # org_project_other_callable_iface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s ok 13 __main__.TestCodegen.test_generate_methods_marshallers_multiple_out_args 1242s # gdbus-codegen: /usr/bin/gdbus-codegen 1242s # tmpdir: /tmp/tmpt1o4dxrk 1242s # /tmp/tmpt1o4dxrk/tmpg_51gz2w.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpt1o4dxrk/tmpg_51gz2w.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.CallableIface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectCallableIface 1242s # * @title: OrgProjectCallableIface 1242s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for org.project.CallableIface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_b", 1242s # (gchar *) "b", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_y", 1242s # (gchar *) "y", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_n", 1242s # (gchar *) "n", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_q", 1242s # (gchar *) "q", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_i", 1242s # (gchar *) "i", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_u", 1242s # (gchar *) "u", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_x", 1242s # (gchar *) "x", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_t", 1242s # (gchar *) "t", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_d", 1242s # (gchar *) "d", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_s", 1242s # (gchar *) "s", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_o", 1242s # (gchar *) "o", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_g", 1242s # (gchar *) "g", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_h", 1242s # (gchar *) "h", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_ay", 1242s # (gchar *) "ay", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_as", 1242s # (gchar *) "as", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_ao", 1242s # (gchar *) "ao", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_aay", 1242s # (gchar *) "aay", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_asv", 1242s # (gchar *) "a{sv}", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers[] = 1242s # { 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay.parent_struct, 1242s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "MethodWithManyArgs", 1242s # NULL, 1242s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-method-with-many-args", 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1242s # { 1242s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.CallableIface", 1242s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-callable-iface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_callable_iface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_callable_iface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_callable_iface_method_marshal_method_with_many_args ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectCallableIface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectCallableIfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.CallableIface. 1242s # */ 1242s # 1242s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * OrgProjectCallableIface::handle-method-with-many-args: 1242s # * @object: A #OrgProjectCallableIface. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-method-with-many-args", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # org_project_callable_iface_method_marshal_method_with_many_args, 1242s # G_TYPE_BOOLEAN, 1242s # 1, 1242s # G_TYPE_DBUS_METHOD_INVOCATION); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_call_method_with_many_args: 1242s # * @proxy: A #OrgProjectCallableIfaceProxy. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # org_project_callable_iface_call_method_with_many_args ( 1242s # OrgProjectCallableIface *proxy, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1242s # "MethodWithManyArgs", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_call_method_with_many_args_finish: 1242s # * @proxy: A #OrgProjectCallableIfaceProxy. 1242s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_callable_iface_call_method_with_many_args_finish ( 1242s # OrgProjectCallableIface *proxy, 1242s # gboolean *out_an_b, 1242s # guchar *out_an_y, 1242s # gint16 *out_an_n, 1242s # guint16 *out_an_q, 1242s # gint *out_an_i, 1242s # guint *out_an_u, 1242s # gint64 *out_an_x, 1242s # guint64 *out_an_t, 1242s # gdouble *out_an_d, 1242s # gchar **out_an_s, 1242s # gchar **out_an_o, 1242s # gchar **out_an_g, 1242s # GVariant **out_an_h, 1242s # gchar **out_an_ay, 1242s # gchar ***out_an_as, 1242s # gchar ***out_an_ao, 1242s # gchar ***out_an_aay, 1242s # GVariant **out_an_asv, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1242s # out_an_b, 1242s # out_an_y, 1242s # out_an_n, 1242s # out_an_q, 1242s # out_an_i, 1242s # out_an_u, 1242s # out_an_x, 1242s # out_an_t, 1242s # out_an_d, 1242s # out_an_s, 1242s # out_an_o, 1242s # out_an_g, 1242s # out_an_h, 1242s # out_an_ay, 1242s # out_an_as, 1242s # out_an_ao, 1242s # out_an_aay, 1242s # out_an_asv); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_call_method_with_many_args_sync: 1242s # * @proxy: A #OrgProjectCallableIfaceProxy. 1242s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1242s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # org_project_callable_iface_call_method_with_many_args_sync ( 1242s # OrgProjectCallableIface *proxy, 1242s # gboolean *out_an_b, 1242s # guchar *out_an_y, 1242s # gint16 *out_an_n, 1242s # guint16 *out_an_q, 1242s # gint *out_an_i, 1242s # guint *out_an_u, 1242s # gint64 *out_an_x, 1242s # guint64 *out_an_t, 1242s # gdouble *out_an_d, 1242s # gchar **out_an_s, 1242s # gchar **out_an_o, 1242s # gchar **out_an_g, 1242s # GVariant **out_an_h, 1242s # gchar **out_an_ay, 1242s # gchar ***out_an_as, 1242s # gchar ***out_an_ao, 1242s # gchar ***out_an_aay, 1242s # GVariant **out_an_asv, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1242s # "MethodWithManyArgs", 1242s # g_variant_new ("()"), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1242s # out_an_b, 1242s # out_an_y, 1242s # out_an_n, 1242s # out_an_q, 1242s # out_an_i, 1242s # out_an_u, 1242s # out_an_x, 1242s # out_an_t, 1242s # out_an_d, 1242s # out_an_s, 1242s # out_an_o, 1242s # out_an_g, 1242s # out_an_h, 1242s # out_an_ay, 1242s # out_an_as, 1242s # out_an_ao, 1242s # out_an_aay, 1242s # out_an_asv); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_complete_method_with_many_args: 1242s # * @object: A #OrgProjectCallableIface. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @an_b: Parameter to return. 1242s # * @an_y: Parameter to return. 1242s # * @an_n: Parameter to return. 1242s # * @an_q: Parameter to return. 1242s # * @an_i: Parameter to return. 1242s # * @an_u: Parameter to return. 1242s # * @an_x: Parameter to return. 1242s # * @an_t: Parameter to return. 1242s # * @an_d: Parameter to return. 1242s # * @an_s: Parameter to return. 1242s # * @an_o: Parameter to return. 1242s # * @an_g: Parameter to return. 1242s # * @an_h: Parameter to return. 1242s # * @an_ay: Parameter to return. 1242s # * @an_as: Parameter to return. 1242s # * @an_ao: Parameter to return. 1242s # * @an_aay: Parameter to return. 1242s # * @an_asv: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # org_project_callable_iface_complete_method_with_many_args ( 1242s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # gboolean an_b, 1242s # guchar an_y, 1242s # gint16 an_n, 1242s # guint16 an_q, 1242s # gint an_i, 1242s # guint an_u, 1242s # gint64 an_x, 1242s # guint64 an_t, 1242s # gdouble an_d, 1242s # const gchar *an_s, 1242s # const gchar *an_o, 1242s # const gchar *an_g, 1242s # GVariant *an_h, 1242s # const gchar *an_ay, 1242s # const gchar *const *an_as, 1242s # const gchar *const *an_ao, 1242s # const gchar *const *an_aay, 1242s # GVariant *an_asv) 1242s # { 1242s # g_dbus_method_invocation_return_value (invocation, 1242s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1242s # an_b, 1242s # an_y, 1242s # an_n, 1242s # an_q, 1242s # an_i, 1242s # an_u, 1242s # an_x, 1242s # an_t, 1242s # an_d, 1242s # an_s, 1242s # an_o, 1242s # an_g, 1242s # an_h, 1242s # an_ay, 1242s # an_as, 1242s # an_ao, 1242s # an_aay, 1242s # an_asv)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectCallableIfaceProxy: 1242s # * 1242s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectCallableIfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectCallableIfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectCallableIfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_callable_iface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1242s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1242s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_callable_iface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectCallableIface * 1242s # org_project_callable_iface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectCallableIface * 1242s # org_project_callable_iface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_callable_iface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_callable_iface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectCallableIface * 1242s # org_project_callable_iface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectCallableIface * 1242s # org_project_callable_iface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectCallableIfaceSkeleton: 1242s # * 1242s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectCallableIfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectCallableIfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_callable_iface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_callable_iface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_callable_iface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1242s # { 1242s # _org_project_callable_iface_skeleton_handle_method_call, 1242s # _org_project_callable_iface_skeleton_handle_get_property, 1242s # _org_project_callable_iface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_callable_iface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_callable_iface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_callable_iface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectCallableIface * 1242s # org_project_callable_iface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s ok 14 __main__.TestCodegen.test_generate_methods_marshallers_with_unix_fds 1242s # gdbus-codegen: /usr/bin/gdbus-codegen 1242s # tmpdir: /tmp/tmp1g5ox441 1242s # /tmp/tmp1g5ox441/tmpkg18skri.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp1g5ox441/tmpkg18skri.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1242s # (void *data1, 1242s # GDBusMethodInvocation *arg_method_invocation, 1242s # GUnixFDList *arg_fd_list, 1242s # const gchar *arg_greeting, 1242s # void *data2); 1242s # _GDbusCodegenMarshalBoolean_ObjectObjectStringFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # gboolean v_return; 1242s # 1242s # g_return_if_fail (return_value != NULL); 1242s # g_return_if_fail (n_param_values == 4); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # v_return = 1242s # callback (data1, 1242s # g_marshal_value_peek_object (param_values + 1), 1242s # g_marshal_value_peek_object (param_values + 2), 1242s # g_marshal_value_peek_string (param_values + 3), 1242s # data2); 1242s # 1242s # g_value_set_boolean (return_value, v_return); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface test.FDPassing 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:TestFDPassing 1242s # * @title: TestFDPassing 1242s # * @short_description: Generated C code for the test.FDPassing D-Bus interface 1242s # * 1242s # * This section contains code for working with the test.FDPassing D-Bus interface in C. 1242s # */ 1242s # 1242s # /* ---- Introspection data for test.FDPassing ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_IN_ARG_greeting = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "greeting", 1242s # (gchar *) "s", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_IN_ARG_pointers[] = 1242s # { 1242s # &_test_fdpassing_method_info_hello_fd_IN_ARG_greeting.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_OUT_ARG_response = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "response", 1242s # (gchar *) "s", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_OUT_ARG_pointers[] = 1242s # { 1242s # &_test_fdpassing_method_info_hello_fd_OUT_ARG_response.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusMethodInfo _test_fdpassing_method_info_hello_fd = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "HelloFD", 1242s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_IN_ARG_pointers, 1242s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_OUT_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "handle-hello-fd", 1242s # TRUE 1242s # }; 1242s # 1242s # static const GDBusMethodInfo * const _test_fdpassing_method_info_pointers[] = 1242s # { 1242s # &_test_fdpassing_method_info_hello_fd.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _test_fdpassing_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "test.FDPassing", 1242s # (GDBusMethodInfo **) &_test_fdpassing_method_info_pointers, 1242s # NULL, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "test-fdpassing", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * test_fdpassing_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the test.FDPassing D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # test_fdpassing_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * test_fdpassing_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #TestFDPassing interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # test_fdpassing_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # test_fdpassing_method_marshal_hello_fd ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * TestFDPassing: 1242s # * 1242s # * Abstract interface type for the D-Bus interface test.FDPassing. 1242s # */ 1242s # 1242s # /** 1242s # * TestFDPassingIface: 1242s # * @parent_iface: The parent interface. 1242s # * @handle_hello_fd: Handler for the #TestFDPassing::handle-hello-fd signal. 1242s # * 1242s # * Virtual table for the D-Bus interface test.FDPassing. 1242s # */ 1242s # 1242s # typedef TestFDPassingIface TestFDPassingInterface; 1242s # G_DEFINE_INTERFACE (TestFDPassing, test_fdpassing, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # test_fdpassing_default_init (TestFDPassingIface *iface) 1242s # { 1242s # /* GObject signals for incoming D-Bus method calls: */ 1242s # /** 1242s # * TestFDPassing::handle-hello-fd: 1242s # * @object: A #TestFDPassing. 1242s # * @invocation: A #GDBusMethodInvocation. 1242s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1242s # * @arg_greeting: Argument passed by remote caller. 1242s # * 1242s # * Signal emitted when a remote caller is invoking the HelloFD() D-Bus method. 1242s # * 1242s # * 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. 1242s # * 1242s # * 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. 1242s # */ 1242s # g_signal_new ("handle-hello-fd", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (TestFDPassingIface, handle_hello_fd), 1242s # g_signal_accumulator_true_handled, 1242s # NULL, 1242s # test_fdpassing_method_marshal_hello_fd, 1242s # G_TYPE_BOOLEAN, 1242s # 3, 1242s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * test_fdpassing_call_hello_fd: 1242s # * @proxy: A #TestFDPassingProxy. 1242s # * @arg_greeting: Argument to pass with the method invocation. 1242s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously invokes the HelloFD() D-Bus method on @proxy. 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call test_fdpassing_call_hello_fd_finish() to get the result of the operation. 1242s # * 1242s # * See test_fdpassing_call_hello_fd_sync() for the synchronous, blocking version of this method. 1242s # */ 1242s # void 1242s # test_fdpassing_call_hello_fd ( 1242s # TestFDPassing *proxy, 1242s # const gchar *arg_greeting, 1242s # GUnixFDList *fd_list, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy), 1242s # "HelloFD", 1242s # g_variant_new ("(s)", 1242s # arg_greeting), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # fd_list, 1242s # cancellable, 1242s # callback, 1242s # user_data); 1242s # } 1242s # 1242s # /** 1242s # * test_fdpassing_call_hello_fd_finish: 1242s # * @proxy: A #TestFDPassingProxy. 1242s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL to ignore. 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_call_hello_fd(). 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Finishes an operation started with test_fdpassing_call_hello_fd(). 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # test_fdpassing_call_hello_fd_finish ( 1242s # TestFDPassing *proxy, 1242s # gchar **out_response, 1242s # GUnixFDList **out_fd_list, 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(s)", 1242s # out_response); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * test_fdpassing_call_hello_fd_sync: 1242s # * @proxy: A #TestFDPassingProxy. 1242s # * @arg_greeting: Argument to pass with the method invocation. 1242s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1242s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1242s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL. 1242s # * 1242s # * Synchronously invokes the HelloFD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1242s # * 1242s # * See test_fdpassing_call_hello_fd() for the asynchronous version of this method. 1242s # * 1242s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1242s # */ 1242s # gboolean 1242s # test_fdpassing_call_hello_fd_sync ( 1242s # TestFDPassing *proxy, 1242s # const gchar *arg_greeting, 1242s # GUnixFDList *fd_list, 1242s # gchar **out_response, 1242s # GUnixFDList **out_fd_list, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GVariant *_ret; 1242s # _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy), 1242s # "HelloFD", 1242s # g_variant_new ("(s)", 1242s # arg_greeting), 1242s # G_DBUS_CALL_FLAGS_NONE, 1242s # -1, 1242s # fd_list, 1242s # out_fd_list, 1242s # cancellable, 1242s # error); 1242s # if (_ret == NULL) 1242s # goto _out; 1242s # g_variant_get (_ret, 1242s # "(s)", 1242s # out_response); 1242s # g_variant_unref (_ret); 1242s # _out: 1242s # return _ret != NULL; 1242s # } 1242s # 1242s # /** 1242s # * test_fdpassing_complete_hello_fd: 1242s # * @object: A #TestFDPassing. 1242s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1242s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1242s # * @response: Parameter to return. 1242s # * 1242s # * 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. 1242s # * 1242s # * This method will free @invocation, you cannot use it afterwards. 1242s # */ 1242s # void 1242s # test_fdpassing_complete_hello_fd ( 1242s # TestFDPassing *object G_GNUC_UNUSED, 1242s # GDBusMethodInvocation *invocation, 1242s # GUnixFDList *fd_list, 1242s # const gchar *response) 1242s # { 1242s # g_dbus_method_invocation_return_value_with_unix_fd_list (invocation, 1242s # g_variant_new ("(s)", 1242s # response), 1242s # fd_list); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * TestFDPassingProxy: 1242s # * 1242s # * The #TestFDPassingProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * TestFDPassingProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #TestFDPassingProxy. 1242s # */ 1242s # 1242s # struct _TestFDPassingProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void test_fdpassing_proxy_iface_init (TestFDPassingIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (TestFDPassingProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # test_fdpassing_proxy_finalize (GObject *object) 1242s # { 1242s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (test_fdpassing_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # test_fdpassing_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # test_fdpassing_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # test_fdpassing_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_TEST_FDPASSING); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # test_fdpassing_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # test_fdpassing_proxy_init (TestFDPassingProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = test_fdpassing_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_TEST_FDPASSING_PROXY, TestFDPassingProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), test_fdpassing_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # test_fdpassing_proxy_class_init (TestFDPassingProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = test_fdpassing_proxy_finalize; 1242s # gobject_class->get_property = test_fdpassing_proxy_get_property; 1242s # gobject_class->set_property = test_fdpassing_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = test_fdpassing_proxy_g_signal; 1242s # proxy_class->g_properties_changed = test_fdpassing_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (TestFDPassingProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # test_fdpassing_proxy_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * test_fdpassing_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call test_fdpassing_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See test_fdpassing_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # test_fdpassing_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * test_fdpassing_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with test_fdpassing_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # TestFDPassing * 1242s # test_fdpassing_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return TEST_FDPASSING (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * test_fdpassing_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See test_fdpassing_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # TestFDPassing * 1242s # test_fdpassing_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return TEST_FDPASSING (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * test_fdpassing_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like test_fdpassing_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call test_fdpassing_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See test_fdpassing_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # test_fdpassing_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * test_fdpassing_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with test_fdpassing_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # TestFDPassing * 1242s # test_fdpassing_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return TEST_FDPASSING (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * test_fdpassing_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like test_fdpassing_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See test_fdpassing_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # TestFDPassing * 1242s # test_fdpassing_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return TEST_FDPASSING (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * TestFDPassingSkeleton: 1242s # * 1242s # * The #TestFDPassingSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * TestFDPassingSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #TestFDPassingSkeleton. 1242s # */ 1242s # 1242s # struct _TestFDPassingSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _test_fdpassing_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_TEST_FDPASSING); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _test_fdpassing_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _test_fdpassing_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _test_fdpassing_skeleton_vtable = 1242s # { 1242s # _test_fdpassing_skeleton_handle_method_call, 1242s # _test_fdpassing_skeleton_handle_get_property, 1242s # _test_fdpassing_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # test_fdpassing_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return test_fdpassing_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # test_fdpassing_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_test_fdpassing_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # test_fdpassing_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_test_fdpassing_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _test_fdpassing_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _test_fdpassing_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # test_fdpassing_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (TestFDPassingSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # test_fdpassing_skeleton_finalize (GObject *object) 1242s # { 1242s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (test_fdpassing_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # test_fdpassing_skeleton_init (TestFDPassingSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = test_fdpassing_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_TEST_FDPASSING_SKELETON, TestFDPassingSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # test_fdpassing_skeleton_class_init (TestFDPassingSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = test_fdpassing_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = test_fdpassing_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = test_fdpassing_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = test_fdpassing_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = test_fdpassing_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (TestFDPassingSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * test_fdpassing_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface test.FDPassing. 1242s # * 1242s # * Returns: (transfer full) (type TestFDPassingSkeleton): The skeleton object. 1242s # */ 1242s # TestFDPassing * 1242s # test_fdpassing_skeleton_new (void) 1242s # { 1242s # return TEST_FDPASSING (g_object_new (TYPE_TEST_FDPASSING_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s ok 15 __main__.TestCodegen.test_generate_rst 1242s # gdbus-codegen: /usr/bin/gdbus-codegen 1242s # tmpdir: /tmp/tmp6e2edb6_ 1242s # /tmp/tmp6e2edb6_/tmp7z_c1pl3.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6e2edb6_/tmp7z_c1pl3.xml', '--generate-rst', 'test'] 1242s # Return code: 0 1242s # Output: 1242s # 1242s # Error: 1242s ok 16 __main__.TestCodegen.test_generate_rst_method 1242s # gdbus-codegen: /usr/bin/gdbus-codegen 1242s # tmpdir: /tmp/tmp54x2xjpt 1242s # /tmp/tmp54x2xjpt/tmph0b85gz8.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp54x2xjpt/tmph0b85gz8.xml', '--generate-rst', 'test'] 1242s # Return code: 0 1242s # Output: 1242s # 1242s # Error: 1242s ok 17 __main__.TestCodegen.test_generate_rst_property 1242s # gdbus-codegen: /usr/bin/gdbus-codegen 1242s # tmpdir: /tmp/tmppjls63o9 1242s # /tmp/tmppjls63o9/tmp8wjfe5hz.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppjls63o9/tmp8wjfe5hz.xml', '--generate-rst', 'test'] 1242s # Return code: 0 1242s # Output: 1242s # 1242s # Error: 1242s ok 18 __main__.TestCodegen.test_generate_rst_signal 1242s # gdbus-codegen: /usr/bin/gdbus-codegen 1242s # tmpdir: /tmp/tmptj49di0o 1242s # /tmp/tmptj49di0o/tmpl9834t4b.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmptj49di0o/tmpl9834t4b.xml', '--generate-rst', 'test'] 1242s # Return code: 0 1242s # Output: 1242s # 1242s # Error: 1242s ok 19 __main__.TestCodegen.test_generate_signal_id_multiple_signal_args_types 1242s # gdbus-codegen: /usr/bin/gdbus-codegen 1242s # tmpdir: /tmp/tmp_oi1wg9n 1242s # /tmp/tmp_oi1wg9n/tmpebm84_x4.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp_oi1wg9n/tmpebm84_x4.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1242s # GClosure *closure, 1242s # GValue *return_value G_GNUC_UNUSED, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1242s # (void *data1, 1242s # gboolean arg_an_b, 1242s # guchar arg_an_y, 1242s # gint16 arg_an_n, 1242s # guint16 arg_an_q, 1242s # gint arg_an_i, 1242s # guint arg_an_u, 1242s # gint64 arg_an_x, 1242s # guint64 arg_an_t, 1242s # gdouble arg_an_d, 1242s # const gchar *arg_an_s, 1242s # const gchar *arg_an_o, 1242s # const gchar *arg_an_g, 1242s # GVariant *arg_an_h, 1242s # const gchar *arg_an_ay, 1242s # const gchar *const *arg_an_as, 1242s # const gchar *const *arg_an_ao, 1242s # const gchar *const *arg_an_aay, 1242s # GVariant *arg_an_asv, 1242s # void *data2); 1242s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # 1242s # g_return_if_fail (n_param_values == 19); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # callback (data1, 1242s # g_marshal_value_peek_boolean (param_values + 1), 1242s # g_marshal_value_peek_uchar (param_values + 2), 1242s # g_marshal_value_peek_int (param_values + 3), 1242s # g_marshal_value_peek_uint (param_values + 4), 1242s # g_marshal_value_peek_int (param_values + 5), 1242s # g_marshal_value_peek_uint (param_values + 6), 1242s # g_marshal_value_peek_int64 (param_values + 7), 1242s # g_marshal_value_peek_uint64 (param_values + 8), 1242s # g_marshal_value_peek_double (param_values + 9), 1242s # g_marshal_value_peek_string (param_values + 10), 1242s # g_marshal_value_peek_string (param_values + 11), 1242s # g_marshal_value_peek_string (param_values + 12), 1242s # g_marshal_value_peek_variant (param_values + 13), 1242s # g_marshal_value_peek_string (param_values + 14), 1242s # g_marshal_value_peek_boxed (param_values + 15), 1242s # g_marshal_value_peek_boxed (param_values + 16), 1242s # g_marshal_value_peek_boxed (param_values + 17), 1242s # g_marshal_value_peek_variant (param_values + 18), 1242s # data2); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.SignalingIface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectSignalingIface 1242s # * @title: OrgProjectSignalingIface 1242s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1242s # */ 1242s # 1242s # enum 1242s # { 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1242s # }; 1242s # 1242s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1242s # 1242s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_b", 1242s # (gchar *) "b", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_y", 1242s # (gchar *) "y", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_n", 1242s # (gchar *) "n", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_q", 1242s # (gchar *) "q", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_i", 1242s # (gchar *) "i", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_u", 1242s # (gchar *) "u", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_x", 1242s # (gchar *) "x", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_t", 1242s # (gchar *) "t", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_d", 1242s # (gchar *) "d", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_s", 1242s # (gchar *) "s", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_o", 1242s # (gchar *) "o", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_g", 1242s # (gchar *) "g", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_h", 1242s # (gchar *) "h", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_ay", 1242s # (gchar *) "ay", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_as", 1242s # (gchar *) "as", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_ao", 1242s # (gchar *) "ao", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_aay", 1242s # (gchar *) "aay", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_asv", 1242s # (gchar *) "a{sv}", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SignalWithManyArgs", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "signal-with-many-args" 1242s # }; 1242s # 1242s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.SignalingIface", 1242s # NULL, 1242s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-signaling-iface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_signaling_iface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_signaling_iface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectSignalingIfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1242s # */ 1242s # 1242s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1242s # { 1242s # /* GObject signals for received D-Bus signals: */ 1242s # /** 1242s # * OrgProjectSignalingIface::signal-with-many-args: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_b: Argument. 1242s # * @arg_an_y: Argument. 1242s # * @arg_an_n: Argument. 1242s # * @arg_an_q: Argument. 1242s # * @arg_an_i: Argument. 1242s # * @arg_an_u: Argument. 1242s # * @arg_an_x: Argument. 1242s # * @arg_an_t: Argument. 1242s # * @arg_an_d: Argument. 1242s # * @arg_an_s: Argument. 1242s # * @arg_an_o: Argument. 1242s # * @arg_an_g: Argument. 1242s # * @arg_an_h: Argument. 1242s # * @arg_an_ay: Argument. 1242s # * @arg_an_as: Argument. 1242s # * @arg_an_ao: Argument. 1242s # * @arg_an_aay: Argument. 1242s # * @arg_an_asv: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1242s # g_signal_new ("signal-with-many-args", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1242s # G_TYPE_NONE, 1242s # 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); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_signal_with_many_args: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_b: Argument to pass with the signal. 1242s # * @arg_an_y: Argument to pass with the signal. 1242s # * @arg_an_n: Argument to pass with the signal. 1242s # * @arg_an_q: Argument to pass with the signal. 1242s # * @arg_an_i: Argument to pass with the signal. 1242s # * @arg_an_u: Argument to pass with the signal. 1242s # * @arg_an_x: Argument to pass with the signal. 1242s # * @arg_an_t: Argument to pass with the signal. 1242s # * @arg_an_d: Argument to pass with the signal. 1242s # * @arg_an_s: Argument to pass with the signal. 1242s # * @arg_an_o: Argument to pass with the signal. 1242s # * @arg_an_g: Argument to pass with the signal. 1242s # * @arg_an_h: Argument to pass with the signal. 1242s # * @arg_an_ay: Argument to pass with the signal. 1242s # * @arg_an_as: Argument to pass with the signal. 1242s # * @arg_an_ao: Argument to pass with the signal. 1242s # * @arg_an_aay: Argument to pass with the signal. 1242s # * @arg_an_asv: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SignalWithManyArgs" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_signal_with_many_args ( 1242s # OrgProjectSignalingIface *object, 1242s # gboolean arg_an_b, 1242s # guchar arg_an_y, 1242s # gint16 arg_an_n, 1242s # guint16 arg_an_q, 1242s # gint arg_an_i, 1242s # guint arg_an_u, 1242s # gint64 arg_an_x, 1242s # guint64 arg_an_t, 1242s # gdouble arg_an_d, 1242s # const gchar *arg_an_s, 1242s # const gchar *arg_an_o, 1242s # const gchar *arg_an_g, 1242s # GVariant *arg_an_h, 1242s # const gchar *arg_an_ay, 1242s # const gchar *const *arg_an_as, 1242s # const gchar *const *arg_an_ao, 1242s # const gchar *const *arg_an_aay, 1242s # GVariant *arg_an_asv) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectSignalingIfaceProxy: 1242s # * 1242s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectSignalingIfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectSignalingIfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectSignalingIfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_signaling_iface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1242s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1242s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectSignalingIface * 1242s # org_project_signaling_iface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectSignalingIface * 1242s # org_project_signaling_iface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectSignalingIface * 1242s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectSignalingIface * 1242s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectSignalingIfaceSkeleton: 1242s # * 1242s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectSignalingIfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_signaling_iface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_signaling_iface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_signaling_iface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1242s # { 1242s # _org_project_signaling_iface_skeleton_handle_method_call, 1242s # _org_project_signaling_iface_skeleton_handle_get_property, 1242s # _org_project_signaling_iface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_signaling_iface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1242s # OrgProjectSignalingIface *object, 1242s # gboolean arg_an_b, 1242s # guchar arg_an_y, 1242s # gint16 arg_an_n, 1242s # guint16 arg_an_q, 1242s # gint arg_an_i, 1242s # guint arg_an_u, 1242s # gint64 arg_an_x, 1242s # guint64 arg_an_t, 1242s # gdouble arg_an_d, 1242s # const gchar *arg_an_s, 1242s # const gchar *arg_an_o, 1242s # const gchar *arg_an_g, 1242s # GVariant *arg_an_h, 1242s # const gchar *arg_an_ay, 1242s # const gchar *const *arg_an_as, 1242s # const gchar *const *arg_an_ao, 1242s # const gchar *const *arg_an_aay, 1242s # GVariant *arg_an_asv) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1242s # arg_an_b, 1242s # arg_an_y, 1242s # arg_an_n, 1242s # arg_an_q, 1242s # arg_an_i, 1242s # arg_an_u, 1242s # arg_an_x, 1242s # arg_an_t, 1242s # arg_an_d, 1242s # arg_an_s, 1242s # arg_an_o, 1242s # arg_an_g, 1242s # arg_an_h, 1242s # arg_an_ay, 1242s # arg_an_as, 1242s # arg_an_ao, 1242s # arg_an_aay, 1242s # arg_an_asv)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1242s # { 1242s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectSignalingIface * 1242s # org_project_signaling_iface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s ok 20 __main__.TestCodegen.test_generate_signal_id_multiple_signals_types 1242s # gdbus-codegen: /usr/bin/gdbus-codegen 1242s # tmpdir: /tmp/tmpjd6_lp_j 1242s # /tmp/tmpjd6_lp_j/tmphi514t4c.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjd6_lp_j/tmphi514t4c.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_VOID__INT64 ( 1242s # GClosure *closure, 1242s # GValue *return_value G_GNUC_UNUSED, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1242s # (void *data1, 1242s # gint64 arg_an_x, 1242s # void *data2); 1242s # _GDbusCodegenMarshalVoid_Int64Func callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # callback (data1, 1242s # g_marshal_value_peek_int64 (param_values + 1), 1242s # data2); 1242s # } 1242s # 1242s # static void 1242s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1242s # GClosure *closure, 1242s # GValue *return_value G_GNUC_UNUSED, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint G_GNUC_UNUSED, 1242s # void *marshal_data) 1242s # { 1242s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1242s # (void *data1, 1242s # guint64 arg_an_t, 1242s # void *data2); 1242s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1242s # GCClosure *cc = (GCClosure*) closure; 1242s # void *data1, *data2; 1242s # 1242s # g_return_if_fail (n_param_values == 2); 1242s # 1242s # if (G_CCLOSURE_SWAP_DATA (closure)) 1242s # { 1242s # data1 = closure->data; 1242s # data2 = g_value_peek_pointer (param_values + 0); 1242s # } 1242s # else 1242s # { 1242s # data1 = g_value_peek_pointer (param_values + 0); 1242s # data2 = closure->data; 1242s # } 1242s # 1242s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1242s # (marshal_data ? marshal_data : cc->callback); 1242s # 1242s # callback (data1, 1242s # g_marshal_value_peek_uint64 (param_values + 1), 1242s # data2); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.SignalingIface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectSignalingIface 1242s # * @title: OrgProjectSignalingIface 1242s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1242s # */ 1242s # 1242s # enum 1242s # { 1242s # _ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1242s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1242s # }; 1242s # 1242s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[19] = { 0 }; 1242s # 1242s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_no_arg_signal = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "NoArgSignal", 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "no-arg-signal" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_b", 1242s # (gchar *) "b", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalB", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-b" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_y", 1242s # (gchar *) "y", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalY", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-y" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_n", 1242s # (gchar *) "n", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalN", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-n" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_q", 1242s # (gchar *) "q", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalQ", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-q" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_i", 1242s # (gchar *) "i", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalI", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-i" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_u", 1242s # (gchar *) "u", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalU", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-u" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_x", 1242s # (gchar *) "x", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalX", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-x" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_t", 1242s # (gchar *) "t", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalT", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-t" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_d", 1242s # (gchar *) "d", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalD", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-d" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_s", 1242s # (gchar *) "s", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalS", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-s" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_o", 1242s # (gchar *) "o", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalO", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-o" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_g", 1242s # (gchar *) "g", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalG", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-g" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_h", 1242s # (gchar *) "h", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalH", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-h" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_ay", 1242s # (gchar *) "ay", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalAY", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-ay" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_as", 1242s # (gchar *) "as", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalAS", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-as" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_ao", 1242s # (gchar *) "ao", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalAO", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-ao" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_aay", 1242s # (gchar *) "aay", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalAAY", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-aay" 1242s # }; 1242s # 1242s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "an_asv", 1242s # (gchar *) "a{sv}", 1242s # NULL 1242s # }, 1242s # FALSE 1242s # }; 1242s # 1242s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SingleArgSignalASV", 1242s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1242s # NULL 1242s # }, 1242s # "single-arg-signal-asv" 1242s # }; 1242s # 1242s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_no_arg_signal.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1242s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.SignalingIface", 1242s # NULL, 1242s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-signaling-iface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_signaling_iface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_signaling_iface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_no_arg_signal ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__VOID (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__UCHAR (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__INT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__UINT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__INT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__UINT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__DOUBLE (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__STRING (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__STRING (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__STRING (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__VARIANT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__STRING (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__BOXED (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__BOXED (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__BOXED (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__VARIANT (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectSignalingIfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @no_arg_signal: Handler for the #OrgProjectSignalingIface::no-arg-signal signal. 1242s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1242s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1242s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1242s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1242s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1242s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1242s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1242s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1242s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1242s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1242s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1242s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1242s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1242s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1242s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1242s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1242s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1242s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1242s # */ 1242s # 1242s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1242s # { 1242s # /* GObject signals for received D-Bus signals: */ 1242s # /** 1242s # * OrgProjectSignalingIface::no-arg-signal: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "NoArgSignal" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL] = 1242s # g_signal_new ("no-arg-signal", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, no_arg_signal), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_no_arg_signal, 1242s # G_TYPE_NONE, 1242s # 0); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-b: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_b: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1242s # g_signal_new ("single-arg-signal-b", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_BOOLEAN); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-y: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_y: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1242s # g_signal_new ("single-arg-signal-y", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_UCHAR); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-n: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_n: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1242s # g_signal_new ("single-arg-signal-n", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_INT); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-q: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_q: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1242s # g_signal_new ("single-arg-signal-q", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_UINT); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-i: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_i: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1242s # g_signal_new ("single-arg-signal-i", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_INT); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-u: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_u: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1242s # g_signal_new ("single-arg-signal-u", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_UINT); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-x: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_x: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1242s # g_signal_new ("single-arg-signal-x", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_INT64); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-t: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_t: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1242s # g_signal_new ("single-arg-signal-t", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_UINT64); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-d: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_d: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1242s # g_signal_new ("single-arg-signal-d", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_DOUBLE); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-s: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_s: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1242s # g_signal_new ("single-arg-signal-s", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_STRING); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-o: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_o: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1242s # g_signal_new ("single-arg-signal-o", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_STRING); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-g: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_g: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1242s # g_signal_new ("single-arg-signal-g", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_STRING); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-h: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_h: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1242s # g_signal_new ("single-arg-signal-h", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_VARIANT); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-ay: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_ay: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAY" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1242s # g_signal_new ("single-arg-signal-ay", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_STRING); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-as: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_as: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAS" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1242s # g_signal_new ("single-arg-signal-as", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_STRV); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-ao: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_ao: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAO" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1242s # g_signal_new ("single-arg-signal-ao", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_STRV); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-aay: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_aay: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAAY" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1242s # g_signal_new ("single-arg-signal-aay", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_STRV); 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface::single-arg-signal-asv: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_asv: Argument. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalASV" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1242s # g_signal_new ("single-arg-signal-asv", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1242s # G_TYPE_NONE, 1242s # 1, G_TYPE_VARIANT); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_no_arg_signal: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * 1242s # * Emits the "NoArgSignal" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_no_arg_signal ( 1242s # OrgProjectSignalingIface *object) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL], 0); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_b: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_b: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalB" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_b ( 1242s # OrgProjectSignalingIface *object, 1242s # gboolean arg_an_b) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_an_b); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_y: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_y: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalY" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_y ( 1242s # OrgProjectSignalingIface *object, 1242s # guchar arg_an_y) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_an_y); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_n: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_n: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalN" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_n ( 1242s # OrgProjectSignalingIface *object, 1242s # gint16 arg_an_n) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_an_n); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_q: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_q: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalQ" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_q ( 1242s # OrgProjectSignalingIface *object, 1242s # guint16 arg_an_q) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_an_q); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_i: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_i: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalI" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_i ( 1242s # OrgProjectSignalingIface *object, 1242s # gint arg_an_i) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_an_i); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_u: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_u: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalU" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_u ( 1242s # OrgProjectSignalingIface *object, 1242s # guint arg_an_u) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_an_u); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_x: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_x: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalX" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_x ( 1242s # OrgProjectSignalingIface *object, 1242s # gint64 arg_an_x) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_an_x); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_t: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_t: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalT" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_t ( 1242s # OrgProjectSignalingIface *object, 1242s # guint64 arg_an_t) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_an_t); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_d: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_d: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalD" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_d ( 1242s # OrgProjectSignalingIface *object, 1242s # gdouble arg_an_d) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_an_d); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_s: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_s: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalS" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_s ( 1242s # OrgProjectSignalingIface *object, 1242s # const gchar *arg_an_s) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_an_s); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_o: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_o: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalO" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_o ( 1242s # OrgProjectSignalingIface *object, 1242s # const gchar *arg_an_o) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_an_o); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_g: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_g: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalG" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_g ( 1242s # OrgProjectSignalingIface *object, 1242s # const gchar *arg_an_g) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_an_g); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_h: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_h: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalH" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_h ( 1242s # OrgProjectSignalingIface *object, 1242s # GVariant *arg_an_h) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_an_h); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_ay: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalAY" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1242s # OrgProjectSignalingIface *object, 1242s # const gchar *arg_an_ay) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_an_ay); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_as: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_as: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalAS" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_as ( 1242s # OrgProjectSignalingIface *object, 1242s # const gchar *const *arg_an_as) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_an_as); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_ao: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalAO" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1242s # OrgProjectSignalingIface *object, 1242s # const gchar *const *arg_an_ao) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_an_ao); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_aay: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalAAY" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1242s # OrgProjectSignalingIface *object, 1242s # const gchar *const *arg_an_aay) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_an_aay); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * @arg_an_asv: Argument to pass with the signal. 1242s # * 1242s # * Emits the "SingleArgSignalASV" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1242s # OrgProjectSignalingIface *object, 1242s # GVariant *arg_an_asv) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_an_asv); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectSignalingIfaceProxy: 1242s # * 1242s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectSignalingIfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectSignalingIfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectSignalingIfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_signaling_iface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1242s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1242s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectSignalingIface * 1242s # org_project_signaling_iface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectSignalingIface * 1242s # org_project_signaling_iface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectSignalingIface * 1242s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectSignalingIface * 1242s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectSignalingIfaceSkeleton: 1242s # * 1242s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectSignalingIfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_signaling_iface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_signaling_iface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_signaling_iface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1242s # { 1242s # _org_project_signaling_iface_skeleton_handle_method_call, 1242s # _org_project_signaling_iface_skeleton_handle_get_property, 1242s # _org_project_signaling_iface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_signaling_iface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_no_arg_signal ( 1242s # OrgProjectSignalingIface *object) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "NoArgSignal", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1242s # OrgProjectSignalingIface *object, 1242s # gboolean arg_an_b) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1242s # arg_an_b)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1242s # OrgProjectSignalingIface *object, 1242s # guchar arg_an_y) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1242s # arg_an_y)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1242s # OrgProjectSignalingIface *object, 1242s # gint16 arg_an_n) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1242s # arg_an_n)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1242s # OrgProjectSignalingIface *object, 1242s # guint16 arg_an_q) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1242s # arg_an_q)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1242s # OrgProjectSignalingIface *object, 1242s # gint arg_an_i) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1242s # arg_an_i)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1242s # OrgProjectSignalingIface *object, 1242s # guint arg_an_u) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1242s # arg_an_u)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1242s # OrgProjectSignalingIface *object, 1242s # gint64 arg_an_x) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1242s # arg_an_x)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1242s # OrgProjectSignalingIface *object, 1242s # guint64 arg_an_t) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1242s # arg_an_t)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1242s # OrgProjectSignalingIface *object, 1242s # gdouble arg_an_d) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1242s # arg_an_d)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1242s # OrgProjectSignalingIface *object, 1242s # const gchar *arg_an_s) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1242s # arg_an_s)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1242s # OrgProjectSignalingIface *object, 1242s # const gchar *arg_an_o) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1242s # arg_an_o)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1242s # OrgProjectSignalingIface *object, 1242s # const gchar *arg_an_g) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1242s # arg_an_g)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1242s # OrgProjectSignalingIface *object, 1242s # GVariant *arg_an_h) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1242s # arg_an_h)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1242s # OrgProjectSignalingIface *object, 1242s # const gchar *arg_an_ay) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1242s # arg_an_ay)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAY", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1242s # OrgProjectSignalingIface *object, 1242s # const gchar *const *arg_an_as) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1242s # arg_an_as)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAS", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1242s # OrgProjectSignalingIface *object, 1242s # const gchar *const *arg_an_ao) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1242s # arg_an_ao)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAO", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1242s # OrgProjectSignalingIface *object, 1242s # const gchar *const *arg_an_aay) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1242s # arg_an_aay)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAAY", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1242s # OrgProjectSignalingIface *object, 1242s # GVariant *arg_an_asv) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1242s # arg_an_asv)); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalASV", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1242s # { 1242s # iface->no_arg_signal = _org_project_signaling_iface_on_signal_no_arg_signal; 1242s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1242s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1242s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1242s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1242s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1242s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1242s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1242s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1242s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1242s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1242s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1242s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1242s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1242s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1242s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1242s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1242s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1242s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectSignalingIface * 1242s # org_project_signaling_iface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s ok 21 __main__.TestCodegen.test_generate_signal_id_simple_signal 1242s # gdbus-codegen: /usr/bin/gdbus-codegen 1242s # tmpdir: /tmp/tmp1jk093rz 1242s # /tmp/tmp1jk093rz/tmp_udet0m_.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp1jk093rz/tmp_udet0m_.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.UsefulInterface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectUsefulInterface 1242s # * @title: OrgProjectUsefulInterface 1242s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1242s # */ 1242s # 1242s # enum 1242s # { 1242s # _ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL, 1242s # }; 1242s # 1242s # static unsigned _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[1] = { 0 }; 1242s # 1242s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_useful_interface_signal_info_simple_signal = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SimpleSignal", 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "simple-signal" 1242s # }; 1242s # 1242s # static const GDBusSignalInfo * const _org_project_useful_interface_signal_info_pointers[] = 1242s # { 1242s # &_org_project_useful_interface_signal_info_simple_signal.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.UsefulInterface", 1242s # NULL, 1242s # (GDBusSignalInfo **) &_org_project_useful_interface_signal_info_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-useful-interface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_useful_interface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_useful_interface_signal_marshal_simple_signal ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__VOID (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @simple_signal: Handler for the #OrgProjectUsefulInterface::simple-signal signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1242s # */ 1242s # 1242s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # /* GObject signals for received D-Bus signals: */ 1242s # /** 1242s # * OrgProjectUsefulInterface::simple-signal: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL] = 1242s # g_signal_new ("simple-signal", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, simple_signal), 1242s # NULL, 1242s # NULL, 1242s # org_project_useful_interface_signal_marshal_simple_signal, 1242s # G_TYPE_NONE, 1242s # 0); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_emit_simple_signal: 1242s # * @object: A #OrgProjectUsefulInterface. 1242s # * 1242s # * Emits the "SimpleSignal" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_useful_interface_emit_simple_signal ( 1242s # OrgProjectUsefulInterface *object) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL], 0); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxy: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1242s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1242s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_useful_interface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # g_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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeleton: 1242s # * 1242s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectUsefulInterfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_useful_interface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_useful_interface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_useful_interface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1242s # { 1242s # _org_project_useful_interface_skeleton_handle_method_call, 1242s # _org_project_useful_interface_skeleton_handle_get_property, 1242s # _org_project_useful_interface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_useful_interface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # _org_project_useful_interface_on_signal_simple_signal ( 1242s # OrgProjectUsefulInterface *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", "SimpleSignal", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_useful_interface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface) 1242s # { 1242s # iface->simple_signal = _org_project_useful_interface_on_signal_simple_signal; 1242s # } 1242s # 1242s # /** 1242s # * org_project_useful_interface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectUsefulInterface * 1242s # org_project_useful_interface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.OtherIface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectOtherIface 1242s # * @title: OrgProjectOtherIface 1242s # * @short_description: Generated C code for the org.project.OtherIface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.OtherIface D-Bus interface in C. 1242s # */ 1242s # 1242s # enum 1242s # { 1242s # _ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL, 1242s # }; 1242s # 1242s # static unsigned _ORG_PROJECT_OTHER_IFACE_SIGNALS[1] = { 0 }; 1242s # 1242s # /* ---- Introspection data for org.project.OtherIface ---- */ 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_other_iface_signal_info_simple_signal = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SimpleSignal", 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "simple-signal" 1242s # }; 1242s # 1242s # static const GDBusSignalInfo * const _org_project_other_iface_signal_info_pointers[] = 1242s # { 1242s # &_org_project_other_iface_signal_info_simple_signal.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_other_iface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.OtherIface", 1242s # NULL, 1242s # (GDBusSignalInfo **) &_org_project_other_iface_signal_info_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-other-iface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_other_iface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.OtherIface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_other_iface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_iface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectOtherIface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_other_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_other_iface_signal_marshal_simple_signal ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__VOID (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectOtherIface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.OtherIface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectOtherIfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @simple_signal: Handler for the #OrgProjectOtherIface::simple-signal signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.OtherIface. 1242s # */ 1242s # 1242s # typedef OrgProjectOtherIfaceIface OrgProjectOtherIfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectOtherIface, org_project_other_iface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_other_iface_default_init (OrgProjectOtherIfaceIface *iface) 1242s # { 1242s # /* GObject signals for received D-Bus signals: */ 1242s # /** 1242s # * OrgProjectOtherIface::simple-signal: 1242s # * @object: A #OrgProjectOtherIface. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL] = 1242s # g_signal_new ("simple-signal", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectOtherIfaceIface, simple_signal), 1242s # NULL, 1242s # NULL, 1242s # org_project_other_iface_signal_marshal_simple_signal, 1242s # G_TYPE_NONE, 1242s # 0); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_iface_emit_simple_signal: 1242s # * @object: A #OrgProjectOtherIface. 1242s # * 1242s # * Emits the "SimpleSignal" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_other_iface_emit_simple_signal ( 1242s # OrgProjectOtherIface *object) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL], 0); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectOtherIfaceProxy: 1242s # * 1242s # * The #OrgProjectOtherIfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectOtherIfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectOtherIfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectOtherIfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectOtherIfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_other_iface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_other_iface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_other_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_other_iface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_IFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_other_iface_proxy_init (OrgProjectOtherIfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_other_iface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, OrgProjectOtherIfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_iface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_iface_proxy_class_init (OrgProjectOtherIfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_other_iface_proxy_finalize; 1242s # gobject_class->get_property = org_project_other_iface_proxy_get_property; 1242s # gobject_class->set_property = org_project_other_iface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_other_iface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_other_iface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_iface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_other_iface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_other_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_other_iface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_iface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_other_iface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectOtherIface * 1242s # org_project_other_iface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_OTHER_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_iface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_other_iface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectOtherIface * 1242s # org_project_other_iface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_OTHER_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_other_iface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_other_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_other_iface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_other_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_other_iface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_iface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_other_iface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectOtherIface * 1242s # org_project_other_iface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_OTHER_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_iface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_other_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_other_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectOtherIface * 1242s # org_project_other_iface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_OTHER_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectOtherIfaceSkeleton: 1242s # * 1242s # * The #OrgProjectOtherIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectOtherIfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectOtherIfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectOtherIfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_other_iface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_IFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_other_iface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_other_iface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_other_iface_skeleton_vtable = 1242s # { 1242s # _org_project_other_iface_skeleton_handle_method_call, 1242s # _org_project_other_iface_skeleton_handle_get_property, 1242s # _org_project_other_iface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_other_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_other_iface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_other_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_other_iface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_other_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_other_iface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_other_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_other_iface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # _org_project_other_iface_on_signal_simple_signal ( 1242s # OrgProjectOtherIface *object) 1242s # { 1242s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherIface", "SimpleSignal", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectOtherIfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_other_iface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_other_iface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_iface_skeleton_init (OrgProjectOtherIfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_other_iface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, OrgProjectOtherIfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_iface_skeleton_class_init (OrgProjectOtherIfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_other_iface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_other_iface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_other_iface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_other_iface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_other_iface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface) 1242s # { 1242s # iface->simple_signal = _org_project_other_iface_on_signal_simple_signal; 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_iface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.OtherIface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectOtherIfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectOtherIface * 1242s # org_project_other_iface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_OTHER_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1242s ok 22 __main__.TestCodegen.test_generate_signals_marshaller_simple_signal 1242s # gdbus-codegen: /usr/bin/gdbus-codegen 1242s # tmpdir: /tmp/tmp5zt77kch 1242s # /tmp/tmp5zt77kch/tmpxqjf_mfn.xml: 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # 1242s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5zt77kch/tmpxqjf_mfn.xml', '--output', '-', '--body'] 1242s # Return code: 0 1242s # Output: 1242s # /* 1242s # * This file is generated by gdbus-codegen, do not modify it. 1242s # * 1242s # * The license of this code is the same as for the D-Bus interface description 1242s # * it was derived from. Note that it links to GLib, so must comply with the 1242s # * LGPL linking clauses. 1242s # */ 1242s # 1242s # #ifdef HAVE_CONFIG_H 1242s # # include "config.h" 1242s # #endif 1242s # 1242s # #include 1242s # #ifdef G_OS_UNIX 1242s # # include 1242s # #endif 1242s # 1242s # #ifdef G_ENABLE_DEBUG 1242s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1242s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1242s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1242s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1242s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1242s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1242s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1242s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1242s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1242s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1242s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1242s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1242s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1242s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1242s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1242s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1242s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1242s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1242s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1242s # #else /* !G_ENABLE_DEBUG */ 1242s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1242s # * Do not access GValues directly in your code. Instead, use the 1242s # * g_value_get_*() functions 1242s # */ 1242s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1242s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1242s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1242s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1242s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1242s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1242s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1242s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1242s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1242s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1242s # #endif /* !G_ENABLE_DEBUG */ 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusArgInfo parent_struct; 1242s # gboolean use_gvariant; 1242s # } _ExtendedGDBusArgInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusMethodInfo parent_struct; 1242s # const gchar *signal_name; 1242s # gboolean pass_fdlist; 1242s # } _ExtendedGDBusMethodInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusSignalInfo parent_struct; 1242s # const gchar *signal_name; 1242s # } _ExtendedGDBusSignalInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusPropertyInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # guint use_gvariant : 1; 1242s # guint emits_changed_signal : 1; 1242s # } _ExtendedGDBusPropertyInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # GDBusInterfaceInfo parent_struct; 1242s # const gchar *hyphen_name; 1242s # } _ExtendedGDBusInterfaceInfo; 1242s # 1242s # typedef struct 1242s # { 1242s # const _ExtendedGDBusPropertyInfo *info; 1242s # guint prop_id; 1242s # GValue orig_value; /* the value before the change */ 1242s # } ChangedProperty; 1242s # 1242s # static void 1242s # _changed_property_free (ChangedProperty *data) 1242s # { 1242s # g_value_unset (&data->orig_value); 1242s # g_free (data); 1242s # } 1242s # 1242s # static gboolean 1242s # _g_strv_equal0 (gchar **a, gchar **b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # guint n; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # if (g_strv_length (a) != g_strv_length (b)) 1242s # goto out; 1242s # for (n = 0; a[n] != NULL; n++) 1242s # if (g_strcmp0 (a[n], b[n]) != 0) 1242s # goto out; 1242s # ret = TRUE; 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _g_variant_equal0 (GVariant *a, GVariant *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # if (a == NULL && b == NULL) 1242s # { 1242s # ret = TRUE; 1242s # goto out; 1242s # } 1242s # if (a == NULL || b == NULL) 1242s # goto out; 1242s # ret = g_variant_equal (a, b); 1242s # out: 1242s # return ret; 1242s # } 1242s # 1242s # G_GNUC_UNUSED static gboolean 1242s # _g_value_equal (const GValue *a, const GValue *b) 1242s # { 1242s # gboolean ret = FALSE; 1242s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1242s # switch (G_VALUE_TYPE (a)) 1242s # { 1242s # case G_TYPE_BOOLEAN: 1242s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1242s # break; 1242s # case G_TYPE_UCHAR: 1242s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1242s # break; 1242s # case G_TYPE_INT: 1242s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1242s # break; 1242s # case G_TYPE_UINT: 1242s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1242s # break; 1242s # case G_TYPE_INT64: 1242s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1242s # break; 1242s # case G_TYPE_UINT64: 1242s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1242s # break; 1242s # case G_TYPE_DOUBLE: 1242s # { 1242s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1242s # gdouble da = g_value_get_double (a); 1242s # gdouble db = g_value_get_double (b); 1242s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1242s # } 1242s # break; 1242s # case G_TYPE_STRING: 1242s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1242s # break; 1242s # case G_TYPE_VARIANT: 1242s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1242s # break; 1242s # default: 1242s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1242s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1242s # else 1242s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1242s # break; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.SignalingIface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectSignalingIface 1242s # * @title: OrgProjectSignalingIface 1242s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1242s # */ 1242s # 1242s # enum 1242s # { 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1242s # }; 1242s # 1242s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1242s # 1242s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SimpleSignal", 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "simple-signal" 1242s # }; 1242s # 1242s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1242s # { 1242s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.SignalingIface", 1242s # NULL, 1242s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-signaling-iface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_signaling_iface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_signaling_iface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_signaling_iface_signal_marshal_simple_signal ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__VOID (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectSignalingIface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectSignalingIfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1242s # */ 1242s # 1242s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1242s # { 1242s # /* GObject signals for received D-Bus signals: */ 1242s # /** 1242s # * OrgProjectSignalingIface::simple-signal: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1242s # g_signal_new ("simple-signal", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1242s # NULL, 1242s # NULL, 1242s # org_project_signaling_iface_signal_marshal_simple_signal, 1242s # G_TYPE_NONE, 1242s # 0); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_emit_simple_signal: 1242s # * @object: A #OrgProjectSignalingIface. 1242s # * 1242s # * Emits the "SimpleSignal" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_emit_simple_signal ( 1242s # OrgProjectSignalingIface *object) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectSignalingIfaceProxy: 1242s # * 1242s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectSignalingIfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectSignalingIfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectSignalingIfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_signaling_iface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1242s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1242s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectSignalingIface * 1242s # org_project_signaling_iface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectSignalingIface * 1242s # org_project_signaling_iface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_signaling_iface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectSignalingIface * 1242s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectSignalingIface * 1242s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectSignalingIfaceSkeleton: 1242s # * 1242s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectSignalingIfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_signaling_iface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_signaling_iface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_signaling_iface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1242s # { 1242s # _org_project_signaling_iface_skeleton_handle_method_call, 1242s # _org_project_signaling_iface_skeleton_handle_get_property, 1242s # _org_project_signaling_iface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_signaling_iface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # _org_project_signaling_iface_on_signal_simple_signal ( 1242s # OrgProjectSignalingIface *object) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1242s # { 1242s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1242s # } 1242s # 1242s # /** 1242s # * org_project_signaling_iface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectSignalingIface * 1242s # org_project_signaling_iface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ 1242s # * Code for interface org.project.OtherSignalingIface 1242s # * ------------------------------------------------------------------------ 1242s # */ 1242s # 1242s # /** 1242s # * SECTION:OrgProjectOtherSignalingIface 1242s # * @title: OrgProjectOtherSignalingIface 1242s # * @short_description: Generated C code for the org.project.OtherSignalingIface D-Bus interface 1242s # * 1242s # * This section contains code for working with the org.project.OtherSignalingIface D-Bus interface in C. 1242s # */ 1242s # 1242s # enum 1242s # { 1242s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL, 1242s # }; 1242s # 1242s # static unsigned _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1242s # 1242s # /* ---- Introspection data for org.project.OtherSignalingIface ---- */ 1242s # 1242s # static const _ExtendedGDBusSignalInfo _org_project_other_signaling_iface_signal_info_simple_signal = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "SimpleSignal", 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "simple-signal" 1242s # }; 1242s # 1242s # static const GDBusSignalInfo * const _org_project_other_signaling_iface_signal_info_pointers[] = 1242s # { 1242s # &_org_project_other_signaling_iface_signal_info_simple_signal.parent_struct, 1242s # NULL 1242s # }; 1242s # 1242s # static const _ExtendedGDBusInterfaceInfo _org_project_other_signaling_iface_interface_info = 1242s # { 1242s # { 1242s # -1, 1242s # (gchar *) "org.project.OtherSignalingIface", 1242s # NULL, 1242s # (GDBusSignalInfo **) &_org_project_other_signaling_iface_signal_info_pointers, 1242s # NULL, 1242s # NULL 1242s # }, 1242s # "org-project-other-signaling-iface", 1242s # }; 1242s # 1242s # 1242s # /** 1242s # * org_project_other_signaling_iface_interface_info: 1242s # * 1242s # * Gets a machine-readable description of the org.project.OtherSignalingIface D-Bus interface. 1242s # * 1242s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1242s # */ 1242s # GDBusInterfaceInfo * 1242s # org_project_other_signaling_iface_interface_info (void) 1242s # { 1242s # return (GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct; 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_signaling_iface_override_properties: 1242s # * @klass: The class structure for a #GObject derived class. 1242s # * @property_id_begin: The property id to assign to the first overridden property. 1242s # * 1242s # * Overrides all #GObject properties in the #OrgProjectOtherSignalingIface interface for a concrete class. 1242s # * The properties are overridden in the order they are defined. 1242s # * 1242s # * Returns: The last property id. 1242s # */ 1242s # guint 1242s # org_project_other_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1242s # { 1242s # return property_id_begin - 1; 1242s # } 1242s # 1242s # 1242s # inline static void 1242s # org_project_other_signaling_iface_signal_marshal_simple_signal ( 1242s # GClosure *closure, 1242s # GValue *return_value, 1242s # unsigned int n_param_values, 1242s # const GValue *param_values, 1242s # void *invocation_hint, 1242s # void *marshal_data) 1242s # { 1242s # g_cclosure_marshal_VOID__VOID (closure, 1242s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1242s # } 1242s # 1242s # 1242s # /** 1242s # * OrgProjectOtherSignalingIface: 1242s # * 1242s # * Abstract interface type for the D-Bus interface org.project.OtherSignalingIface. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectOtherSignalingIfaceIface: 1242s # * @parent_iface: The parent interface. 1242s # * @simple_signal: Handler for the #OrgProjectOtherSignalingIface::simple-signal signal. 1242s # * 1242s # * Virtual table for the D-Bus interface org.project.OtherSignalingIface. 1242s # */ 1242s # 1242s # typedef OrgProjectOtherSignalingIfaceIface OrgProjectOtherSignalingIfaceInterface; 1242s # G_DEFINE_INTERFACE (OrgProjectOtherSignalingIface, org_project_other_signaling_iface, G_TYPE_OBJECT) 1242s # 1242s # static void 1242s # org_project_other_signaling_iface_default_init (OrgProjectOtherSignalingIfaceIface *iface) 1242s # { 1242s # /* GObject signals for received D-Bus signals: */ 1242s # /** 1242s # * OrgProjectOtherSignalingIface::simple-signal: 1242s # * @object: A #OrgProjectOtherSignalingIface. 1242s # * 1242s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1242s # * 1242s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1242s # */ 1242s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1242s # g_signal_new ("simple-signal", 1242s # G_TYPE_FROM_INTERFACE (iface), 1242s # G_SIGNAL_RUN_LAST, 1242s # G_STRUCT_OFFSET (OrgProjectOtherSignalingIfaceIface, simple_signal), 1242s # NULL, 1242s # NULL, 1242s # org_project_other_signaling_iface_signal_marshal_simple_signal, 1242s # G_TYPE_NONE, 1242s # 0); 1242s # 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_signaling_iface_emit_simple_signal: 1242s # * @object: A #OrgProjectOtherSignalingIface. 1242s # * 1242s # * Emits the "SimpleSignal" D-Bus signal. 1242s # */ 1242s # void 1242s # org_project_other_signaling_iface_emit_simple_signal ( 1242s # OrgProjectOtherSignalingIface *object) 1242s # { 1242s # g_signal_emit (object, _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1242s # } 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectOtherSignalingIfaceProxy: 1242s # * 1242s # * The #OrgProjectOtherSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectOtherSignalingIfaceProxyClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectOtherSignalingIfaceProxy. 1242s # */ 1242s # 1242s # struct _OrgProjectOtherSignalingIfaceProxyPrivate 1242s # { 1242s # GData *qdata; 1242s # }; 1242s # 1242s # static void org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceProxy) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_other_signaling_iface_proxy_finalize (GObject *object) 1242s # { 1242s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (object); 1242s # g_datalist_clear (&proxy->priv->qdata); 1242s # G_OBJECT_CLASS (org_project_other_signaling_iface_proxy_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_other_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1242s # guint prop_id G_GNUC_UNUSED, 1242s # const GValue *value G_GNUC_UNUSED, 1242s # GParamSpec *pspec G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # org_project_other_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1242s # const gchar *sender_name G_GNUC_UNUSED, 1242s # const gchar *signal_name, 1242s # GVariant *parameters) 1242s # { 1242s # _ExtendedGDBusSignalInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # gsize n; 1242s # guint signal_id; 1242s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, signal_name); 1242s # if (info == NULL) 1242s # return; 1242s # num_params = g_variant_n_children (parameters); 1242s # paramv = g_new0 (GValue, num_params + 1); 1242s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1242s # g_value_set_object (¶mv[0], proxy); 1242s # g_variant_iter_init (&iter, parameters); 1242s # n = 1; 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1242s # g_signal_emitv (paramv, signal_id, 0, NULL); 1242s # for (n = 0; n < num_params + 1; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1242s # GVariant *changed_properties, 1242s # const gchar *const *invalidated_properties) 1242s # { 1242s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (_proxy); 1242s # guint n; 1242s # const gchar *key; 1242s # GVariantIter *iter; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # g_variant_get (changed_properties, "a{sv}", &iter); 1242s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, key); 1242s # g_datalist_remove_data (&proxy->priv->qdata, key); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # g_variant_iter_free (iter); 1242s # for (n = 0; invalidated_properties[n] != NULL; n++) 1242s # { 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1242s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1242s # if (info != NULL) 1242s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1242s # } 1242s # } 1242s # 1242s # static void 1242s # org_project_other_signaling_iface_proxy_init (OrgProjectOtherSignalingIfaceProxy *proxy) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # proxy->priv = org_project_other_signaling_iface_proxy_get_instance_private (proxy); 1242s # #else 1242s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, OrgProjectOtherSignalingIfaceProxyPrivate); 1242s # #endif 1242s # 1242s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_signaling_iface_interface_info ()); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_signaling_iface_proxy_class_init (OrgProjectOtherSignalingIfaceProxyClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusProxyClass *proxy_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_other_signaling_iface_proxy_finalize; 1242s # gobject_class->get_property = org_project_other_signaling_iface_proxy_get_property; 1242s # gobject_class->set_property = org_project_other_signaling_iface_proxy_set_property; 1242s # 1242s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1242s # proxy_class->g_signal = org_project_other_signaling_iface_proxy_g_signal; 1242s # proxy_class->g_properties_changed = org_project_other_signaling_iface_proxy_g_properties_changed; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceProxyPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_signaling_iface_proxy_new: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new() for more details. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_other_signaling_iface_proxy_new_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_other_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_other_signaling_iface_proxy_new ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_signaling_iface_proxy_new_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectOtherSignalingIface * 1242s # org_project_other_signaling_iface_proxy_new_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_signaling_iface_proxy_new_sync: 1242s # * @connection: A #GDBusConnection. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new_sync() for more details. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_other_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectOtherSignalingIface * 1242s # org_project_other_signaling_iface_proxy_new_sync ( 1242s # GDBusConnection *connection, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /** 1242s # * org_project_other_signaling_iface_proxy_new_for_bus: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1242s # * @user_data: User data to pass to @callback. 1242s # * 1242s # * Like org_project_other_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1242s # * You can then call org_project_other_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1242s # * 1242s # * See org_project_other_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1242s # */ 1242s # void 1242s # org_project_other_signaling_iface_proxy_new_for_bus ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GAsyncReadyCallback callback, 1242s # gpointer user_data) 1242s # { 1242s # 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); 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_signaling_iface_proxy_new_for_bus_finish: 1242s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new_for_bus(). 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new_for_bus(). 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectOtherSignalingIface * 1242s # org_project_other_signaling_iface_proxy_new_for_bus_finish ( 1242s # GAsyncResult *res, 1242s # GError **error) 1242s # { 1242s # GObject *ret; 1242s # GObject *source_object; 1242s # source_object = g_async_result_get_source_object (res); 1242s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1242s # g_object_unref (source_object); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_signaling_iface_proxy_new_for_bus_sync: 1242s # * @bus_type: A #GBusType. 1242s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1242s # * @name: A bus name (well-known or unique). 1242s # * @object_path: An object path. 1242s # * @cancellable: (nullable): A #GCancellable or %NULL. 1242s # * @error: Return location for error or %NULL 1242s # * 1242s # * Like org_project_other_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1242s # * 1242s # * The calling thread is blocked until a reply is received. 1242s # * 1242s # * See org_project_other_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1242s # */ 1242s # OrgProjectOtherSignalingIface * 1242s # org_project_other_signaling_iface_proxy_new_for_bus_sync ( 1242s # GBusType bus_type, 1242s # GDBusProxyFlags flags, 1242s # const gchar *name, 1242s # const gchar *object_path, 1242s # GCancellable *cancellable, 1242s # GError **error) 1242s # { 1242s # GInitable *ret; 1242s # 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); 1242s # if (ret != NULL) 1242s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1242s # else 1242s # return NULL; 1242s # } 1242s # 1242s # 1242s # /* ------------------------------------------------------------------------ */ 1242s # 1242s # /** 1242s # * OrgProjectOtherSignalingIfaceSkeleton: 1242s # * 1242s # * The #OrgProjectOtherSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1242s # */ 1242s # 1242s # /** 1242s # * OrgProjectOtherSignalingIfaceSkeletonClass: 1242s # * @parent_class: The parent class. 1242s # * 1242s # * Class structure for #OrgProjectOtherSignalingIfaceSkeleton. 1242s # */ 1242s # 1242s # struct _OrgProjectOtherSignalingIfaceSkeletonPrivate 1242s # { 1242s # GValue *properties; 1242s # GList *changed_properties; 1242s # GSource *changed_properties_idle_source; 1242s # GMainContext *context; 1242s # GMutex lock; 1242s # }; 1242s # 1242s # static void 1242s # _org_project_other_signaling_iface_skeleton_handle_method_call ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name, 1242s # const gchar *method_name, 1242s # GVariant *parameters, 1242s # GDBusMethodInvocation *invocation, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1242s # _ExtendedGDBusMethodInfo *info; 1242s # GVariantIter iter; 1242s # GVariant *child; 1242s # GValue *paramv; 1242s # gsize num_params; 1242s # guint num_extra; 1242s # gsize n; 1242s # guint signal_id; 1242s # GValue return_value = G_VALUE_INIT; 1242s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1242s # g_assert (info != NULL); 1242s # num_params = g_variant_n_children (parameters); 1242s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1242s # n = 0; 1242s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1242s # g_value_set_object (¶mv[n++], skeleton); 1242s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1242s # g_value_set_object (¶mv[n++], invocation); 1242s # if (info->pass_fdlist) 1242s # { 1242s # #ifdef G_OS_UNIX 1242s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1242s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1242s # #else 1242s # g_assert_not_reached (); 1242s # #endif 1242s # } 1242s # g_variant_iter_init (&iter, parameters); 1242s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1242s # { 1242s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1242s # if (arg_info->use_gvariant) 1242s # { 1242s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1242s # g_value_set_variant (¶mv[n], child); 1242s # n++; 1242s # } 1242s # else 1242s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1242s # g_variant_unref (child); 1242s # } 1242s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1242s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1242s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1242s # if (!g_value_get_boolean (&return_value)) 1242s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1242s # g_value_unset (&return_value); 1242s # for (n = 0; n < num_params + num_extra; n++) 1242s # g_value_unset (¶mv[n]); 1242s # g_free (paramv); 1242s # } 1242s # 1242s # static GVariant * 1242s # _org_project_other_signaling_iface_skeleton_handle_get_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # GVariant *ret; 1242s # ret = NULL; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # g_value_init (&value, pspec->value_type); 1242s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1242s # g_value_unset (&value); 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static gboolean 1242s # _org_project_other_signaling_iface_skeleton_handle_set_property ( 1242s # GDBusConnection *connection G_GNUC_UNUSED, 1242s # const gchar *sender G_GNUC_UNUSED, 1242s # const gchar *object_path G_GNUC_UNUSED, 1242s # const gchar *interface_name G_GNUC_UNUSED, 1242s # const gchar *property_name, 1242s # GVariant *variant, 1242s # GError **error, 1242s # gpointer user_data) 1242s # { 1242s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1242s # GValue value = G_VALUE_INIT; 1242s # GParamSpec *pspec; 1242s # _ExtendedGDBusPropertyInfo *info; 1242s # gboolean ret; 1242s # ret = FALSE; 1242s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1242s # g_assert (info != NULL); 1242s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1242s # if (pspec == NULL) 1242s # { 1242s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1242s # } 1242s # else 1242s # { 1242s # if (info->use_gvariant) 1242s # g_value_set_variant (&value, variant); 1242s # else 1242s # g_dbus_gvariant_to_gvalue (variant, &value); 1242s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1242s # g_value_unset (&value); 1242s # ret = TRUE; 1242s # } 1242s # return ret; 1242s # } 1242s # 1242s # static const GDBusInterfaceVTable _org_project_other_signaling_iface_skeleton_vtable = 1242s # { 1242s # _org_project_other_signaling_iface_skeleton_handle_method_call, 1242s # _org_project_other_signaling_iface_skeleton_handle_get_property, 1242s # _org_project_other_signaling_iface_skeleton_handle_set_property, 1242s # {NULL} 1242s # }; 1242s # 1242s # static GDBusInterfaceInfo * 1242s # org_project_other_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return org_project_other_signaling_iface_interface_info (); 1242s # } 1242s # 1242s # static GDBusInterfaceVTable * 1242s # org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1242s # { 1242s # return (GDBusInterfaceVTable *) &_org_project_other_signaling_iface_skeleton_vtable; 1242s # } 1242s # 1242s # static GVariant * 1242s # org_project_other_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1242s # { 1242s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (_skeleton); 1242s # 1242s # GVariantBuilder builder; 1242s # guint n; 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1242s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #else 1242s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1242s # #endif 1242s # if (_org_project_other_signaling_iface_interface_info.parent_struct.properties == NULL) 1242s # goto out; 1242s # for (n = 0; _org_project_other_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1242s # { 1242s # GDBusPropertyInfo *info = _org_project_other_signaling_iface_interface_info.parent_struct.properties[n]; 1242s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1242s # { 1242s # GVariant *value; 1242s # 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); 1242s # if (value != NULL) 1242s # { 1242s # g_variant_take_ref (value); 1242s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1242s # g_variant_unref (value); 1242s # } 1242s # } 1242s # } 1242s # out: 1242s # return g_variant_builder_end (&builder); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1242s # { 1242s # } 1242s # 1242s # static void 1242s # _org_project_other_signaling_iface_on_signal_simple_signal ( 1242s # OrgProjectOtherSignalingIface *object) 1242s # { 1242s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1242s # 1242s # GList *connections, *l; 1242s # GVariant *signal_variant; 1242s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1242s # 1242s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1242s # for (l = connections; l != NULL; l = l->next) 1242s # { 1242s # GDBusConnection *connection = l->data; 1242s # g_dbus_connection_emit_signal (connection, 1242s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherSignalingIface", "SimpleSignal", 1242s # signal_variant, NULL); 1242s # } 1242s # g_variant_unref (signal_variant); 1242s # g_list_free_full (connections, g_object_unref); 1242s # } 1242s # 1242s # static void org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceSkeleton) 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1242s # 1242s # #else 1242s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1242s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1242s # 1242s # #endif 1242s # static void 1242s # org_project_other_signaling_iface_skeleton_finalize (GObject *object) 1242s # { 1242s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1242s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1242s # if (skeleton->priv->changed_properties_idle_source != NULL) 1242s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1242s # g_main_context_unref (skeleton->priv->context); 1242s # g_mutex_clear (&skeleton->priv->lock); 1242s # G_OBJECT_CLASS (org_project_other_signaling_iface_skeleton_parent_class)->finalize (object); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_signaling_iface_skeleton_init (OrgProjectOtherSignalingIfaceSkeleton *skeleton) 1242s # { 1242s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1242s # skeleton->priv = org_project_other_signaling_iface_skeleton_get_instance_private (skeleton); 1242s # #else 1242s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, OrgProjectOtherSignalingIfaceSkeletonPrivate); 1242s # #endif 1242s # 1242s # g_mutex_init (&skeleton->priv->lock); 1242s # skeleton->priv->context = g_main_context_ref_thread_default (); 1242s # } 1242s # 1242s # static void 1242s # org_project_other_signaling_iface_skeleton_class_init (OrgProjectOtherSignalingIfaceSkeletonClass *klass) 1242s # { 1242s # GObjectClass *gobject_class; 1242s # GDBusInterfaceSkeletonClass *skeleton_class; 1242s # 1242s # gobject_class = G_OBJECT_CLASS (klass); 1242s # gobject_class->finalize = org_project_other_signaling_iface_skeleton_finalize; 1242s # 1242s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1242s # skeleton_class->get_info = org_project_other_signaling_iface_skeleton_dbus_interface_get_info; 1242s # skeleton_class->get_properties = org_project_other_signaling_iface_skeleton_dbus_interface_get_properties; 1242s # skeleton_class->flush = org_project_other_signaling_iface_skeleton_dbus_interface_flush; 1242s # skeleton_class->get_vtable = org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable; 1242s # 1242s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1242s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceSkeletonPrivate)); 1242s # #endif 1242s # } 1242s # 1242s # static void 1242s # org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface) 1242s # { 1242s # iface->simple_signal = _org_project_other_signaling_iface_on_signal_simple_signal; 1242s # } 1242s # 1242s # /** 1242s # * org_project_other_signaling_iface_skeleton_new: 1242s # * 1242s # * Creates a skeleton object for the D-Bus interface org.project.OtherSignalingIface. 1242s # * 1242s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceSkeleton): The skeleton object. 1242s # */ 1242s # OrgProjectOtherSignalingIface * 1242s # org_project_other_signaling_iface_skeleton_new (void) 1242s # { 1242s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, NULL)); 1242s # } 1242s # Error: 1243s ok 23 __main__.TestCodegen.test_generate_signals_marshaller_single_typed_args 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmpb_k9myb2 1243s # /tmp/tmpb_k9myb2/tmp55lhswr8.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmp55lhswr8.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_b", 1243s # (gchar *) "b", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalB", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-b" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-b: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_b: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1243s # g_signal_new ("single-arg-signal-b", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_BOOLEAN); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_b: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_b: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalB" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_b ( 1243s # OrgProjectSignalingIface *object, 1243s # gboolean arg_arg_b) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_arg_b); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1243s # OrgProjectSignalingIface *object, 1243s # gboolean arg_arg_b) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1243s # arg_arg_b)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmp_2k4cmcr.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmp_2k4cmcr.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_y", 1243s # (gchar *) "y", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalY", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-y" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__UCHAR (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-y: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_y: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1243s # g_signal_new ("single-arg-signal-y", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_UCHAR); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_y: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_y: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalY" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_y ( 1243s # OrgProjectSignalingIface *object, 1243s # guchar arg_arg_y) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_arg_y); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1243s # OrgProjectSignalingIface *object, 1243s # guchar arg_arg_y) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1243s # arg_arg_y)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmp49_3j7al.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmp49_3j7al.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_n", 1243s # (gchar *) "n", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalN", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-n" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__INT (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-n: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_n: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1243s # g_signal_new ("single-arg-signal-n", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_INT); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_n: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_n: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalN" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_n ( 1243s # OrgProjectSignalingIface *object, 1243s # gint16 arg_arg_n) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_arg_n); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1243s # OrgProjectSignalingIface *object, 1243s # gint16 arg_arg_n) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1243s # arg_arg_n)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmp_w6wbg06.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmp_w6wbg06.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_q", 1243s # (gchar *) "q", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalQ", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-q" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__UINT (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-q: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_q: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1243s # g_signal_new ("single-arg-signal-q", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_UINT); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_q: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_q: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalQ" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_q ( 1243s # OrgProjectSignalingIface *object, 1243s # guint16 arg_arg_q) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_arg_q); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1243s # OrgProjectSignalingIface *object, 1243s # guint16 arg_arg_q) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1243s # arg_arg_q)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmpmmuqpr60.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmpmmuqpr60.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_i", 1243s # (gchar *) "i", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalI", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-i" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__INT (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-i: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_i: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1243s # g_signal_new ("single-arg-signal-i", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_INT); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_i: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_i: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalI" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_i ( 1243s # OrgProjectSignalingIface *object, 1243s # gint arg_arg_i) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_arg_i); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1243s # OrgProjectSignalingIface *object, 1243s # gint arg_arg_i) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1243s # arg_arg_i)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmpiw517kpy.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmpiw517kpy.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_u", 1243s # (gchar *) "u", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalU", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-u" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__UINT (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-u: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_u: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1243s # g_signal_new ("single-arg-signal-u", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_UINT); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_u: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_u: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalU" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_u ( 1243s # OrgProjectSignalingIface *object, 1243s # guint arg_arg_u) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_arg_u); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1243s # OrgProjectSignalingIface *object, 1243s # guint arg_arg_u) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1243s # arg_arg_u)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmp6q9qucuy.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmp6q9qucuy.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static void 1243s # _g_dbus_codegen_marshal_VOID__INT64 ( 1243s # GClosure *closure, 1243s # GValue *return_value G_GNUC_UNUSED, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint G_GNUC_UNUSED, 1243s # void *marshal_data) 1243s # { 1243s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1243s # (void *data1, 1243s # gint64 arg_arg_x, 1243s # void *data2); 1243s # _GDbusCodegenMarshalVoid_Int64Func callback; 1243s # GCClosure *cc = (GCClosure*) closure; 1243s # void *data1, *data2; 1243s # 1243s # g_return_if_fail (n_param_values == 2); 1243s # 1243s # if (G_CCLOSURE_SWAP_DATA (closure)) 1243s # { 1243s # data1 = closure->data; 1243s # data2 = g_value_peek_pointer (param_values + 0); 1243s # } 1243s # else 1243s # { 1243s # data1 = g_value_peek_pointer (param_values + 0); 1243s # data2 = closure->data; 1243s # } 1243s # 1243s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1243s # (marshal_data ? marshal_data : cc->callback); 1243s # 1243s # callback (data1, 1243s # g_marshal_value_peek_int64 (param_values + 1), 1243s # data2); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_x", 1243s # (gchar *) "x", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalX", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-x" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-x: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_x: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1243s # g_signal_new ("single-arg-signal-x", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_INT64); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_x: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_x: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalX" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_x ( 1243s # OrgProjectSignalingIface *object, 1243s # gint64 arg_arg_x) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_arg_x); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1243s # OrgProjectSignalingIface *object, 1243s # gint64 arg_arg_x) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1243s # arg_arg_x)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmpsfurwk32.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmpsfurwk32.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static void 1243s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1243s # GClosure *closure, 1243s # GValue *return_value G_GNUC_UNUSED, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint G_GNUC_UNUSED, 1243s # void *marshal_data) 1243s # { 1243s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1243s # (void *data1, 1243s # guint64 arg_arg_t, 1243s # void *data2); 1243s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1243s # GCClosure *cc = (GCClosure*) closure; 1243s # void *data1, *data2; 1243s # 1243s # g_return_if_fail (n_param_values == 2); 1243s # 1243s # if (G_CCLOSURE_SWAP_DATA (closure)) 1243s # { 1243s # data1 = closure->data; 1243s # data2 = g_value_peek_pointer (param_values + 0); 1243s # } 1243s # else 1243s # { 1243s # data1 = g_value_peek_pointer (param_values + 0); 1243s # data2 = closure->data; 1243s # } 1243s # 1243s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1243s # (marshal_data ? marshal_data : cc->callback); 1243s # 1243s # callback (data1, 1243s # g_marshal_value_peek_uint64 (param_values + 1), 1243s # data2); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_t", 1243s # (gchar *) "t", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalT", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-t" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-t: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_t: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1243s # g_signal_new ("single-arg-signal-t", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_UINT64); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_t: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_t: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalT" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_t ( 1243s # OrgProjectSignalingIface *object, 1243s # guint64 arg_arg_t) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_arg_t); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1243s # OrgProjectSignalingIface *object, 1243s # guint64 arg_arg_t) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1243s # arg_arg_t)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmptymdeh0g.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmptymdeh0g.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_d", 1243s # (gchar *) "d", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalD", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-d" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__DOUBLE (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-d: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_d: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1243s # g_signal_new ("single-arg-signal-d", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_DOUBLE); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_d: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_d: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalD" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_d ( 1243s # OrgProjectSignalingIface *object, 1243s # gdouble arg_arg_d) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_arg_d); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1243s # OrgProjectSignalingIface *object, 1243s # gdouble arg_arg_d) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1243s # arg_arg_d)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmpl9rq9_k5.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmpl9rq9_k5.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_s", 1243s # (gchar *) "s", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalS", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-s" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__STRING (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-s: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_s: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1243s # g_signal_new ("single-arg-signal-s", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_STRING); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_s: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_s: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalS" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_s ( 1243s # OrgProjectSignalingIface *object, 1243s # const gchar *arg_arg_s) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_arg_s); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1243s # OrgProjectSignalingIface *object, 1243s # const gchar *arg_arg_s) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1243s # arg_arg_s)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmpzmmvkeam.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmpzmmvkeam.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_o", 1243s # (gchar *) "o", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalO", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-o" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__STRING (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-o: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_o: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1243s # g_signal_new ("single-arg-signal-o", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_STRING); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_o: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_o: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalO" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_o ( 1243s # OrgProjectSignalingIface *object, 1243s # const gchar *arg_arg_o) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_arg_o); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1243s # OrgProjectSignalingIface *object, 1243s # const gchar *arg_arg_o) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1243s # arg_arg_o)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmphcrmv_zz.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmphcrmv_zz.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_g", 1243s # (gchar *) "g", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalG", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-g" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__STRING (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-g: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_g: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1243s # g_signal_new ("single-arg-signal-g", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_STRING); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_g: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_g: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalG" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_g ( 1243s # OrgProjectSignalingIface *object, 1243s # const gchar *arg_arg_g) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_arg_g); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1243s # OrgProjectSignalingIface *object, 1243s # const gchar *arg_arg_g) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1243s # arg_arg_g)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmpj6104dnx.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmpj6104dnx.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_h", 1243s # (gchar *) "h", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalH", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-h" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VARIANT (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-h: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_h: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1243s # g_signal_new ("single-arg-signal-h", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_VARIANT); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_h: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_h: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalH" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_h ( 1243s # OrgProjectSignalingIface *object, 1243s # GVariant *arg_arg_h) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_arg_h); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1243s # OrgProjectSignalingIface *object, 1243s # GVariant *arg_arg_h) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1243s # arg_arg_h)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmppou40tdw.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmppou40tdw.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_ay", 1243s # (gchar *) "ay", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalAy", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-ay" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__STRING (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-ay: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_ay: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAy" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1243s # g_signal_new ("single-arg-signal-ay", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_STRING); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_ay: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalAy" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1243s # OrgProjectSignalingIface *object, 1243s # const gchar *arg_arg_ay) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_arg_ay); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1243s # OrgProjectSignalingIface *object, 1243s # const gchar *arg_arg_ay) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1243s # arg_arg_ay)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAy", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmpwogaxek9.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmpwogaxek9.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_as", 1243s # (gchar *) "as", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalAs", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-as" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__BOXED (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-as: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_as: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAs" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1243s # g_signal_new ("single-arg-signal-as", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_STRV); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_as: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_as: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalAs" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_as ( 1243s # OrgProjectSignalingIface *object, 1243s # const gchar *const *arg_arg_as) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_arg_as); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1243s # OrgProjectSignalingIface *object, 1243s # const gchar *const *arg_arg_as) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1243s # arg_arg_as)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAs", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmp443m3nnp.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmp443m3nnp.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_ao", 1243s # (gchar *) "ao", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalAo", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-ao" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__BOXED (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-ao: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_ao: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAo" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1243s # g_signal_new ("single-arg-signal-ao", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_STRV); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_ao: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalAo" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1243s # OrgProjectSignalingIface *object, 1243s # const gchar *const *arg_arg_ao) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_arg_ao); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1243s # OrgProjectSignalingIface *object, 1243s # const gchar *const *arg_arg_ao) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1243s # arg_arg_ao)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAo", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmpvut7z6kw.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmpvut7z6kw.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_aay", 1243s # (gchar *) "aay", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalAay", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-aay" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__BOXED (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-aay: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_aay: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAay" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1243s # g_signal_new ("single-arg-signal-aay", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_STRV); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_aay: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalAay" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1243s # OrgProjectSignalingIface *object, 1243s # const gchar *const *arg_arg_aay) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_arg_aay); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1243s # OrgProjectSignalingIface *object, 1243s # const gchar *const *arg_arg_aay) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1243s # arg_arg_aay)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAay", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # /tmp/tmpb_k9myb2/tmpqpe6a3b0.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb_k9myb2/tmpqpe6a3b0.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "arg_asv", 1243s # (gchar *) "a{sv}", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SingleArgSignalAsv", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "single-arg-signal-asv" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VARIANT (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::single-arg-signal-asv: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_asv: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAsv" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1243s # g_signal_new ("single-arg-signal-asv", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1243s # G_TYPE_NONE, 1243s # 1, G_TYPE_VARIANT); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_arg_asv: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SingleArgSignalAsv" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1243s # OrgProjectSignalingIface *object, 1243s # GVariant *arg_arg_asv) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_arg_asv); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1243s # OrgProjectSignalingIface *object, 1243s # GVariant *arg_arg_asv) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1243s # arg_arg_asv)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAsv", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s ok 24 __main__.TestCodegen.test_generate_signals_marshallers_multiple_args 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmpe9o7tvdv 1243s # /tmp/tmpe9o7tvdv/tmpycbw48_y.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpe9o7tvdv/tmpycbw48_y.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static void 1243s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1243s # GClosure *closure, 1243s # GValue *return_value G_GNUC_UNUSED, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint G_GNUC_UNUSED, 1243s # void *marshal_data) 1243s # { 1243s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1243s # (void *data1, 1243s # gboolean arg_an_b, 1243s # guchar arg_an_y, 1243s # gint16 arg_an_n, 1243s # guint16 arg_an_q, 1243s # gint arg_an_i, 1243s # guint arg_an_u, 1243s # gint64 arg_an_x, 1243s # guint64 arg_an_t, 1243s # gdouble arg_an_d, 1243s # const gchar *arg_an_s, 1243s # const gchar *arg_an_o, 1243s # const gchar *arg_an_g, 1243s # GVariant *arg_an_h, 1243s # const gchar *arg_an_ay, 1243s # const gchar *const *arg_an_as, 1243s # const gchar *const *arg_an_ao, 1243s # const gchar *const *arg_an_aay, 1243s # GVariant *arg_an_asv, 1243s # void *data2); 1243s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1243s # GCClosure *cc = (GCClosure*) closure; 1243s # void *data1, *data2; 1243s # 1243s # g_return_if_fail (n_param_values == 19); 1243s # 1243s # if (G_CCLOSURE_SWAP_DATA (closure)) 1243s # { 1243s # data1 = closure->data; 1243s # data2 = g_value_peek_pointer (param_values + 0); 1243s # } 1243s # else 1243s # { 1243s # data1 = g_value_peek_pointer (param_values + 0); 1243s # data2 = closure->data; 1243s # } 1243s # 1243s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1243s # (marshal_data ? marshal_data : cc->callback); 1243s # 1243s # callback (data1, 1243s # g_marshal_value_peek_boolean (param_values + 1), 1243s # g_marshal_value_peek_uchar (param_values + 2), 1243s # g_marshal_value_peek_int (param_values + 3), 1243s # g_marshal_value_peek_uint (param_values + 4), 1243s # g_marshal_value_peek_int (param_values + 5), 1243s # g_marshal_value_peek_uint (param_values + 6), 1243s # g_marshal_value_peek_int64 (param_values + 7), 1243s # g_marshal_value_peek_uint64 (param_values + 8), 1243s # g_marshal_value_peek_double (param_values + 9), 1243s # g_marshal_value_peek_string (param_values + 10), 1243s # g_marshal_value_peek_string (param_values + 11), 1243s # g_marshal_value_peek_string (param_values + 12), 1243s # g_marshal_value_peek_variant (param_values + 13), 1243s # g_marshal_value_peek_string (param_values + 14), 1243s # g_marshal_value_peek_boxed (param_values + 15), 1243s # g_marshal_value_peek_boxed (param_values + 16), 1243s # g_marshal_value_peek_boxed (param_values + 17), 1243s # g_marshal_value_peek_variant (param_values + 18), 1243s # data2); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.SignalingIface 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectSignalingIface 1243s # * @title: OrgProjectSignalingIface 1243s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1243s # }; 1243s # 1243s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1243s # 1243s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SimpleSignal", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "simple-signal" 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_b", 1243s # (gchar *) "b", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_y", 1243s # (gchar *) "y", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_n", 1243s # (gchar *) "n", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_q", 1243s # (gchar *) "q", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_i", 1243s # (gchar *) "i", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_u", 1243s # (gchar *) "u", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_x", 1243s # (gchar *) "x", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_t", 1243s # (gchar *) "t", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_d", 1243s # (gchar *) "d", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_s", 1243s # (gchar *) "s", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_o", 1243s # (gchar *) "o", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_g", 1243s # (gchar *) "g", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_h", 1243s # (gchar *) "h", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_ay", 1243s # (gchar *) "ay", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_as", 1243s # (gchar *) "as", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_ao", 1243s # (gchar *) "ao", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_aay", 1243s # (gchar *) "aay", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "an_asv", 1243s # (gchar *) "a{sv}", 1243s # NULL 1243s # }, 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "SignalWithManyArgs", 1243s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1243s # NULL 1243s # }, 1243s # "signal-with-many-args" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1243s # { 1243s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1243s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.SignalingIface", 1243s # NULL, 1243s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-signaling-iface", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_signaling_iface_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_simple_signal ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceIface: 1243s # * @parent_iface: The parent interface. 1243s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1243s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1243s # */ 1243s # 1243s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * OrgProjectSignalingIface::simple-signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1243s # g_signal_new ("simple-signal", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_simple_signal, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /** 1243s # * OrgProjectSignalingIface::signal-with-many-args: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_an_b: Argument. 1243s # * @arg_an_y: Argument. 1243s # * @arg_an_n: Argument. 1243s # * @arg_an_q: Argument. 1243s # * @arg_an_i: Argument. 1243s # * @arg_an_u: Argument. 1243s # * @arg_an_x: Argument. 1243s # * @arg_an_t: Argument. 1243s # * @arg_an_d: Argument. 1243s # * @arg_an_s: Argument. 1243s # * @arg_an_o: Argument. 1243s # * @arg_an_g: Argument. 1243s # * @arg_an_h: Argument. 1243s # * @arg_an_ay: Argument. 1243s # * @arg_an_as: Argument. 1243s # * @arg_an_ao: Argument. 1243s # * @arg_an_aay: Argument. 1243s # * @arg_an_asv: Argument. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1243s # g_signal_new ("signal-with-many-args", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1243s # NULL, 1243s # NULL, 1243s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1243s # G_TYPE_NONE, 1243s # 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); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_simple_signal: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * 1243s # * Emits the "SimpleSignal" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_emit_signal_with_many_args: 1243s # * @object: A #OrgProjectSignalingIface. 1243s # * @arg_an_b: Argument to pass with the signal. 1243s # * @arg_an_y: Argument to pass with the signal. 1243s # * @arg_an_n: Argument to pass with the signal. 1243s # * @arg_an_q: Argument to pass with the signal. 1243s # * @arg_an_i: Argument to pass with the signal. 1243s # * @arg_an_u: Argument to pass with the signal. 1243s # * @arg_an_x: Argument to pass with the signal. 1243s # * @arg_an_t: Argument to pass with the signal. 1243s # * @arg_an_d: Argument to pass with the signal. 1243s # * @arg_an_s: Argument to pass with the signal. 1243s # * @arg_an_o: Argument to pass with the signal. 1243s # * @arg_an_g: Argument to pass with the signal. 1243s # * @arg_an_h: Argument to pass with the signal. 1243s # * @arg_an_ay: Argument to pass with the signal. 1243s # * @arg_an_as: Argument to pass with the signal. 1243s # * @arg_an_ao: Argument to pass with the signal. 1243s # * @arg_an_aay: Argument to pass with the signal. 1243s # * @arg_an_asv: Argument to pass with the signal. 1243s # * 1243s # * Emits the "SignalWithManyArgs" D-Bus signal. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_emit_signal_with_many_args ( 1243s # OrgProjectSignalingIface *object, 1243s # gboolean arg_an_b, 1243s # guchar arg_an_y, 1243s # gint16 arg_an_n, 1243s # guint16 arg_an_q, 1243s # gint arg_an_i, 1243s # guint arg_an_u, 1243s # gint64 arg_an_x, 1243s # guint64 arg_an_t, 1243s # gdouble arg_an_d, 1243s # const gchar *arg_an_s, 1243s # const gchar *arg_an_o, 1243s # const gchar *arg_an_g, 1243s # GVariant *arg_an_h, 1243s # const gchar *arg_an_ay, 1243s # const gchar *const *arg_an_as, 1243s # const gchar *const *arg_an_ao, 1243s # const gchar *const *arg_an_aay, 1243s # GVariant *arg_an_asv) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxy: 1243s # * 1243s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1243s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1243s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_signaling_iface_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeleton: 1243s # * 1243s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectSignalingIfaceSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_signaling_iface_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_signaling_iface_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_signaling_iface_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1243s # { 1243s # _org_project_signaling_iface_skeleton_handle_method_call, 1243s # _org_project_signaling_iface_skeleton_handle_get_property, 1243s # _org_project_signaling_iface_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_signaling_iface_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_simple_signal ( 1243s # OrgProjectSignalingIface *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void 1243s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1243s # OrgProjectSignalingIface *object, 1243s # gboolean arg_an_b, 1243s # guchar arg_an_y, 1243s # gint16 arg_an_n, 1243s # guint16 arg_an_q, 1243s # gint arg_an_i, 1243s # guint arg_an_u, 1243s # gint64 arg_an_x, 1243s # guint64 arg_an_t, 1243s # gdouble arg_an_d, 1243s # const gchar *arg_an_s, 1243s # const gchar *arg_an_o, 1243s # const gchar *arg_an_g, 1243s # GVariant *arg_an_h, 1243s # const gchar *arg_an_ay, 1243s # const gchar *const *arg_an_as, 1243s # const gchar *const *arg_an_ao, 1243s # const gchar *const *arg_an_aay, 1243s # GVariant *arg_an_asv) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1243s # arg_an_b, 1243s # arg_an_y, 1243s # arg_an_n, 1243s # arg_an_q, 1243s # arg_an_i, 1243s # arg_an_u, 1243s # arg_an_x, 1243s # arg_an_t, 1243s # arg_an_d, 1243s # arg_an_s, 1243s # arg_an_o, 1243s # arg_an_g, 1243s # arg_an_h, 1243s # arg_an_ay, 1243s # arg_an_as, 1243s # arg_an_ao, 1243s # arg_an_aay, 1243s # arg_an_asv)); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1243s # { 1243s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1243s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1243s # } 1243s # 1243s # /** 1243s # * org_project_signaling_iface_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectSignalingIface * 1243s # org_project_signaling_iface_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s ok 25 __main__.TestCodegen.test_generate_valid_docbook 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmps8nav_1a 1243s # /tmp/tmps8nav_1a/tmpxn4r_aza.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps8nav_1a/tmpxn4r_aza.xml', '--generate-docbook', 'test'] 1243s # Return code: 0 1243s # Output: 1243s # 1243s # Error: 1243s ok 26 __main__.TestCodegen.test_glib_max_allowed_less_than_min_required 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmpeq9hsd4n 1243s # /tmp/tmpeq9hsd4n/tmph6v_ysfy.xml: 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpeq9hsd4n/tmph6v_ysfy.xml', '--output', '-', '--body', '--glib-max-allowed', '2.62', '--glib-min-required', '2.64'] 1243s # Return code: 1 1243s # Output: 1243s # 1243s # Error: 1243s # ERROR: Invalid versions: --glib-min-required ((2, 64)) must be less than or equal to --glib-max-allowed ((2, 62)) 1243s ok 27 __main__.TestCodegen.test_glib_max_allowed_major_only 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmpipx9nvyx 1243s # /tmp/tmpipx9nvyx/tmp6njzgvbc.xml: 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpipx9nvyx/tmp6njzgvbc.xml', '--output', '-', '--header', '--glib-max-allowed', '3'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifndef __STDOUT__ 1243s # #define __STDOUT__ 1243s # 1243s # #include 1243s # 1243s # G_BEGIN_DECLS 1243s # 1243s # 1243s # G_END_DECLS 1243s # 1243s # #endif /* __STDOUT__ */ 1243s # Error: 1243s ok 28 __main__.TestCodegen.test_glib_max_allowed_too_low 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmpsprfz55x 1243s # /tmp/tmpsprfz55x/tmp3o7mly3h.xml: 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpsprfz55x/tmp3o7mly3h.xml', '--output', '-', '--body', '--glib-max-allowed', '2.6'] 1243s # Return code: 1 1243s # Output: 1243s # 1243s # Error: 1243s # ERROR: Invalid versions: --glib-min-required ((2, 30)) must be less than or equal to --glib-max-allowed ((2, 6)) 1243s ok 29 __main__.TestCodegen.test_glib_max_allowed_unstable 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmpghh1u2qp 1243s # /tmp/tmpghh1u2qp/tmpeou_6fia.xml: 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpghh1u2qp/tmpeou_6fia.xml', '--output', '-', '--header', '--glib-max-allowed', '2.63', '--glib-min-required', '2.64'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifndef __STDOUT__ 1243s # #define __STDOUT__ 1243s # 1243s # #include 1243s # 1243s # G_BEGIN_DECLS 1243s # 1243s # 1243s # G_END_DECLS 1243s # 1243s # #endif /* __STDOUT__ */ 1243s # Error: 1243s ok 30 __main__.TestCodegen.test_glib_max_allowed_with_micro 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmp69v5zbgg 1243s # /tmp/tmp69v5zbgg/tmpxiii6ukb.xml: 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp69v5zbgg/tmpxiii6ukb.xml', '--output', '-', '--header', '--glib-max-allowed', '2.46.2'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifndef __STDOUT__ 1243s # #define __STDOUT__ 1243s # 1243s # #include 1243s # 1243s # G_BEGIN_DECLS 1243s # 1243s # 1243s # G_END_DECLS 1243s # 1243s # #endif /* __STDOUT__ */ 1243s # Error: 1243s ok 31 __main__.TestCodegen.test_glib_min_required_invalid 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmpqdri7miy 1243s # /tmp/tmpqdri7miy/tmpdcmpjhwh.xml: 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqdri7miy/tmpdcmpjhwh.xml', '--output', '-', '--body', '--glib-min-required', 'hello mum'] 1243s # Return code: 1 1243s # Output: 1243s # 1243s # Error: 1243s # ERROR: Unrecognized --glib-min-required string ‘hello mum’ 1243s ok 32 __main__.TestCodegen.test_glib_min_required_major_only 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmpo6o2mhi9 1243s # /tmp/tmpo6o2mhi9/tmpejcxq9bh.xml: 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo6o2mhi9/tmpejcxq9bh.xml', '--output', '-', '--header', '--glib-min-required', '3', '--glib-max-allowed', '3.2'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifndef __STDOUT__ 1243s # #define __STDOUT__ 1243s # 1243s # #include 1243s # 1243s # G_BEGIN_DECLS 1243s # 1243s # 1243s # G_END_DECLS 1243s # 1243s # #endif /* __STDOUT__ */ 1243s # Error: 1243s ok 33 __main__.TestCodegen.test_glib_min_required_too_low 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmp1gaxk272 1243s # /tmp/tmp1gaxk272/tmp5zeb9ekc.xml: 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp1gaxk272/tmp5zeb9ekc.xml', '--output', '-', '--body', '--glib-min-required', '2.6'] 1243s # Return code: 1 1243s # Output: 1243s # 1243s # Error: 1243s # ERROR: Invalid --glib-min-required string ‘2.6’: minimum version is 2.30 1243s ok 34 __main__.TestCodegen.test_glib_min_required_with_micro 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmpfthdm6u_ 1243s # /tmp/tmpfthdm6u_/tmpbetomszp.xml: 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfthdm6u_/tmpbetomszp.xml', '--output', '-', '--header', '--glib-min-required', '2.46.2'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifndef __STDOUT__ 1243s # #define __STDOUT__ 1243s # 1243s # #include 1243s # 1243s # G_BEGIN_DECLS 1243s # 1243s # 1243s # G_END_DECLS 1243s # 1243s # #endif /* __STDOUT__ */ 1243s # Error: 1243s ok 35 __main__.TestCodegen.test_help 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmp36jo9fh6 1243s # Running: ['/usr/bin/gdbus-codegen', '--help'] 1243s # Return code: 0 1243s # Output: 1243s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1243s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1243s # [--c-generate-autocleanup {none,objects,all}] 1243s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1243s # [--generate-rst OUTFILES] [--pragma-once] 1243s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1243s # [--glib-min-required VERSION] 1243s # [--glib-max-allowed VERSION] 1243s # [--symbol-decorator SYMBOL_DECORATOR] 1243s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1243s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1243s # [--generate-c-code OUTFILES | --header | --body | 1243s # --interface-info-header | --interface-info-body] 1243s # [--output FILE | --output-directory OUTDIR] 1243s # FILE [FILE ...] 1243s # 1243s # D-Bus code and documentation generator 1243s # 1243s # positional arguments: 1243s # FILE D-Bus introspection XML file 1243s # 1243s # options: 1243s # -h, --help show this help message and exit 1243s # --interface-prefix PREFIX 1243s # String to strip from D-Bus interface names for code 1243s # and docs 1243s # --c-namespace NAMESPACE 1243s # The namespace to use for generated C code 1243s # --c-generate-object-manager 1243s # Generate a GDBusObjectManagerClient subclass when 1243s # generating C code 1243s # --c-generate-autocleanup {none,objects,all} 1243s # Generate autocleanup support 1243s # --generate-docbook OUTFILES 1243s # Generate Docbook in OUTFILES-org.Project.IFace.xml 1243s # --generate-md OUTFILES 1243s # Generate Markdown in OUTFILES-org.Project.IFace.md 1243s # --generate-rst OUTFILES 1243s # Generate reStructuredText in OUTFILES- 1243s # org.Project.IFace.rst 1243s # --pragma-once Use "pragma once" as the inclusion guard 1243s # --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 1243s # Add annotation (may be used several times) 1243s # --glib-min-required VERSION 1243s # Minimum version of GLib to be supported by the 1243s # outputted code (default: 2.30) 1243s # --glib-max-allowed VERSION 1243s # Maximum version of GLib to be used by the outputted 1243s # code (default: current GLib version) 1243s # --symbol-decorator SYMBOL_DECORATOR 1243s # Macro used to decorate a symbol in the outputted 1243s # header, possibly to export symbols 1243s # --symbol-decorator-header SYMBOL_DECORATOR_HEADER 1243s # Additional header required for decorator specified by 1243s # --symbol-decorator 1243s # --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 1243s # Additional define required for decorator specified by 1243s # --symbol-decorator 1243s # --generate-c-code OUTFILES 1243s # Generate C code in OUTFILES.[ch] 1243s # --header Generate C headers 1243s # --body Generate C code 1243s # --interface-info-header 1243s # Generate GDBusInterfaceInfo C header 1243s # --interface-info-body 1243s # Generate GDBusInterfaceInfo C code 1243s # --output FILE Write output into the specified file 1243s # --output-directory OUTDIR 1243s # Location to output generated files 1243s # Error: 1243s ok 36 __main__.TestCodegen.test_indentation_preservation_in_comments 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmp2vcwybv4 1243s # /tmp/tmp2vcwybv4/tmp97r0mt73.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vcwybv4/tmp97r0mt73.xml', '--generate-rst', 'test'] 1243s # Return code: 0 1243s # Output: 1243s # 1243s # Error: 1243s # 1243s # /tmp/tmp2vcwybv4/tmp50u3hfvg.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vcwybv4/tmp50u3hfvg.xml', '--generate-md', 'test'] 1243s # Return code: 0 1243s # Output: 1243s # 1243s # Error: 1243s # 1243s # /tmp/tmp2vcwybv4/tmpuxk2tqoe.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vcwybv4/tmpuxk2tqoe.xml', '--generate-docbook', 'test'] 1243s # Return code: 0 1243s # Output: 1243s # 1243s # Error: 1243s ok 37 __main__.TestCodegen.test_no_args 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmpa_yjm07g 1243s # Running: ['/usr/bin/gdbus-codegen'] 1243s # Return code: 2 1243s # Output: 1243s # 1243s # Error: 1243s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1243s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1243s # [--c-generate-autocleanup {none,objects,all}] 1243s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1243s # [--generate-rst OUTFILES] [--pragma-once] 1243s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1243s # [--glib-min-required VERSION] 1243s # [--glib-max-allowed VERSION] 1243s # [--symbol-decorator SYMBOL_DECORATOR] 1243s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1243s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1243s # [--generate-c-code OUTFILES | --header | --body | 1243s # --interface-info-header | --interface-info-body] 1243s # [--output FILE | --output-directory OUTDIR] 1243s # FILE [FILE ...] 1243s # gdbus-codegen: error: the following arguments are required: FILE 1243s ok 38 __main__.TestCodegen.test_reproducible 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmpq4wpi46l 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpq4wpi46l/tmp67v37vxf1.xml', '/tmp/tmpq4wpi46l/tmp8ky9_9mi2.xml', '--output', '-', '--header'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifndef __STDOUT__ 1243s # #define __STDOUT__ 1243s # 1243s # #include 1243s # 1243s # G_BEGIN_DECLS 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # /* Declarations for com.acme.Coyote */ 1243s # 1243s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1243s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1243s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1243s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1243s # 1243s # struct _ComAcmeCoyote; 1243s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1243s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1243s # 1243s # struct _ComAcmeCoyoteIface 1243s # { 1243s # GTypeInterface parent_iface; 1243s # 1243s # 1243s # 1243s # gboolean (*handle_attack) ( 1243s # ComAcmeCoyote *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # gboolean (*handle_run) ( 1243s # ComAcmeCoyote *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # gboolean (*handle_sleep) ( 1243s # ComAcmeCoyote *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1243s # 1243s # void (*surprised) ( 1243s # ComAcmeCoyote *object); 1243s # 1243s # }; 1243s # 1243s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1243s # 1243s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1243s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1243s # 1243s # 1243s # /* D-Bus method call completion functions: */ 1243s # void com_acme_coyote_complete_run ( 1243s # ComAcmeCoyote *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # void com_acme_coyote_complete_sleep ( 1243s # ComAcmeCoyote *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # void com_acme_coyote_complete_attack ( 1243s # ComAcmeCoyote *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # 1243s # 1243s # /* D-Bus signal emissions functions: */ 1243s # void com_acme_coyote_emit_surprised ( 1243s # ComAcmeCoyote *object); 1243s # 1243s # 1243s # 1243s # /* D-Bus method calls: */ 1243s # void com_acme_coyote_call_run ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean com_acme_coyote_call_run_finish ( 1243s # ComAcmeCoyote *proxy, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean com_acme_coyote_call_run_sync ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void com_acme_coyote_call_sleep ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean com_acme_coyote_call_sleep_finish ( 1243s # ComAcmeCoyote *proxy, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean com_acme_coyote_call_sleep_sync ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void com_acme_coyote_call_attack ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean com_acme_coyote_call_attack_finish ( 1243s # ComAcmeCoyote *proxy, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean com_acme_coyote_call_attack_sync ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # 1243s # 1243s # /* D-Bus property accessors: */ 1243s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1243s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1243s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1243s # 1243s # 1243s # /* ---- */ 1243s # 1243s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1243s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1243s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1243s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1243s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1243s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1243s # 1243s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1243s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1243s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1243s # 1243s # struct _ComAcmeCoyoteProxy 1243s # { 1243s # /*< private >*/ 1243s # GDBusProxy parent_instance; 1243s # ComAcmeCoyoteProxyPrivate *priv; 1243s # }; 1243s # 1243s # struct _ComAcmeCoyoteProxyClass 1243s # { 1243s # GDBusProxyClass parent_class; 1243s # }; 1243s # 1243s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1243s # 1243s # #if GLIB_CHECK_VERSION(2, 44, 0) 1243s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1243s # #endif 1243s # 1243s # void com_acme_coyote_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void com_acme_coyote_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # 1243s # /* ---- */ 1243s # 1243s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1243s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1243s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1243s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1243s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1243s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1243s # 1243s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1243s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1243s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1243s # 1243s # struct _ComAcmeCoyoteSkeleton 1243s # { 1243s # /*< private >*/ 1243s # GDBusInterfaceSkeleton parent_instance; 1243s # ComAcmeCoyoteSkeletonPrivate *priv; 1243s # }; 1243s # 1243s # struct _ComAcmeCoyoteSkeletonClass 1243s # { 1243s # GDBusInterfaceSkeletonClass parent_class; 1243s # }; 1243s # 1243s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1243s # 1243s # #if GLIB_CHECK_VERSION(2, 44, 0) 1243s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1243s # #endif 1243s # 1243s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # /* Declarations for org.project.Bar.Frobnicator */ 1243s # 1243s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1243s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1243s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1243s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1243s # 1243s # struct _OrgProjectBarFrobnicator; 1243s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1243s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1243s # 1243s # struct _OrgProjectBarFrobnicatorIface 1243s # { 1243s # GTypeInterface parent_iface; 1243s # 1243s # gboolean (*handle_random_method) ( 1243s # OrgProjectBarFrobnicator *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # }; 1243s # 1243s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1243s # 1243s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1243s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1243s # 1243s # 1243s # /* D-Bus method call completion functions: */ 1243s # void org_project_bar_frobnicator_complete_random_method ( 1243s # OrgProjectBarFrobnicator *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # 1243s # 1243s # /* D-Bus method calls: */ 1243s # void org_project_bar_frobnicator_call_random_method ( 1243s # OrgProjectBarFrobnicator *proxy, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1243s # OrgProjectBarFrobnicator *proxy, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1243s # OrgProjectBarFrobnicator *proxy, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # 1243s # 1243s # /* ---- */ 1243s # 1243s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1243s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1243s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1243s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1243s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1243s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1243s # 1243s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1243s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1243s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1243s # 1243s # struct _OrgProjectBarFrobnicatorProxy 1243s # { 1243s # /*< private >*/ 1243s # GDBusProxy parent_instance; 1243s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1243s # }; 1243s # 1243s # struct _OrgProjectBarFrobnicatorProxyClass 1243s # { 1243s # GDBusProxyClass parent_class; 1243s # }; 1243s # 1243s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1243s # 1243s # #if GLIB_CHECK_VERSION(2, 44, 0) 1243s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1243s # #endif 1243s # 1243s # void org_project_bar_frobnicator_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # 1243s # /* ---- */ 1243s # 1243s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1243s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1243s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1243s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1243s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1243s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1243s # 1243s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1243s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1243s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1243s # 1243s # struct _OrgProjectBarFrobnicatorSkeleton 1243s # { 1243s # /*< private >*/ 1243s # GDBusInterfaceSkeleton parent_instance; 1243s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1243s # }; 1243s # 1243s # struct _OrgProjectBarFrobnicatorSkeletonClass 1243s # { 1243s # GDBusInterfaceSkeletonClass parent_class; 1243s # }; 1243s # 1243s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1243s # 1243s # #if GLIB_CHECK_VERSION(2, 44, 0) 1243s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1243s # #endif 1243s # 1243s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1243s # 1243s # 1243s # G_END_DECLS 1243s # 1243s # #endif /* __STDOUT__ */ 1243s # Error: 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpq4wpi46l/tmp8ky9_9mi2.xml', '/tmp/tmpq4wpi46l/tmp67v37vxf1.xml', '--output', '-', '--header'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifndef __STDOUT__ 1243s # #define __STDOUT__ 1243s # 1243s # #include 1243s # 1243s # G_BEGIN_DECLS 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # /* Declarations for com.acme.Coyote */ 1243s # 1243s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1243s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1243s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1243s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1243s # 1243s # struct _ComAcmeCoyote; 1243s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1243s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1243s # 1243s # struct _ComAcmeCoyoteIface 1243s # { 1243s # GTypeInterface parent_iface; 1243s # 1243s # 1243s # 1243s # gboolean (*handle_attack) ( 1243s # ComAcmeCoyote *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # gboolean (*handle_run) ( 1243s # ComAcmeCoyote *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # gboolean (*handle_sleep) ( 1243s # ComAcmeCoyote *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1243s # 1243s # void (*surprised) ( 1243s # ComAcmeCoyote *object); 1243s # 1243s # }; 1243s # 1243s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1243s # 1243s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1243s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1243s # 1243s # 1243s # /* D-Bus method call completion functions: */ 1243s # void com_acme_coyote_complete_run ( 1243s # ComAcmeCoyote *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # void com_acme_coyote_complete_sleep ( 1243s # ComAcmeCoyote *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # void com_acme_coyote_complete_attack ( 1243s # ComAcmeCoyote *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # 1243s # 1243s # /* D-Bus signal emissions functions: */ 1243s # void com_acme_coyote_emit_surprised ( 1243s # ComAcmeCoyote *object); 1243s # 1243s # 1243s # 1243s # /* D-Bus method calls: */ 1243s # void com_acme_coyote_call_run ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean com_acme_coyote_call_run_finish ( 1243s # ComAcmeCoyote *proxy, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean com_acme_coyote_call_run_sync ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void com_acme_coyote_call_sleep ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean com_acme_coyote_call_sleep_finish ( 1243s # ComAcmeCoyote *proxy, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean com_acme_coyote_call_sleep_sync ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void com_acme_coyote_call_attack ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean com_acme_coyote_call_attack_finish ( 1243s # ComAcmeCoyote *proxy, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean com_acme_coyote_call_attack_sync ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # 1243s # 1243s # /* D-Bus property accessors: */ 1243s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1243s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1243s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1243s # 1243s # 1243s # /* ---- */ 1243s # 1243s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1243s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1243s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1243s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1243s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1243s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1243s # 1243s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1243s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1243s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1243s # 1243s # struct _ComAcmeCoyoteProxy 1243s # { 1243s # /*< private >*/ 1243s # GDBusProxy parent_instance; 1243s # ComAcmeCoyoteProxyPrivate *priv; 1243s # }; 1243s # 1243s # struct _ComAcmeCoyoteProxyClass 1243s # { 1243s # GDBusProxyClass parent_class; 1243s # }; 1243s # 1243s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1243s # 1243s # #if GLIB_CHECK_VERSION(2, 44, 0) 1243s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1243s # #endif 1243s # 1243s # void com_acme_coyote_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void com_acme_coyote_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # 1243s # /* ---- */ 1243s # 1243s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1243s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1243s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1243s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1243s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1243s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1243s # 1243s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1243s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1243s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1243s # 1243s # struct _ComAcmeCoyoteSkeleton 1243s # { 1243s # /*< private >*/ 1243s # GDBusInterfaceSkeleton parent_instance; 1243s # ComAcmeCoyoteSkeletonPrivate *priv; 1243s # }; 1243s # 1243s # struct _ComAcmeCoyoteSkeletonClass 1243s # { 1243s # GDBusInterfaceSkeletonClass parent_class; 1243s # }; 1243s # 1243s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1243s # 1243s # #if GLIB_CHECK_VERSION(2, 44, 0) 1243s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1243s # #endif 1243s # 1243s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # /* Declarations for org.project.Bar.Frobnicator */ 1243s # 1243s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1243s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1243s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1243s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1243s # 1243s # struct _OrgProjectBarFrobnicator; 1243s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1243s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1243s # 1243s # struct _OrgProjectBarFrobnicatorIface 1243s # { 1243s # GTypeInterface parent_iface; 1243s # 1243s # gboolean (*handle_random_method) ( 1243s # OrgProjectBarFrobnicator *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # }; 1243s # 1243s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1243s # 1243s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1243s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1243s # 1243s # 1243s # /* D-Bus method call completion functions: */ 1243s # void org_project_bar_frobnicator_complete_random_method ( 1243s # OrgProjectBarFrobnicator *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # 1243s # 1243s # /* D-Bus method calls: */ 1243s # void org_project_bar_frobnicator_call_random_method ( 1243s # OrgProjectBarFrobnicator *proxy, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1243s # OrgProjectBarFrobnicator *proxy, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1243s # OrgProjectBarFrobnicator *proxy, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # 1243s # 1243s # /* ---- */ 1243s # 1243s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1243s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1243s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1243s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1243s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1243s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1243s # 1243s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1243s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1243s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1243s # 1243s # struct _OrgProjectBarFrobnicatorProxy 1243s # { 1243s # /*< private >*/ 1243s # GDBusProxy parent_instance; 1243s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1243s # }; 1243s # 1243s # struct _OrgProjectBarFrobnicatorProxyClass 1243s # { 1243s # GDBusProxyClass parent_class; 1243s # }; 1243s # 1243s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1243s # 1243s # #if GLIB_CHECK_VERSION(2, 44, 0) 1243s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1243s # #endif 1243s # 1243s # void org_project_bar_frobnicator_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # 1243s # /* ---- */ 1243s # 1243s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1243s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1243s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1243s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1243s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1243s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1243s # 1243s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1243s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1243s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1243s # 1243s # struct _OrgProjectBarFrobnicatorSkeleton 1243s # { 1243s # /*< private >*/ 1243s # GDBusInterfaceSkeleton parent_instance; 1243s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1243s # }; 1243s # 1243s # struct _OrgProjectBarFrobnicatorSkeletonClass 1243s # { 1243s # GDBusInterfaceSkeletonClass parent_class; 1243s # }; 1243s # 1243s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1243s # 1243s # #if GLIB_CHECK_VERSION(2, 44, 0) 1243s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1243s # #endif 1243s # 1243s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1243s # 1243s # 1243s # G_END_DECLS 1243s # 1243s # #endif /* __STDOUT__ */ 1243s # Error: 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpq4wpi46l/tmp67v37vxf1.xml', '/tmp/tmpq4wpi46l/tmp8ky9_9mi2.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static void 1243s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint G_GNUC_UNUSED, 1243s # void *marshal_data) 1243s # { 1243s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1243s # (void *data1, 1243s # GDBusMethodInvocation *arg_method_invocation, 1243s # void *data2); 1243s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1243s # GCClosure *cc = (GCClosure*) closure; 1243s # void *data1, *data2; 1243s # gboolean v_return; 1243s # 1243s # g_return_if_fail (return_value != NULL); 1243s # g_return_if_fail (n_param_values == 2); 1243s # 1243s # if (G_CCLOSURE_SWAP_DATA (closure)) 1243s # { 1243s # data1 = closure->data; 1243s # data2 = g_value_peek_pointer (param_values + 0); 1243s # } 1243s # else 1243s # { 1243s # data1 = g_value_peek_pointer (param_values + 0); 1243s # data2 = closure->data; 1243s # } 1243s # 1243s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1243s # (marshal_data ? marshal_data : cc->callback); 1243s # 1243s # v_return = 1243s # callback (data1, 1243s # g_marshal_value_peek_object (param_values + 1), 1243s # data2); 1243s # 1243s # g_value_set_boolean (return_value, v_return); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface com.acme.Coyote 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:ComAcmeCoyote 1243s # * @title: ComAcmeCoyote 1243s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1243s # * 1243s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _COM_ACME_COYOTE_SURPRISED, 1243s # }; 1243s # 1243s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1243s # 1243s # /* ---- Introspection data for com.acme.Coyote ---- */ 1243s # 1243s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "Run", 1243s # NULL, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "handle-run", 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "Sleep", 1243s # NULL, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "handle-sleep", 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "Attack", 1243s # NULL, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "handle-attack", 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1243s # { 1243s # &_com_acme_coyote_method_info_run.parent_struct, 1243s # &_com_acme_coyote_method_info_sleep.parent_struct, 1243s # &_com_acme_coyote_method_info_attack.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "Surprised", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "surprised" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1243s # { 1243s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "Mood", 1243s # (gchar *) "s", 1243s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1243s # NULL 1243s # }, 1243s # "mood", 1243s # FALSE, 1243s # TRUE 1243s # }; 1243s # 1243s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1243s # { 1243s # &_com_acme_coyote_property_info_mood.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "com.acme.Coyote", 1243s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1243s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1243s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1243s # NULL 1243s # }, 1243s # "com-acme-coyote", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * com_acme_coyote_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # com_acme_coyote_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1243s # { 1243s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # com_acme_coyote_signal_marshal_surprised ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # com_acme_coyote_method_marshal_run ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # com_acme_coyote_method_marshal_sleep ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # com_acme_coyote_method_marshal_attack ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * ComAcmeCoyote: 1243s # * 1243s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1243s # */ 1243s # 1243s # /** 1243s # * ComAcmeCoyoteIface: 1243s # * @parent_iface: The parent interface. 1243s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1243s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1243s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1243s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1243s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1243s # * 1243s # * Virtual table for the D-Bus interface com.acme.Coyote. 1243s # */ 1243s # 1243s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1243s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1243s # { 1243s # /* GObject signals for incoming D-Bus method calls: */ 1243s # /** 1243s # * ComAcmeCoyote::handle-run: 1243s # * @object: A #ComAcmeCoyote. 1243s # * @invocation: A #GDBusMethodInvocation. 1243s # * 1243s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1243s # * 1243s # * 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. 1243s # * 1243s # * 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. 1243s # */ 1243s # g_signal_new ("handle-run", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1243s # g_signal_accumulator_true_handled, 1243s # NULL, 1243s # com_acme_coyote_method_marshal_run, 1243s # G_TYPE_BOOLEAN, 1243s # 1, 1243s # G_TYPE_DBUS_METHOD_INVOCATION); 1243s # 1243s # /** 1243s # * ComAcmeCoyote::handle-sleep: 1243s # * @object: A #ComAcmeCoyote. 1243s # * @invocation: A #GDBusMethodInvocation. 1243s # * 1243s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1243s # * 1243s # * 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. 1243s # * 1243s # * 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. 1243s # */ 1243s # g_signal_new ("handle-sleep", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1243s # g_signal_accumulator_true_handled, 1243s # NULL, 1243s # com_acme_coyote_method_marshal_sleep, 1243s # G_TYPE_BOOLEAN, 1243s # 1, 1243s # G_TYPE_DBUS_METHOD_INVOCATION); 1243s # 1243s # /** 1243s # * ComAcmeCoyote::handle-attack: 1243s # * @object: A #ComAcmeCoyote. 1243s # * @invocation: A #GDBusMethodInvocation. 1243s # * 1243s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1243s # * 1243s # * 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. 1243s # * 1243s # * 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. 1243s # */ 1243s # g_signal_new ("handle-attack", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1243s # g_signal_accumulator_true_handled, 1243s # NULL, 1243s # com_acme_coyote_method_marshal_attack, 1243s # G_TYPE_BOOLEAN, 1243s # 1, 1243s # G_TYPE_DBUS_METHOD_INVOCATION); 1243s # 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * ComAcmeCoyote::surprised: 1243s # * @object: A #ComAcmeCoyote. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1243s # g_signal_new ("surprised", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1243s # NULL, 1243s # NULL, 1243s # com_acme_coyote_signal_marshal_surprised, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /* GObject properties for D-Bus properties: */ 1243s # /** 1243s # * ComAcmeCoyote:mood: 1243s # * 1243s # * Represents the D-Bus property "Mood". 1243s # * 1243s # * 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. 1243s # */ 1243s # g_object_interface_install_property (iface, 1243s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_get_mood: (skip) 1243s # * @object: A #ComAcmeCoyote. 1243s # * 1243s # * Gets the value of the "Mood" D-Bus property. 1243s # * 1243s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1243s # * 1243s # * 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. 1243s # * 1243s # * 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. 1243s # */ 1243s # const gchar * 1243s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1243s # { 1243s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1243s # 1243s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_dup_mood: (skip) 1243s # * @object: A #ComAcmeCoyote. 1243s # * 1243s # * Gets a copy of the "Mood" D-Bus property. 1243s # * 1243s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1243s # * 1243s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1243s # */ 1243s # gchar * 1243s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1243s # { 1243s # gchar *value; 1243s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1243s # return value; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_set_mood: (skip) 1243s # * @object: A #ComAcmeCoyote. 1243s # * @value: The value to set. 1243s # * 1243s # * Sets the "Mood" D-Bus property to @value. 1243s # * 1243s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1243s # */ 1243s # void 1243s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1243s # { 1243s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_emit_surprised: 1243s # * @object: A #ComAcmeCoyote. 1243s # * 1243s # * Emits the "Surprised" D-Bus signal. 1243s # */ 1243s # void 1243s # com_acme_coyote_emit_surprised ( 1243s # ComAcmeCoyote *object) 1243s # { 1243s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_run: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1243s # * 1243s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1243s # */ 1243s # void 1243s # com_acme_coyote_call_run ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1243s # "Run", 1243s # g_variant_new ("()"), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # cancellable, 1243s # callback, 1243s # user_data); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_run_finish: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1243s # * @error: Return location for error or %NULL. 1243s # * 1243s # * Finishes an operation started with com_acme_coyote_call_run(). 1243s # * 1243s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1243s # */ 1243s # gboolean 1243s # com_acme_coyote_call_run_finish ( 1243s # ComAcmeCoyote *proxy, 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GVariant *_ret; 1243s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1243s # if (_ret == NULL) 1243s # goto _out; 1243s # g_variant_get (_ret, 1243s # "()"); 1243s # g_variant_unref (_ret); 1243s # _out: 1243s # return _ret != NULL; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_run_sync: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL. 1243s # * 1243s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1243s # * 1243s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1243s # * 1243s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1243s # */ 1243s # gboolean 1243s # com_acme_coyote_call_run_sync ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GVariant *_ret; 1243s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1243s # "Run", 1243s # g_variant_new ("()"), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # cancellable, 1243s # error); 1243s # if (_ret == NULL) 1243s # goto _out; 1243s # g_variant_get (_ret, 1243s # "()"); 1243s # g_variant_unref (_ret); 1243s # _out: 1243s # return _ret != NULL; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_sleep: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1243s # * 1243s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1243s # */ 1243s # void 1243s # com_acme_coyote_call_sleep ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1243s # "Sleep", 1243s # g_variant_new ("()"), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # cancellable, 1243s # callback, 1243s # user_data); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_sleep_finish: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1243s # * @error: Return location for error or %NULL. 1243s # * 1243s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1243s # * 1243s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1243s # */ 1243s # gboolean 1243s # com_acme_coyote_call_sleep_finish ( 1243s # ComAcmeCoyote *proxy, 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GVariant *_ret; 1243s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1243s # if (_ret == NULL) 1243s # goto _out; 1243s # g_variant_get (_ret, 1243s # "()"); 1243s # g_variant_unref (_ret); 1243s # _out: 1243s # return _ret != NULL; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_sleep_sync: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL. 1243s # * 1243s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1243s # * 1243s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1243s # * 1243s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1243s # */ 1243s # gboolean 1243s # com_acme_coyote_call_sleep_sync ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GVariant *_ret; 1243s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1243s # "Sleep", 1243s # g_variant_new ("()"), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # cancellable, 1243s # error); 1243s # if (_ret == NULL) 1243s # goto _out; 1243s # g_variant_get (_ret, 1243s # "()"); 1243s # g_variant_unref (_ret); 1243s # _out: 1243s # return _ret != NULL; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_attack: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1243s # * 1243s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1243s # */ 1243s # void 1243s # com_acme_coyote_call_attack ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1243s # "Attack", 1243s # g_variant_new ("()"), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # cancellable, 1243s # callback, 1243s # user_data); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_attack_finish: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1243s # * @error: Return location for error or %NULL. 1243s # * 1243s # * Finishes an operation started with com_acme_coyote_call_attack(). 1243s # * 1243s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1243s # */ 1243s # gboolean 1243s # com_acme_coyote_call_attack_finish ( 1243s # ComAcmeCoyote *proxy, 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GVariant *_ret; 1243s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1243s # if (_ret == NULL) 1243s # goto _out; 1243s # g_variant_get (_ret, 1243s # "()"); 1243s # g_variant_unref (_ret); 1243s # _out: 1243s # return _ret != NULL; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_attack_sync: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL. 1243s # * 1243s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1243s # * 1243s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1243s # * 1243s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1243s # */ 1243s # gboolean 1243s # com_acme_coyote_call_attack_sync ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GVariant *_ret; 1243s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1243s # "Attack", 1243s # g_variant_new ("()"), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # cancellable, 1243s # error); 1243s # if (_ret == NULL) 1243s # goto _out; 1243s # g_variant_get (_ret, 1243s # "()"); 1243s # g_variant_unref (_ret); 1243s # _out: 1243s # return _ret != NULL; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_complete_run: 1243s # * @object: A #ComAcmeCoyote. 1243s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1243s # * 1243s # * 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. 1243s # * 1243s # * This method will free @invocation, you cannot use it afterwards. 1243s # */ 1243s # void 1243s # com_acme_coyote_complete_run ( 1243s # ComAcmeCoyote *object G_GNUC_UNUSED, 1243s # GDBusMethodInvocation *invocation) 1243s # { 1243s # g_dbus_method_invocation_return_value (invocation, 1243s # g_variant_new ("()")); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_complete_sleep: 1243s # * @object: A #ComAcmeCoyote. 1243s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1243s # * 1243s # * 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. 1243s # * 1243s # * This method will free @invocation, you cannot use it afterwards. 1243s # */ 1243s # void 1243s # com_acme_coyote_complete_sleep ( 1243s # ComAcmeCoyote *object G_GNUC_UNUSED, 1243s # GDBusMethodInvocation *invocation) 1243s # { 1243s # g_dbus_method_invocation_return_value (invocation, 1243s # g_variant_new ("()")); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_complete_attack: 1243s # * @object: A #ComAcmeCoyote. 1243s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1243s # * 1243s # * 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. 1243s # * 1243s # * This method will free @invocation, you cannot use it afterwards. 1243s # */ 1243s # void 1243s # com_acme_coyote_complete_attack ( 1243s # ComAcmeCoyote *object G_GNUC_UNUSED, 1243s # GDBusMethodInvocation *invocation) 1243s # { 1243s # g_dbus_method_invocation_return_value (invocation, 1243s # g_variant_new ("()")); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * ComAcmeCoyoteProxy: 1243s # * 1243s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * ComAcmeCoyoteProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #ComAcmeCoyoteProxy. 1243s # */ 1243s # 1243s # struct _ComAcmeCoyoteProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # com_acme_coyote_proxy_finalize (GObject *object) 1243s # { 1243s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_proxy_get_property (GObject *object, 1243s # guint prop_id, 1243s # GValue *value, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *variant; 1243s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1243s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1243s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1243s # if (info->use_gvariant) 1243s # { 1243s # g_value_set_variant (value, variant); 1243s # } 1243s # else 1243s # { 1243s # if (variant != NULL) 1243s # g_dbus_gvariant_to_gvalue (variant, value); 1243s # } 1243s # if (variant != NULL) 1243s # g_variant_unref (variant); 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1243s # GAsyncResult *res, 1243s # gpointer user_data) 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info = user_data; 1243s # GError *error; 1243s # GVariant *_ret; 1243s # error = NULL; 1243s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1243s # if (!_ret) 1243s # { 1243s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1243s # info->parent_struct.name, 1243s # error->message, g_quark_to_string (error->domain), error->code); 1243s # g_error_free (error); 1243s # } 1243s # else 1243s # { 1243s # g_variant_unref (_ret); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_proxy_set_property (GObject *object, 1243s # guint prop_id, 1243s # const GValue *value, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *variant; 1243s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1243s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1243s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1243s # "org.freedesktop.DBus.Properties.Set", 1243s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1243s # g_variant_unref (variant); 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static const gchar * 1243s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1243s # { 1243s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1243s # GVariant *variant; 1243s # const gchar *value = NULL; 1243s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1243s # if (variant != NULL) 1243s # { 1243s # value = g_variant_get_string (variant, NULL); 1243s # g_variant_unref (variant); 1243s # } 1243s # return value; 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1243s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1243s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1243s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1243s # 1243s # com_acme_coyote_override_properties (gobject_class, 1); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1243s # { 1243s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # com_acme_coyote_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # ComAcmeCoyote * 1243s # com_acme_coyote_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return COM_ACME_COYOTE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # ComAcmeCoyote * 1243s # com_acme_coyote_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return COM_ACME_COYOTE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * com_acme_coyote_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # com_acme_coyote_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # ComAcmeCoyote * 1243s # com_acme_coyote_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return COM_ACME_COYOTE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # ComAcmeCoyote * 1243s # com_acme_coyote_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return COM_ACME_COYOTE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * ComAcmeCoyoteSkeleton: 1243s # * 1243s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * ComAcmeCoyoteSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #ComAcmeCoyoteSkeleton. 1243s # */ 1243s # 1243s # struct _ComAcmeCoyoteSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _com_acme_coyote_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _com_acme_coyote_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _com_acme_coyote_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1243s # { 1243s # _com_acme_coyote_skeleton_handle_method_call, 1243s # _com_acme_coyote_skeleton_handle_get_property, 1243s # _com_acme_coyote_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return com_acme_coyote_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1243s # 1243s # static void 1243s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1243s # gboolean emit_changed = FALSE; 1243s # 1243s # g_mutex_lock (&skeleton->priv->lock); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # { 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # skeleton->priv->changed_properties_idle_source = NULL; 1243s # emit_changed = TRUE; 1243s # } 1243s # g_mutex_unlock (&skeleton->priv->lock); 1243s # 1243s # if (emit_changed) 1243s # _com_acme_coyote_emit_changed (skeleton); 1243s # } 1243s # 1243s # static void 1243s # _com_acme_coyote_on_signal_surprised ( 1243s # ComAcmeCoyote *object) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # com_acme_coyote_skeleton_finalize (GObject *object) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1243s # guint n; 1243s # for (n = 0; n < 1; n++) 1243s # g_value_unset (&skeleton->priv->properties[n]); 1243s # g_free (skeleton->priv->properties); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_skeleton_get_property (GObject *object, 1243s # guint prop_id, 1243s # GValue *value, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1243s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1243s # g_mutex_lock (&skeleton->priv->lock); 1243s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1243s # g_mutex_unlock (&skeleton->priv->lock); 1243s # } 1243s # 1243s # static gboolean 1243s # _com_acme_coyote_emit_changed (gpointer user_data) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1243s # GList *l; 1243s # GVariantBuilder builder; 1243s # GVariantBuilder invalidated_builder; 1243s # guint num_changes; 1243s # 1243s # g_mutex_lock (&skeleton->priv->lock); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1243s # #else 1243s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1243s # #endif 1243s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1243s # { 1243s # ChangedProperty *cp = l->data; 1243s # GVariant *variant; 1243s # const GValue *cur_value; 1243s # 1243s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1243s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1243s # { 1243s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1243s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1243s # g_variant_unref (variant); 1243s # num_changes++; 1243s # } 1243s # } 1243s # if (num_changes > 0) 1243s # { 1243s # GList *connections, *ll; 1243s # GVariant *signal_variant; 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1243s # &builder, &invalidated_builder)); 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # for (ll = connections; ll != NULL; ll = ll->next) 1243s # { 1243s # GDBusConnection *connection = ll->data; 1243s # 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1243s # "org.freedesktop.DBus.Properties", 1243s # "PropertiesChanged", 1243s # signal_variant, 1243s # NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # else 1243s # { 1243s # g_variant_builder_clear (&builder); 1243s # g_variant_builder_clear (&invalidated_builder); 1243s # } 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # skeleton->priv->changed_properties = NULL; 1243s # skeleton->priv->changed_properties_idle_source = NULL; 1243s # g_mutex_unlock (&skeleton->priv->lock); 1243s # return FALSE; 1243s # } 1243s # 1243s # static void 1243s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1243s # { 1243s # ChangedProperty *cp; 1243s # GList *l; 1243s # cp = NULL; 1243s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1243s # { 1243s # ChangedProperty *i_cp = l->data; 1243s # if (i_cp->info == info) 1243s # { 1243s # cp = i_cp; 1243s # break; 1243s # } 1243s # } 1243s # if (cp == NULL) 1243s # { 1243s # cp = g_new0 (ChangedProperty, 1); 1243s # cp->prop_id = prop_id; 1243s # cp->info = info; 1243s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1243s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1243s # g_value_copy (orig_value, &cp->orig_value); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_skeleton_notify (GObject *object, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1243s # g_mutex_lock (&skeleton->priv->lock); 1243s # if (skeleton->priv->changed_properties != NULL && 1243s # skeleton->priv->changed_properties_idle_source == NULL) 1243s # { 1243s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1243s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1243s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1243s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1243s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1243s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1243s # } 1243s # g_mutex_unlock (&skeleton->priv->lock); 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_skeleton_set_property (GObject *object, 1243s # guint prop_id, 1243s # const GValue *value, 1243s # GParamSpec *pspec) 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1243s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1243s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1243s # g_mutex_lock (&skeleton->priv->lock); 1243s # g_object_freeze_notify (object); 1243s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1243s # { 1243s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1243s # info->emits_changed_signal) 1243s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1243s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1243s # g_object_notify_by_pspec (object, pspec); 1243s # } 1243s # g_mutex_unlock (&skeleton->priv->lock); 1243s # g_object_thaw_notify (object); 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # skeleton->priv->properties = g_new0 (GValue, 1); 1243s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1243s # } 1243s # 1243s # static const gchar * 1243s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1243s # const gchar *value; 1243s # g_mutex_lock (&skeleton->priv->lock); 1243s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1243s # g_mutex_unlock (&skeleton->priv->lock); 1243s # return value; 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1243s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1243s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1243s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1243s # 1243s # 1243s # com_acme_coyote_override_properties (gobject_class, 1); 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1243s # { 1243s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1243s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1243s # * 1243s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1243s # */ 1243s # ComAcmeCoyote * 1243s # com_acme_coyote_skeleton_new (void) 1243s # { 1243s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.Bar.Frobnicator 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectBarFrobnicator 1243s # * @title: OrgProjectBarFrobnicator 1243s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1243s # */ 1243s # 1243s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1243s # 1243s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "RandomMethod", 1243s # NULL, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "handle-random-method", 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1243s # { 1243s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.Bar.Frobnicator", 1243s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1243s # NULL, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-bar-frobnicator", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_bar_frobnicator_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_bar_frobnicator_method_marshal_random_method ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectBarFrobnicator: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectBarFrobnicatorIface: 1243s # * @parent_iface: The parent interface. 1243s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1243s # */ 1243s # 1243s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1243s # { 1243s # /* GObject signals for incoming D-Bus method calls: */ 1243s # /** 1243s # * OrgProjectBarFrobnicator::handle-random-method: 1243s # * @object: A #OrgProjectBarFrobnicator. 1243s # * @invocation: A #GDBusMethodInvocation. 1243s # * 1243s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1243s # * 1243s # * 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. 1243s # * 1243s # * 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. 1243s # */ 1243s # g_signal_new ("handle-random-method", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1243s # g_signal_accumulator_true_handled, 1243s # NULL, 1243s # org_project_bar_frobnicator_method_marshal_random_method, 1243s # G_TYPE_BOOLEAN, 1243s # 1, 1243s # G_TYPE_DBUS_METHOD_INVOCATION); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_call_random_method: 1243s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1243s # */ 1243s # void 1243s # org_project_bar_frobnicator_call_random_method ( 1243s # OrgProjectBarFrobnicator *proxy, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1243s # "RandomMethod", 1243s # g_variant_new ("()"), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # cancellable, 1243s # callback, 1243s # user_data); 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_call_random_method_finish: 1243s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1243s # * @error: Return location for error or %NULL. 1243s # * 1243s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1243s # * 1243s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1243s # */ 1243s # gboolean 1243s # org_project_bar_frobnicator_call_random_method_finish ( 1243s # OrgProjectBarFrobnicator *proxy, 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GVariant *_ret; 1243s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1243s # if (_ret == NULL) 1243s # goto _out; 1243s # g_variant_get (_ret, 1243s # "()"); 1243s # g_variant_unref (_ret); 1243s # _out: 1243s # return _ret != NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_call_random_method_sync: 1243s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL. 1243s # * 1243s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1243s # * 1243s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1243s # */ 1243s # gboolean 1243s # org_project_bar_frobnicator_call_random_method_sync ( 1243s # OrgProjectBarFrobnicator *proxy, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GVariant *_ret; 1243s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1243s # "RandomMethod", 1243s # g_variant_new ("()"), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # cancellable, 1243s # error); 1243s # if (_ret == NULL) 1243s # goto _out; 1243s # g_variant_get (_ret, 1243s # "()"); 1243s # g_variant_unref (_ret); 1243s # _out: 1243s # return _ret != NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_complete_random_method: 1243s # * @object: A #OrgProjectBarFrobnicator. 1243s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1243s # * 1243s # * 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. 1243s # * 1243s # * This method will free @invocation, you cannot use it afterwards. 1243s # */ 1243s # void 1243s # org_project_bar_frobnicator_complete_random_method ( 1243s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1243s # GDBusMethodInvocation *invocation) 1243s # { 1243s # g_dbus_method_invocation_return_value (invocation, 1243s # g_variant_new ("()")); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectBarFrobnicatorProxy: 1243s # * 1243s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectBarFrobnicatorProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectBarFrobnicatorProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1243s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1243s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_bar_frobnicator_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectBarFrobnicator * 1243s # org_project_bar_frobnicator_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectBarFrobnicator * 1243s # org_project_bar_frobnicator_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_bar_frobnicator_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectBarFrobnicator * 1243s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectBarFrobnicator * 1243s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectBarFrobnicatorSkeleton: 1243s # * 1243s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectBarFrobnicatorSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1243s # { 1243s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1243s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1243s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_bar_frobnicator_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectBarFrobnicator * 1243s # org_project_bar_frobnicator_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpq4wpi46l/tmp8ky9_9mi2.xml', '/tmp/tmpq4wpi46l/tmp67v37vxf1.xml', '--output', '-', '--body'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifdef HAVE_CONFIG_H 1243s # # include "config.h" 1243s # #endif 1243s # 1243s # #include 1243s # #ifdef G_OS_UNIX 1243s # # include 1243s # #endif 1243s # 1243s # #ifdef G_ENABLE_DEBUG 1243s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1243s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1243s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1243s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1243s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1243s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1243s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1243s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1243s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1243s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1243s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1243s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1243s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1243s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1243s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1243s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1243s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1243s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1243s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1243s # #else /* !G_ENABLE_DEBUG */ 1243s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1243s # * Do not access GValues directly in your code. Instead, use the 1243s # * g_value_get_*() functions 1243s # */ 1243s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1243s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1243s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1243s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1243s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1243s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1243s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1243s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1243s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1243s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1243s # #endif /* !G_ENABLE_DEBUG */ 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusArgInfo parent_struct; 1243s # gboolean use_gvariant; 1243s # } _ExtendedGDBusArgInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusMethodInfo parent_struct; 1243s # const gchar *signal_name; 1243s # gboolean pass_fdlist; 1243s # } _ExtendedGDBusMethodInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusSignalInfo parent_struct; 1243s # const gchar *signal_name; 1243s # } _ExtendedGDBusSignalInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusPropertyInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # guint use_gvariant : 1; 1243s # guint emits_changed_signal : 1; 1243s # } _ExtendedGDBusPropertyInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # GDBusInterfaceInfo parent_struct; 1243s # const gchar *hyphen_name; 1243s # } _ExtendedGDBusInterfaceInfo; 1243s # 1243s # typedef struct 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # guint prop_id; 1243s # GValue orig_value; /* the value before the change */ 1243s # } ChangedProperty; 1243s # 1243s # static void 1243s # _changed_property_free (ChangedProperty *data) 1243s # { 1243s # g_value_unset (&data->orig_value); 1243s # g_free (data); 1243s # } 1243s # 1243s # static gboolean 1243s # _g_strv_equal0 (gchar **a, gchar **b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # guint n; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # if (g_strv_length (a) != g_strv_length (b)) 1243s # goto out; 1243s # for (n = 0; a[n] != NULL; n++) 1243s # if (g_strcmp0 (a[n], b[n]) != 0) 1243s # goto out; 1243s # ret = TRUE; 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _g_variant_equal0 (GVariant *a, GVariant *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # if (a == NULL && b == NULL) 1243s # { 1243s # ret = TRUE; 1243s # goto out; 1243s # } 1243s # if (a == NULL || b == NULL) 1243s # goto out; 1243s # ret = g_variant_equal (a, b); 1243s # out: 1243s # return ret; 1243s # } 1243s # 1243s # G_GNUC_UNUSED static gboolean 1243s # _g_value_equal (const GValue *a, const GValue *b) 1243s # { 1243s # gboolean ret = FALSE; 1243s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1243s # switch (G_VALUE_TYPE (a)) 1243s # { 1243s # case G_TYPE_BOOLEAN: 1243s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1243s # break; 1243s # case G_TYPE_UCHAR: 1243s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1243s # break; 1243s # case G_TYPE_INT: 1243s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1243s # break; 1243s # case G_TYPE_UINT: 1243s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1243s # break; 1243s # case G_TYPE_INT64: 1243s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1243s # break; 1243s # case G_TYPE_UINT64: 1243s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1243s # break; 1243s # case G_TYPE_DOUBLE: 1243s # { 1243s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1243s # gdouble da = g_value_get_double (a); 1243s # gdouble db = g_value_get_double (b); 1243s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1243s # } 1243s # break; 1243s # case G_TYPE_STRING: 1243s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1243s # break; 1243s # case G_TYPE_VARIANT: 1243s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1243s # break; 1243s # default: 1243s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1243s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1243s # else 1243s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1243s # break; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static void 1243s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint G_GNUC_UNUSED, 1243s # void *marshal_data) 1243s # { 1243s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1243s # (void *data1, 1243s # GDBusMethodInvocation *arg_method_invocation, 1243s # void *data2); 1243s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1243s # GCClosure *cc = (GCClosure*) closure; 1243s # void *data1, *data2; 1243s # gboolean v_return; 1243s # 1243s # g_return_if_fail (return_value != NULL); 1243s # g_return_if_fail (n_param_values == 2); 1243s # 1243s # if (G_CCLOSURE_SWAP_DATA (closure)) 1243s # { 1243s # data1 = closure->data; 1243s # data2 = g_value_peek_pointer (param_values + 0); 1243s # } 1243s # else 1243s # { 1243s # data1 = g_value_peek_pointer (param_values + 0); 1243s # data2 = closure->data; 1243s # } 1243s # 1243s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1243s # (marshal_data ? marshal_data : cc->callback); 1243s # 1243s # v_return = 1243s # callback (data1, 1243s # g_marshal_value_peek_object (param_values + 1), 1243s # data2); 1243s # 1243s # g_value_set_boolean (return_value, v_return); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface com.acme.Coyote 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:ComAcmeCoyote 1243s # * @title: ComAcmeCoyote 1243s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1243s # * 1243s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1243s # */ 1243s # 1243s # enum 1243s # { 1243s # _COM_ACME_COYOTE_SURPRISED, 1243s # }; 1243s # 1243s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1243s # 1243s # /* ---- Introspection data for com.acme.Coyote ---- */ 1243s # 1243s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "Run", 1243s # NULL, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "handle-run", 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "Sleep", 1243s # NULL, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "handle-sleep", 1243s # FALSE 1243s # }; 1243s # 1243s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "Attack", 1243s # NULL, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "handle-attack", 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1243s # { 1243s # &_com_acme_coyote_method_info_run.parent_struct, 1243s # &_com_acme_coyote_method_info_sleep.parent_struct, 1243s # &_com_acme_coyote_method_info_attack.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "Surprised", 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "surprised" 1243s # }; 1243s # 1243s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1243s # { 1243s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "Mood", 1243s # (gchar *) "s", 1243s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1243s # NULL 1243s # }, 1243s # "mood", 1243s # FALSE, 1243s # TRUE 1243s # }; 1243s # 1243s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1243s # { 1243s # &_com_acme_coyote_property_info_mood.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "com.acme.Coyote", 1243s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1243s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1243s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1243s # NULL 1243s # }, 1243s # "com-acme-coyote", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * com_acme_coyote_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # com_acme_coyote_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1243s # { 1243s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # com_acme_coyote_signal_marshal_surprised ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # g_cclosure_marshal_VOID__VOID (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # com_acme_coyote_method_marshal_run ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # com_acme_coyote_method_marshal_sleep ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # inline static void 1243s # com_acme_coyote_method_marshal_attack ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * ComAcmeCoyote: 1243s # * 1243s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1243s # */ 1243s # 1243s # /** 1243s # * ComAcmeCoyoteIface: 1243s # * @parent_iface: The parent interface. 1243s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1243s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1243s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1243s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1243s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1243s # * 1243s # * Virtual table for the D-Bus interface com.acme.Coyote. 1243s # */ 1243s # 1243s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1243s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1243s # { 1243s # /* GObject signals for incoming D-Bus method calls: */ 1243s # /** 1243s # * ComAcmeCoyote::handle-run: 1243s # * @object: A #ComAcmeCoyote. 1243s # * @invocation: A #GDBusMethodInvocation. 1243s # * 1243s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1243s # * 1243s # * 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. 1243s # * 1243s # * 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. 1243s # */ 1243s # g_signal_new ("handle-run", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1243s # g_signal_accumulator_true_handled, 1243s # NULL, 1243s # com_acme_coyote_method_marshal_run, 1243s # G_TYPE_BOOLEAN, 1243s # 1, 1243s # G_TYPE_DBUS_METHOD_INVOCATION); 1243s # 1243s # /** 1243s # * ComAcmeCoyote::handle-sleep: 1243s # * @object: A #ComAcmeCoyote. 1243s # * @invocation: A #GDBusMethodInvocation. 1243s # * 1243s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1243s # * 1243s # * 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. 1243s # * 1243s # * 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. 1243s # */ 1243s # g_signal_new ("handle-sleep", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1243s # g_signal_accumulator_true_handled, 1243s # NULL, 1243s # com_acme_coyote_method_marshal_sleep, 1243s # G_TYPE_BOOLEAN, 1243s # 1, 1243s # G_TYPE_DBUS_METHOD_INVOCATION); 1243s # 1243s # /** 1243s # * ComAcmeCoyote::handle-attack: 1243s # * @object: A #ComAcmeCoyote. 1243s # * @invocation: A #GDBusMethodInvocation. 1243s # * 1243s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1243s # * 1243s # * 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. 1243s # * 1243s # * 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. 1243s # */ 1243s # g_signal_new ("handle-attack", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1243s # g_signal_accumulator_true_handled, 1243s # NULL, 1243s # com_acme_coyote_method_marshal_attack, 1243s # G_TYPE_BOOLEAN, 1243s # 1, 1243s # G_TYPE_DBUS_METHOD_INVOCATION); 1243s # 1243s # /* GObject signals for received D-Bus signals: */ 1243s # /** 1243s # * ComAcmeCoyote::surprised: 1243s # * @object: A #ComAcmeCoyote. 1243s # * 1243s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1243s # * 1243s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1243s # */ 1243s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1243s # g_signal_new ("surprised", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1243s # NULL, 1243s # NULL, 1243s # com_acme_coyote_signal_marshal_surprised, 1243s # G_TYPE_NONE, 1243s # 0); 1243s # 1243s # /* GObject properties for D-Bus properties: */ 1243s # /** 1243s # * ComAcmeCoyote:mood: 1243s # * 1243s # * Represents the D-Bus property "Mood". 1243s # * 1243s # * 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. 1243s # */ 1243s # g_object_interface_install_property (iface, 1243s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_get_mood: (skip) 1243s # * @object: A #ComAcmeCoyote. 1243s # * 1243s # * Gets the value of the "Mood" D-Bus property. 1243s # * 1243s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1243s # * 1243s # * 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. 1243s # * 1243s # * 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. 1243s # */ 1243s # const gchar * 1243s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1243s # { 1243s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1243s # 1243s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_dup_mood: (skip) 1243s # * @object: A #ComAcmeCoyote. 1243s # * 1243s # * Gets a copy of the "Mood" D-Bus property. 1243s # * 1243s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1243s # * 1243s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1243s # */ 1243s # gchar * 1243s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1243s # { 1243s # gchar *value; 1243s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1243s # return value; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_set_mood: (skip) 1243s # * @object: A #ComAcmeCoyote. 1243s # * @value: The value to set. 1243s # * 1243s # * Sets the "Mood" D-Bus property to @value. 1243s # * 1243s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1243s # */ 1243s # void 1243s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1243s # { 1243s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_emit_surprised: 1243s # * @object: A #ComAcmeCoyote. 1243s # * 1243s # * Emits the "Surprised" D-Bus signal. 1243s # */ 1243s # void 1243s # com_acme_coyote_emit_surprised ( 1243s # ComAcmeCoyote *object) 1243s # { 1243s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_run: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1243s # * 1243s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1243s # */ 1243s # void 1243s # com_acme_coyote_call_run ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1243s # "Run", 1243s # g_variant_new ("()"), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # cancellable, 1243s # callback, 1243s # user_data); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_run_finish: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1243s # * @error: Return location for error or %NULL. 1243s # * 1243s # * Finishes an operation started with com_acme_coyote_call_run(). 1243s # * 1243s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1243s # */ 1243s # gboolean 1243s # com_acme_coyote_call_run_finish ( 1243s # ComAcmeCoyote *proxy, 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GVariant *_ret; 1243s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1243s # if (_ret == NULL) 1243s # goto _out; 1243s # g_variant_get (_ret, 1243s # "()"); 1243s # g_variant_unref (_ret); 1243s # _out: 1243s # return _ret != NULL; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_run_sync: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL. 1243s # * 1243s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1243s # * 1243s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1243s # * 1243s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1243s # */ 1243s # gboolean 1243s # com_acme_coyote_call_run_sync ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GVariant *_ret; 1243s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1243s # "Run", 1243s # g_variant_new ("()"), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # cancellable, 1243s # error); 1243s # if (_ret == NULL) 1243s # goto _out; 1243s # g_variant_get (_ret, 1243s # "()"); 1243s # g_variant_unref (_ret); 1243s # _out: 1243s # return _ret != NULL; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_sleep: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1243s # * 1243s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1243s # */ 1243s # void 1243s # com_acme_coyote_call_sleep ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1243s # "Sleep", 1243s # g_variant_new ("()"), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # cancellable, 1243s # callback, 1243s # user_data); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_sleep_finish: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1243s # * @error: Return location for error or %NULL. 1243s # * 1243s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1243s # * 1243s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1243s # */ 1243s # gboolean 1243s # com_acme_coyote_call_sleep_finish ( 1243s # ComAcmeCoyote *proxy, 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GVariant *_ret; 1243s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1243s # if (_ret == NULL) 1243s # goto _out; 1243s # g_variant_get (_ret, 1243s # "()"); 1243s # g_variant_unref (_ret); 1243s # _out: 1243s # return _ret != NULL; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_sleep_sync: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL. 1243s # * 1243s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1243s # * 1243s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1243s # * 1243s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1243s # */ 1243s # gboolean 1243s # com_acme_coyote_call_sleep_sync ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GVariant *_ret; 1243s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1243s # "Sleep", 1243s # g_variant_new ("()"), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # cancellable, 1243s # error); 1243s # if (_ret == NULL) 1243s # goto _out; 1243s # g_variant_get (_ret, 1243s # "()"); 1243s # g_variant_unref (_ret); 1243s # _out: 1243s # return _ret != NULL; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_attack: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1243s # * 1243s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1243s # */ 1243s # void 1243s # com_acme_coyote_call_attack ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1243s # "Attack", 1243s # g_variant_new ("()"), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # cancellable, 1243s # callback, 1243s # user_data); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_attack_finish: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1243s # * @error: Return location for error or %NULL. 1243s # * 1243s # * Finishes an operation started with com_acme_coyote_call_attack(). 1243s # * 1243s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1243s # */ 1243s # gboolean 1243s # com_acme_coyote_call_attack_finish ( 1243s # ComAcmeCoyote *proxy, 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GVariant *_ret; 1243s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1243s # if (_ret == NULL) 1243s # goto _out; 1243s # g_variant_get (_ret, 1243s # "()"); 1243s # g_variant_unref (_ret); 1243s # _out: 1243s # return _ret != NULL; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_call_attack_sync: 1243s # * @proxy: A #ComAcmeCoyoteProxy. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL. 1243s # * 1243s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1243s # * 1243s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1243s # * 1243s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1243s # */ 1243s # gboolean 1243s # com_acme_coyote_call_attack_sync ( 1243s # ComAcmeCoyote *proxy, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GVariant *_ret; 1243s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1243s # "Attack", 1243s # g_variant_new ("()"), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # cancellable, 1243s # error); 1243s # if (_ret == NULL) 1243s # goto _out; 1243s # g_variant_get (_ret, 1243s # "()"); 1243s # g_variant_unref (_ret); 1243s # _out: 1243s # return _ret != NULL; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_complete_run: 1243s # * @object: A #ComAcmeCoyote. 1243s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1243s # * 1243s # * 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. 1243s # * 1243s # * This method will free @invocation, you cannot use it afterwards. 1243s # */ 1243s # void 1243s # com_acme_coyote_complete_run ( 1243s # ComAcmeCoyote *object G_GNUC_UNUSED, 1243s # GDBusMethodInvocation *invocation) 1243s # { 1243s # g_dbus_method_invocation_return_value (invocation, 1243s # g_variant_new ("()")); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_complete_sleep: 1243s # * @object: A #ComAcmeCoyote. 1243s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1243s # * 1243s # * 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. 1243s # * 1243s # * This method will free @invocation, you cannot use it afterwards. 1243s # */ 1243s # void 1243s # com_acme_coyote_complete_sleep ( 1243s # ComAcmeCoyote *object G_GNUC_UNUSED, 1243s # GDBusMethodInvocation *invocation) 1243s # { 1243s # g_dbus_method_invocation_return_value (invocation, 1243s # g_variant_new ("()")); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_complete_attack: 1243s # * @object: A #ComAcmeCoyote. 1243s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1243s # * 1243s # * 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. 1243s # * 1243s # * This method will free @invocation, you cannot use it afterwards. 1243s # */ 1243s # void 1243s # com_acme_coyote_complete_attack ( 1243s # ComAcmeCoyote *object G_GNUC_UNUSED, 1243s # GDBusMethodInvocation *invocation) 1243s # { 1243s # g_dbus_method_invocation_return_value (invocation, 1243s # g_variant_new ("()")); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * ComAcmeCoyoteProxy: 1243s # * 1243s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * ComAcmeCoyoteProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #ComAcmeCoyoteProxy. 1243s # */ 1243s # 1243s # struct _ComAcmeCoyoteProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # com_acme_coyote_proxy_finalize (GObject *object) 1243s # { 1243s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_proxy_get_property (GObject *object, 1243s # guint prop_id, 1243s # GValue *value, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *variant; 1243s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1243s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1243s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1243s # if (info->use_gvariant) 1243s # { 1243s # g_value_set_variant (value, variant); 1243s # } 1243s # else 1243s # { 1243s # if (variant != NULL) 1243s # g_dbus_gvariant_to_gvalue (variant, value); 1243s # } 1243s # if (variant != NULL) 1243s # g_variant_unref (variant); 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1243s # GAsyncResult *res, 1243s # gpointer user_data) 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info = user_data; 1243s # GError *error; 1243s # GVariant *_ret; 1243s # error = NULL; 1243s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1243s # if (!_ret) 1243s # { 1243s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1243s # info->parent_struct.name, 1243s # error->message, g_quark_to_string (error->domain), error->code); 1243s # g_error_free (error); 1243s # } 1243s # else 1243s # { 1243s # g_variant_unref (_ret); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_proxy_set_property (GObject *object, 1243s # guint prop_id, 1243s # const GValue *value, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *variant; 1243s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1243s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1243s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1243s # "org.freedesktop.DBus.Properties.Set", 1243s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1243s # g_variant_unref (variant); 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static const gchar * 1243s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1243s # { 1243s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1243s # GVariant *variant; 1243s # const gchar *value = NULL; 1243s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1243s # if (variant != NULL) 1243s # { 1243s # value = g_variant_get_string (variant, NULL); 1243s # g_variant_unref (variant); 1243s # } 1243s # return value; 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1243s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1243s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1243s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1243s # 1243s # com_acme_coyote_override_properties (gobject_class, 1); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1243s # { 1243s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # com_acme_coyote_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # ComAcmeCoyote * 1243s # com_acme_coyote_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return COM_ACME_COYOTE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # ComAcmeCoyote * 1243s # com_acme_coyote_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return COM_ACME_COYOTE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * com_acme_coyote_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # com_acme_coyote_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # ComAcmeCoyote * 1243s # com_acme_coyote_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return COM_ACME_COYOTE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # ComAcmeCoyote * 1243s # com_acme_coyote_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return COM_ACME_COYOTE (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * ComAcmeCoyoteSkeleton: 1243s # * 1243s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * ComAcmeCoyoteSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #ComAcmeCoyoteSkeleton. 1243s # */ 1243s # 1243s # struct _ComAcmeCoyoteSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _com_acme_coyote_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _com_acme_coyote_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _com_acme_coyote_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1243s # { 1243s # _com_acme_coyote_skeleton_handle_method_call, 1243s # _com_acme_coyote_skeleton_handle_get_property, 1243s # _com_acme_coyote_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return com_acme_coyote_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1243s # 1243s # static void 1243s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1243s # gboolean emit_changed = FALSE; 1243s # 1243s # g_mutex_lock (&skeleton->priv->lock); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # { 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # skeleton->priv->changed_properties_idle_source = NULL; 1243s # emit_changed = TRUE; 1243s # } 1243s # g_mutex_unlock (&skeleton->priv->lock); 1243s # 1243s # if (emit_changed) 1243s # _com_acme_coyote_emit_changed (skeleton); 1243s # } 1243s # 1243s # static void 1243s # _com_acme_coyote_on_signal_surprised ( 1243s # ComAcmeCoyote *object) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1243s # 1243s # GList *connections, *l; 1243s # GVariant *signal_variant; 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1243s # for (l = connections; l != NULL; l = l->next) 1243s # { 1243s # GDBusConnection *connection = l->data; 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1243s # signal_variant, NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # 1243s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # com_acme_coyote_skeleton_finalize (GObject *object) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1243s # guint n; 1243s # for (n = 0; n < 1; n++) 1243s # g_value_unset (&skeleton->priv->properties[n]); 1243s # g_free (skeleton->priv->properties); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_skeleton_get_property (GObject *object, 1243s # guint prop_id, 1243s # GValue *value, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1243s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1243s # g_mutex_lock (&skeleton->priv->lock); 1243s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1243s # g_mutex_unlock (&skeleton->priv->lock); 1243s # } 1243s # 1243s # static gboolean 1243s # _com_acme_coyote_emit_changed (gpointer user_data) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1243s # GList *l; 1243s # GVariantBuilder builder; 1243s # GVariantBuilder invalidated_builder; 1243s # guint num_changes; 1243s # 1243s # g_mutex_lock (&skeleton->priv->lock); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1243s # #else 1243s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1243s # #endif 1243s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1243s # { 1243s # ChangedProperty *cp = l->data; 1243s # GVariant *variant; 1243s # const GValue *cur_value; 1243s # 1243s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1243s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1243s # { 1243s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1243s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1243s # g_variant_unref (variant); 1243s # num_changes++; 1243s # } 1243s # } 1243s # if (num_changes > 0) 1243s # { 1243s # GList *connections, *ll; 1243s # GVariant *signal_variant; 1243s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1243s # &builder, &invalidated_builder)); 1243s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1243s # for (ll = connections; ll != NULL; ll = ll->next) 1243s # { 1243s # GDBusConnection *connection = ll->data; 1243s # 1243s # g_dbus_connection_emit_signal (connection, 1243s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1243s # "org.freedesktop.DBus.Properties", 1243s # "PropertiesChanged", 1243s # signal_variant, 1243s # NULL); 1243s # } 1243s # g_variant_unref (signal_variant); 1243s # g_list_free_full (connections, g_object_unref); 1243s # } 1243s # else 1243s # { 1243s # g_variant_builder_clear (&builder); 1243s # g_variant_builder_clear (&invalidated_builder); 1243s # } 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # skeleton->priv->changed_properties = NULL; 1243s # skeleton->priv->changed_properties_idle_source = NULL; 1243s # g_mutex_unlock (&skeleton->priv->lock); 1243s # return FALSE; 1243s # } 1243s # 1243s # static void 1243s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1243s # { 1243s # ChangedProperty *cp; 1243s # GList *l; 1243s # cp = NULL; 1243s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1243s # { 1243s # ChangedProperty *i_cp = l->data; 1243s # if (i_cp->info == info) 1243s # { 1243s # cp = i_cp; 1243s # break; 1243s # } 1243s # } 1243s # if (cp == NULL) 1243s # { 1243s # cp = g_new0 (ChangedProperty, 1); 1243s # cp->prop_id = prop_id; 1243s # cp->info = info; 1243s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1243s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1243s # g_value_copy (orig_value, &cp->orig_value); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_skeleton_notify (GObject *object, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1243s # g_mutex_lock (&skeleton->priv->lock); 1243s # if (skeleton->priv->changed_properties != NULL && 1243s # skeleton->priv->changed_properties_idle_source == NULL) 1243s # { 1243s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1243s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1243s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1243s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1243s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1243s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1243s # } 1243s # g_mutex_unlock (&skeleton->priv->lock); 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_skeleton_set_property (GObject *object, 1243s # guint prop_id, 1243s # const GValue *value, 1243s # GParamSpec *pspec) 1243s # { 1243s # const _ExtendedGDBusPropertyInfo *info; 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1243s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1243s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1243s # g_mutex_lock (&skeleton->priv->lock); 1243s # g_object_freeze_notify (object); 1243s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1243s # { 1243s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1243s # info->emits_changed_signal) 1243s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1243s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1243s # g_object_notify_by_pspec (object, pspec); 1243s # } 1243s # g_mutex_unlock (&skeleton->priv->lock); 1243s # g_object_thaw_notify (object); 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # skeleton->priv->properties = g_new0 (GValue, 1); 1243s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1243s # } 1243s # 1243s # static const gchar * 1243s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1243s # { 1243s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1243s # const gchar *value; 1243s # g_mutex_lock (&skeleton->priv->lock); 1243s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1243s # g_mutex_unlock (&skeleton->priv->lock); 1243s # return value; 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1243s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1243s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1243s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1243s # 1243s # 1243s # com_acme_coyote_override_properties (gobject_class, 1); 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1243s # { 1243s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1243s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1243s # } 1243s # 1243s # /** 1243s # * com_acme_coyote_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1243s # * 1243s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1243s # */ 1243s # ComAcmeCoyote * 1243s # com_acme_coyote_skeleton_new (void) 1243s # { 1243s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ 1243s # * Code for interface org.project.Bar.Frobnicator 1243s # * ------------------------------------------------------------------------ 1243s # */ 1243s # 1243s # /** 1243s # * SECTION:OrgProjectBarFrobnicator 1243s # * @title: OrgProjectBarFrobnicator 1243s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1243s # * 1243s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1243s # */ 1243s # 1243s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1243s # 1243s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "RandomMethod", 1243s # NULL, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "handle-random-method", 1243s # FALSE 1243s # }; 1243s # 1243s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1243s # { 1243s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1243s # NULL 1243s # }; 1243s # 1243s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1243s # { 1243s # { 1243s # -1, 1243s # (gchar *) "org.project.Bar.Frobnicator", 1243s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1243s # NULL, 1243s # NULL, 1243s # NULL 1243s # }, 1243s # "org-project-bar-frobnicator", 1243s # }; 1243s # 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_interface_info: 1243s # * 1243s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1243s # * 1243s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1243s # */ 1243s # GDBusInterfaceInfo * 1243s # org_project_bar_frobnicator_interface_info (void) 1243s # { 1243s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_override_properties: 1243s # * @klass: The class structure for a #GObject derived class. 1243s # * @property_id_begin: The property id to assign to the first overridden property. 1243s # * 1243s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1243s # * The properties are overridden in the order they are defined. 1243s # * 1243s # * Returns: The last property id. 1243s # */ 1243s # guint 1243s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1243s # { 1243s # return property_id_begin - 1; 1243s # } 1243s # 1243s # 1243s # inline static void 1243s # org_project_bar_frobnicator_method_marshal_random_method ( 1243s # GClosure *closure, 1243s # GValue *return_value, 1243s # unsigned int n_param_values, 1243s # const GValue *param_values, 1243s # void *invocation_hint, 1243s # void *marshal_data) 1243s # { 1243s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1243s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1243s # } 1243s # 1243s # 1243s # /** 1243s # * OrgProjectBarFrobnicator: 1243s # * 1243s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectBarFrobnicatorIface: 1243s # * @parent_iface: The parent interface. 1243s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1243s # * 1243s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1243s # */ 1243s # 1243s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1243s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1243s # { 1243s # /* GObject signals for incoming D-Bus method calls: */ 1243s # /** 1243s # * OrgProjectBarFrobnicator::handle-random-method: 1243s # * @object: A #OrgProjectBarFrobnicator. 1243s # * @invocation: A #GDBusMethodInvocation. 1243s # * 1243s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1243s # * 1243s # * 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. 1243s # * 1243s # * 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. 1243s # */ 1243s # g_signal_new ("handle-random-method", 1243s # G_TYPE_FROM_INTERFACE (iface), 1243s # G_SIGNAL_RUN_LAST, 1243s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1243s # g_signal_accumulator_true_handled, 1243s # NULL, 1243s # org_project_bar_frobnicator_method_marshal_random_method, 1243s # G_TYPE_BOOLEAN, 1243s # 1, 1243s # G_TYPE_DBUS_METHOD_INVOCATION); 1243s # 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_call_random_method: 1243s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1243s # */ 1243s # void 1243s # org_project_bar_frobnicator_call_random_method ( 1243s # OrgProjectBarFrobnicator *proxy, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1243s # "RandomMethod", 1243s # g_variant_new ("()"), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # cancellable, 1243s # callback, 1243s # user_data); 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_call_random_method_finish: 1243s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1243s # * @error: Return location for error or %NULL. 1243s # * 1243s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1243s # * 1243s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1243s # */ 1243s # gboolean 1243s # org_project_bar_frobnicator_call_random_method_finish ( 1243s # OrgProjectBarFrobnicator *proxy, 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GVariant *_ret; 1243s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1243s # if (_ret == NULL) 1243s # goto _out; 1243s # g_variant_get (_ret, 1243s # "()"); 1243s # g_variant_unref (_ret); 1243s # _out: 1243s # return _ret != NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_call_random_method_sync: 1243s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL. 1243s # * 1243s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1243s # * 1243s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1243s # */ 1243s # gboolean 1243s # org_project_bar_frobnicator_call_random_method_sync ( 1243s # OrgProjectBarFrobnicator *proxy, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GVariant *_ret; 1243s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1243s # "RandomMethod", 1243s # g_variant_new ("()"), 1243s # G_DBUS_CALL_FLAGS_NONE, 1243s # -1, 1243s # cancellable, 1243s # error); 1243s # if (_ret == NULL) 1243s # goto _out; 1243s # g_variant_get (_ret, 1243s # "()"); 1243s # g_variant_unref (_ret); 1243s # _out: 1243s # return _ret != NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_complete_random_method: 1243s # * @object: A #OrgProjectBarFrobnicator. 1243s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1243s # * 1243s # * 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. 1243s # * 1243s # * This method will free @invocation, you cannot use it afterwards. 1243s # */ 1243s # void 1243s # org_project_bar_frobnicator_complete_random_method ( 1243s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1243s # GDBusMethodInvocation *invocation) 1243s # { 1243s # g_dbus_method_invocation_return_value (invocation, 1243s # g_variant_new ("()")); 1243s # } 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectBarFrobnicatorProxy: 1243s # * 1243s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectBarFrobnicatorProxyClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1243s # */ 1243s # 1243s # struct _OrgProjectBarFrobnicatorProxyPrivate 1243s # { 1243s # GData *qdata; 1243s # }; 1243s # 1243s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1243s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1243s # { 1243s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1243s # g_datalist_clear (&proxy->priv->qdata); 1243s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1243s # guint prop_id G_GNUC_UNUSED, 1243s # const GValue *value G_GNUC_UNUSED, 1243s # GParamSpec *pspec G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1243s # const gchar *sender_name G_GNUC_UNUSED, 1243s # const gchar *signal_name, 1243s # GVariant *parameters) 1243s # { 1243s # _ExtendedGDBusSignalInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # gsize n; 1243s # guint signal_id; 1243s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1243s # if (info == NULL) 1243s # return; 1243s # num_params = g_variant_n_children (parameters); 1243s # paramv = g_new0 (GValue, num_params + 1); 1243s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1243s # g_value_set_object (¶mv[0], proxy); 1243s # g_variant_iter_init (&iter, parameters); 1243s # n = 1; 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1243s # g_signal_emitv (paramv, signal_id, 0, NULL); 1243s # for (n = 0; n < num_params + 1; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1243s # GVariant *changed_properties, 1243s # const gchar *const *invalidated_properties) 1243s # { 1243s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1243s # guint n; 1243s # const gchar *key; 1243s # GVariantIter *iter; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # g_variant_get (changed_properties, "a{sv}", &iter); 1243s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1243s # g_datalist_remove_data (&proxy->priv->qdata, key); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # g_variant_iter_free (iter); 1243s # for (n = 0; invalidated_properties[n] != NULL; n++) 1243s # { 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1243s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1243s # if (info != NULL) 1243s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1243s # } 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1243s # #else 1243s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1243s # #endif 1243s # 1243s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusProxyClass *proxy_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1243s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1243s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1243s # 1243s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1243s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1243s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_proxy_new: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_bar_frobnicator_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_proxy_new_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectBarFrobnicator * 1243s # org_project_bar_frobnicator_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_proxy_new_sync: 1243s # * @connection: A #GDBusConnection. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectBarFrobnicator * 1243s # org_project_bar_frobnicator_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_proxy_new_for_bus: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1243s # * @user_data: User data to pass to @callback. 1243s # * 1243s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1243s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1243s # * 1243s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1243s # */ 1243s # void 1243s # org_project_bar_frobnicator_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data) 1243s # { 1243s # 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); 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1243s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectBarFrobnicator * 1243s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error) 1243s # { 1243s # GObject *ret; 1243s # GObject *source_object; 1243s # source_object = g_async_result_get_source_object (res); 1243s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1243s # g_object_unref (source_object); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1243s # * @bus_type: A #GBusType. 1243s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1243s # * @name: A bus name (well-known or unique). 1243s # * @object_path: An object path. 1243s # * @cancellable: (nullable): A #GCancellable or %NULL. 1243s # * @error: Return location for error or %NULL 1243s # * 1243s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1243s # * 1243s # * The calling thread is blocked until a reply is received. 1243s # * 1243s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1243s # */ 1243s # OrgProjectBarFrobnicator * 1243s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error) 1243s # { 1243s # GInitable *ret; 1243s # 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); 1243s # if (ret != NULL) 1243s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1243s # else 1243s # return NULL; 1243s # } 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # 1243s # /** 1243s # * OrgProjectBarFrobnicatorSkeleton: 1243s # * 1243s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1243s # */ 1243s # 1243s # /** 1243s # * OrgProjectBarFrobnicatorSkeletonClass: 1243s # * @parent_class: The parent class. 1243s # * 1243s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1243s # */ 1243s # 1243s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1243s # { 1243s # GValue *properties; 1243s # GList *changed_properties; 1243s # GSource *changed_properties_idle_source; 1243s # GMainContext *context; 1243s # GMutex lock; 1243s # }; 1243s # 1243s # static void 1243s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name, 1243s # const gchar *method_name, 1243s # GVariant *parameters, 1243s # GDBusMethodInvocation *invocation, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1243s # _ExtendedGDBusMethodInfo *info; 1243s # GVariantIter iter; 1243s # GVariant *child; 1243s # GValue *paramv; 1243s # gsize num_params; 1243s # guint num_extra; 1243s # gsize n; 1243s # guint signal_id; 1243s # GValue return_value = G_VALUE_INIT; 1243s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1243s # g_assert (info != NULL); 1243s # num_params = g_variant_n_children (parameters); 1243s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1243s # n = 0; 1243s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1243s # g_value_set_object (¶mv[n++], skeleton); 1243s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1243s # g_value_set_object (¶mv[n++], invocation); 1243s # if (info->pass_fdlist) 1243s # { 1243s # #ifdef G_OS_UNIX 1243s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1243s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1243s # #else 1243s # g_assert_not_reached (); 1243s # #endif 1243s # } 1243s # g_variant_iter_init (&iter, parameters); 1243s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1243s # { 1243s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1243s # if (arg_info->use_gvariant) 1243s # { 1243s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1243s # g_value_set_variant (¶mv[n], child); 1243s # n++; 1243s # } 1243s # else 1243s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1243s # g_variant_unref (child); 1243s # } 1243s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1243s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1243s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1243s # if (!g_value_get_boolean (&return_value)) 1243s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1243s # g_value_unset (&return_value); 1243s # for (n = 0; n < num_params + num_extra; n++) 1243s # g_value_unset (¶mv[n]); 1243s # g_free (paramv); 1243s # } 1243s # 1243s # static GVariant * 1243s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # GVariant *ret; 1243s # ret = NULL; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # g_value_init (&value, pspec->value_type); 1243s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1243s # g_value_unset (&value); 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static gboolean 1243s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1243s # GDBusConnection *connection G_GNUC_UNUSED, 1243s # const gchar *sender G_GNUC_UNUSED, 1243s # const gchar *object_path G_GNUC_UNUSED, 1243s # const gchar *interface_name G_GNUC_UNUSED, 1243s # const gchar *property_name, 1243s # GVariant *variant, 1243s # GError **error, 1243s # gpointer user_data) 1243s # { 1243s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1243s # GValue value = G_VALUE_INIT; 1243s # GParamSpec *pspec; 1243s # _ExtendedGDBusPropertyInfo *info; 1243s # gboolean ret; 1243s # ret = FALSE; 1243s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1243s # g_assert (info != NULL); 1243s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1243s # if (pspec == NULL) 1243s # { 1243s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1243s # } 1243s # else 1243s # { 1243s # if (info->use_gvariant) 1243s # g_value_set_variant (&value, variant); 1243s # else 1243s # g_dbus_gvariant_to_gvalue (variant, &value); 1243s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1243s # g_value_unset (&value); 1243s # ret = TRUE; 1243s # } 1243s # return ret; 1243s # } 1243s # 1243s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1243s # { 1243s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1243s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1243s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1243s # {NULL} 1243s # }; 1243s # 1243s # static GDBusInterfaceInfo * 1243s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return org_project_bar_frobnicator_interface_info (); 1243s # } 1243s # 1243s # static GDBusInterfaceVTable * 1243s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1243s # { 1243s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1243s # } 1243s # 1243s # static GVariant * 1243s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1243s # { 1243s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1243s # 1243s # GVariantBuilder builder; 1243s # guint n; 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1243s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #else 1243s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1243s # #endif 1243s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1243s # goto out; 1243s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1243s # { 1243s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1243s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1243s # { 1243s # GVariant *value; 1243s # 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); 1243s # if (value != NULL) 1243s # { 1243s # g_variant_take_ref (value); 1243s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1243s # g_variant_unref (value); 1243s # } 1243s # } 1243s # } 1243s # out: 1243s # return g_variant_builder_end (&builder); 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1243s # 1243s # #else 1243s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1243s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1243s # 1243s # #endif 1243s # static void 1243s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1243s # { 1243s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1243s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1243s # if (skeleton->priv->changed_properties_idle_source != NULL) 1243s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1243s # g_main_context_unref (skeleton->priv->context); 1243s # g_mutex_clear (&skeleton->priv->lock); 1243s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1243s # { 1243s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1243s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1243s # #else 1243s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1243s # #endif 1243s # 1243s # g_mutex_init (&skeleton->priv->lock); 1243s # skeleton->priv->context = g_main_context_ref_thread_default (); 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1243s # { 1243s # GObjectClass *gobject_class; 1243s # GDBusInterfaceSkeletonClass *skeleton_class; 1243s # 1243s # gobject_class = G_OBJECT_CLASS (klass); 1243s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1243s # 1243s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1243s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1243s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1243s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1243s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1243s # 1243s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1243s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1243s # #endif 1243s # } 1243s # 1243s # static void 1243s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1243s # { 1243s # } 1243s # 1243s # /** 1243s # * org_project_bar_frobnicator_skeleton_new: 1243s # * 1243s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1243s # * 1243s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1243s # */ 1243s # OrgProjectBarFrobnicator * 1243s # org_project_bar_frobnicator_skeleton_new (void) 1243s # { 1243s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1243s # } 1243s # Error: 1243s ok 39 __main__.TestCodegen.test_unix_fd_types_and_annotations 1243s # gdbus-codegen: /usr/bin/gdbus-codegen 1243s # tmpdir: /tmp/tmpdy5ff4x_ 1243s # /tmp/tmpdy5ff4x_/tmpcwikf0u1.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpdy5ff4x_/tmpcwikf0u1.xml', '--output', '-', '--header'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifndef __STDOUT__ 1243s # #define __STDOUT__ 1243s # 1243s # #include 1243s # 1243s # G_BEGIN_DECLS 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # /* Declarations for FDPassing */ 1243s # 1243s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1243s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1243s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1243s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1243s # 1243s # struct _FDPassing; 1243s # typedef struct _FDPassing FDPassing; 1243s # typedef struct _FDPassingIface FDPassingIface; 1243s # 1243s # struct _FDPassingIface 1243s # { 1243s # GTypeInterface parent_iface; 1243s # 1243s # gboolean (*handle_hello_fd) ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation, 1243s # GUnixFDList *fd_list, 1243s # const gchar *arg_greeting); 1243s # 1243s # gboolean (*handle_no_annotation) ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation, 1243s # GVariant *arg_greeting, 1243s # const gchar *arg_greeting_locale); 1243s # 1243s # gboolean (*handle_no_annotation_nested) ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation, 1243s # GVariant *arg_files); 1243s # 1243s # }; 1243s # 1243s # GType fdpassing_get_type (void) G_GNUC_CONST; 1243s # 1243s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1243s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1243s # 1243s # 1243s # /* D-Bus method call completion functions: */ 1243s # void fdpassing_complete_hello_fd ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation, 1243s # GUnixFDList *fd_list, 1243s # const gchar *response); 1243s # 1243s # void fdpassing_complete_no_annotation ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation, 1243s # GVariant *response, 1243s # const gchar *response_locale); 1243s # 1243s # void fdpassing_complete_no_annotation_nested ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # 1243s # 1243s # /* D-Bus method calls: */ 1243s # void fdpassing_call_hello_fd ( 1243s # FDPassing *proxy, 1243s # const gchar *arg_greeting, 1243s # GUnixFDList *fd_list, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean fdpassing_call_hello_fd_finish ( 1243s # FDPassing *proxy, 1243s # gchar **out_response, 1243s # GUnixFDList **out_fd_list, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean fdpassing_call_hello_fd_sync ( 1243s # FDPassing *proxy, 1243s # const gchar *arg_greeting, 1243s # GUnixFDList *fd_list, 1243s # gchar **out_response, 1243s # GUnixFDList **out_fd_list, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void fdpassing_call_no_annotation ( 1243s # FDPassing *proxy, 1243s # GVariant *arg_greeting, 1243s # const gchar *arg_greeting_locale, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean fdpassing_call_no_annotation_finish ( 1243s # FDPassing *proxy, 1243s # GVariant **out_response, 1243s # gchar **out_response_locale, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean fdpassing_call_no_annotation_sync ( 1243s # FDPassing *proxy, 1243s # GVariant *arg_greeting, 1243s # const gchar *arg_greeting_locale, 1243s # GVariant **out_response, 1243s # gchar **out_response_locale, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void fdpassing_call_no_annotation_nested ( 1243s # FDPassing *proxy, 1243s # GVariant *arg_files, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean fdpassing_call_no_annotation_nested_finish ( 1243s # FDPassing *proxy, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean fdpassing_call_no_annotation_nested_sync ( 1243s # FDPassing *proxy, 1243s # GVariant *arg_files, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # 1243s # 1243s # /* ---- */ 1243s # 1243s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1243s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1243s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1243s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1243s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1243s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1243s # 1243s # typedef struct _FDPassingProxy FDPassingProxy; 1243s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1243s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1243s # 1243s # struct _FDPassingProxy 1243s # { 1243s # /*< private >*/ 1243s # GDBusProxy parent_instance; 1243s # FDPassingProxyPrivate *priv; 1243s # }; 1243s # 1243s # struct _FDPassingProxyClass 1243s # { 1243s # GDBusProxyClass parent_class; 1243s # }; 1243s # 1243s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1243s # 1243s # #if GLIB_CHECK_VERSION(2, 44, 0) 1243s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1243s # #endif 1243s # 1243s # void fdpassing_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # FDPassing *fdpassing_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # FDPassing *fdpassing_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void fdpassing_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # 1243s # /* ---- */ 1243s # 1243s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1243s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1243s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1243s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1243s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1243s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1243s # 1243s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1243s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1243s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1243s # 1243s # struct _FDPassingSkeleton 1243s # { 1243s # /*< private >*/ 1243s # GDBusInterfaceSkeleton parent_instance; 1243s # FDPassingSkeletonPrivate *priv; 1243s # }; 1243s # 1243s # struct _FDPassingSkeletonClass 1243s # { 1243s # GDBusInterfaceSkeletonClass parent_class; 1243s # }; 1243s # 1243s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1243s # 1243s # #if GLIB_CHECK_VERSION(2, 44, 0) 1243s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1243s # #endif 1243s # 1243s # FDPassing *fdpassing_skeleton_new (void); 1243s # 1243s # 1243s # G_END_DECLS 1243s # 1243s # #endif /* __STDOUT__ */ 1243s # Error: 1243s # 1243s # /tmp/tmpdy5ff4x_/tmpcbbyiqcv.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpdy5ff4x_/tmpcbbyiqcv.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifndef __STDOUT__ 1243s # #define __STDOUT__ 1243s # 1243s # #include 1243s # 1243s # G_BEGIN_DECLS 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # /* Declarations for FDPassing */ 1243s # 1243s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1243s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1243s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1243s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1243s # 1243s # struct _FDPassing; 1243s # typedef struct _FDPassing FDPassing; 1243s # typedef struct _FDPassingIface FDPassingIface; 1243s # 1243s # struct _FDPassingIface 1243s # { 1243s # GTypeInterface parent_iface; 1243s # 1243s # gboolean (*handle_hello_fd) ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation, 1243s # GUnixFDList *fd_list, 1243s # const gchar *arg_greeting); 1243s # 1243s # gboolean (*handle_no_annotation) ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation, 1243s # GVariant *arg_greeting, 1243s # const gchar *arg_greeting_locale); 1243s # 1243s # gboolean (*handle_no_annotation_nested) ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation, 1243s # GVariant *arg_files); 1243s # 1243s # }; 1243s # 1243s # GType fdpassing_get_type (void) G_GNUC_CONST; 1243s # 1243s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1243s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1243s # 1243s # 1243s # /* D-Bus method call completion functions: */ 1243s # void fdpassing_complete_hello_fd ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation, 1243s # GUnixFDList *fd_list, 1243s # const gchar *response); 1243s # 1243s # void fdpassing_complete_no_annotation ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation, 1243s # GVariant *response, 1243s # const gchar *response_locale); 1243s # 1243s # void fdpassing_complete_no_annotation_nested ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation); 1243s # 1243s # 1243s # 1243s # /* D-Bus method calls: */ 1243s # void fdpassing_call_hello_fd ( 1243s # FDPassing *proxy, 1243s # const gchar *arg_greeting, 1243s # GUnixFDList *fd_list, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean fdpassing_call_hello_fd_finish ( 1243s # FDPassing *proxy, 1243s # gchar **out_response, 1243s # GUnixFDList **out_fd_list, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean fdpassing_call_hello_fd_sync ( 1243s # FDPassing *proxy, 1243s # const gchar *arg_greeting, 1243s # GUnixFDList *fd_list, 1243s # gchar **out_response, 1243s # GUnixFDList **out_fd_list, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void fdpassing_call_no_annotation ( 1243s # FDPassing *proxy, 1243s # GVariant *arg_greeting, 1243s # const gchar *arg_greeting_locale, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean fdpassing_call_no_annotation_finish ( 1243s # FDPassing *proxy, 1243s # GVariant **out_response, 1243s # gchar **out_response_locale, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean fdpassing_call_no_annotation_sync ( 1243s # FDPassing *proxy, 1243s # GVariant *arg_greeting, 1243s # const gchar *arg_greeting_locale, 1243s # GVariant **out_response, 1243s # gchar **out_response_locale, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void fdpassing_call_no_annotation_nested ( 1243s # FDPassing *proxy, 1243s # GVariant *arg_files, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean fdpassing_call_no_annotation_nested_finish ( 1243s # FDPassing *proxy, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean fdpassing_call_no_annotation_nested_sync ( 1243s # FDPassing *proxy, 1243s # GVariant *arg_files, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # 1243s # 1243s # /* ---- */ 1243s # 1243s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1243s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1243s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1243s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1243s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1243s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1243s # 1243s # typedef struct _FDPassingProxy FDPassingProxy; 1243s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1243s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1243s # 1243s # struct _FDPassingProxy 1243s # { 1243s # /*< private >*/ 1243s # GDBusProxy parent_instance; 1243s # FDPassingProxyPrivate *priv; 1243s # }; 1243s # 1243s # struct _FDPassingProxyClass 1243s # { 1243s # GDBusProxyClass parent_class; 1243s # }; 1243s # 1243s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1243s # 1243s # #if GLIB_CHECK_VERSION(2, 44, 0) 1243s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1243s # #endif 1243s # 1243s # void fdpassing_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # FDPassing *fdpassing_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # FDPassing *fdpassing_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void fdpassing_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # 1243s # /* ---- */ 1243s # 1243s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1243s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1243s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1243s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1243s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1243s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1243s # 1243s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1243s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1243s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1243s # 1243s # struct _FDPassingSkeleton 1243s # { 1243s # /*< private >*/ 1243s # GDBusInterfaceSkeleton parent_instance; 1243s # FDPassingSkeletonPrivate *priv; 1243s # }; 1243s # 1243s # struct _FDPassingSkeletonClass 1243s # { 1243s # GDBusInterfaceSkeletonClass parent_class; 1243s # }; 1243s # 1243s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1243s # 1243s # #if GLIB_CHECK_VERSION(2, 44, 0) 1243s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1243s # #endif 1243s # 1243s # FDPassing *fdpassing_skeleton_new (void); 1243s # 1243s # 1243s # G_END_DECLS 1243s # 1243s # #endif /* __STDOUT__ */ 1243s # Error: 1243s # 1243s # /tmp/tmpdy5ff4x_/tmpa0w3ragb.xml: 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # 1243s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpdy5ff4x_/tmpa0w3ragb.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1243s # Return code: 0 1243s # Output: 1243s # /* 1243s # * This file is generated by gdbus-codegen, do not modify it. 1243s # * 1243s # * The license of this code is the same as for the D-Bus interface description 1243s # * it was derived from. Note that it links to GLib, so must comply with the 1243s # * LGPL linking clauses. 1243s # */ 1243s # 1243s # #ifndef __STDOUT__ 1243s # #define __STDOUT__ 1243s # 1243s # #include 1243s # 1243s # G_BEGIN_DECLS 1243s # 1243s # 1243s # /* ------------------------------------------------------------------------ */ 1243s # /* Declarations for FDPassing */ 1243s # 1243s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1243s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1243s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1243s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1243s # 1243s # struct _FDPassing; 1243s # typedef struct _FDPassing FDPassing; 1243s # typedef struct _FDPassingIface FDPassingIface; 1243s # 1243s # struct _FDPassingIface 1243s # { 1243s # GTypeInterface parent_iface; 1243s # 1243s # gboolean (*handle_hello_fd) ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation, 1243s # GUnixFDList *fd_list, 1243s # const gchar *arg_greeting); 1243s # 1243s # gboolean (*handle_no_annotation) ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation, 1243s # GUnixFDList *fd_list, 1243s # GVariant *arg_greeting, 1243s # const gchar *arg_greeting_locale); 1243s # 1243s # gboolean (*handle_no_annotation_nested) ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation, 1243s # GUnixFDList *fd_list, 1243s # GVariant *arg_files); 1243s # 1243s # }; 1243s # 1243s # GType fdpassing_get_type (void) G_GNUC_CONST; 1243s # 1243s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1243s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1243s # 1243s # 1243s # /* D-Bus method call completion functions: */ 1243s # void fdpassing_complete_hello_fd ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation, 1243s # GUnixFDList *fd_list, 1243s # const gchar *response); 1243s # 1243s # void fdpassing_complete_no_annotation ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation, 1243s # GUnixFDList *fd_list, 1243s # GVariant *response, 1243s # const gchar *response_locale); 1243s # 1243s # void fdpassing_complete_no_annotation_nested ( 1243s # FDPassing *object, 1243s # GDBusMethodInvocation *invocation, 1243s # GUnixFDList *fd_list); 1243s # 1243s # 1243s # 1243s # /* D-Bus method calls: */ 1243s # void fdpassing_call_hello_fd ( 1243s # FDPassing *proxy, 1243s # const gchar *arg_greeting, 1243s # GDBusCallFlags call_flags, 1243s # gint timeout_msec, 1243s # GUnixFDList *fd_list, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean fdpassing_call_hello_fd_finish ( 1243s # FDPassing *proxy, 1243s # gchar **out_response, 1243s # GUnixFDList **out_fd_list, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean fdpassing_call_hello_fd_sync ( 1243s # FDPassing *proxy, 1243s # const gchar *arg_greeting, 1243s # GDBusCallFlags call_flags, 1243s # gint timeout_msec, 1243s # GUnixFDList *fd_list, 1243s # gchar **out_response, 1243s # GUnixFDList **out_fd_list, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void fdpassing_call_no_annotation ( 1243s # FDPassing *proxy, 1243s # GVariant *arg_greeting, 1243s # const gchar *arg_greeting_locale, 1243s # GDBusCallFlags call_flags, 1243s # gint timeout_msec, 1243s # GUnixFDList *fd_list, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean fdpassing_call_no_annotation_finish ( 1243s # FDPassing *proxy, 1243s # GVariant **out_response, 1243s # gchar **out_response_locale, 1243s # GUnixFDList **out_fd_list, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean fdpassing_call_no_annotation_sync ( 1243s # FDPassing *proxy, 1243s # GVariant *arg_greeting, 1243s # const gchar *arg_greeting_locale, 1243s # GDBusCallFlags call_flags, 1243s # gint timeout_msec, 1243s # GUnixFDList *fd_list, 1243s # GVariant **out_response, 1243s # gchar **out_response_locale, 1243s # GUnixFDList **out_fd_list, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void fdpassing_call_no_annotation_nested ( 1243s # FDPassing *proxy, 1243s # GVariant *arg_files, 1243s # GDBusCallFlags call_flags, 1243s # gint timeout_msec, 1243s # GUnixFDList *fd_list, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # 1243s # gboolean fdpassing_call_no_annotation_nested_finish ( 1243s # FDPassing *proxy, 1243s # GUnixFDList **out_fd_list, 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # 1243s # gboolean fdpassing_call_no_annotation_nested_sync ( 1243s # FDPassing *proxy, 1243s # GVariant *arg_files, 1243s # GDBusCallFlags call_flags, 1243s # gint timeout_msec, 1243s # GUnixFDList *fd_list, 1243s # GUnixFDList **out_fd_list, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # 1243s # 1243s # /* ---- */ 1243s # 1243s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1243s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1243s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1243s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1243s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1243s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1243s # 1243s # typedef struct _FDPassingProxy FDPassingProxy; 1243s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1243s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1243s # 1243s # struct _FDPassingProxy 1243s # { 1243s # /*< private >*/ 1243s # GDBusProxy parent_instance; 1243s # FDPassingProxyPrivate *priv; 1243s # }; 1243s # 1243s # struct _FDPassingProxyClass 1243s # { 1243s # GDBusProxyClass parent_class; 1243s # }; 1243s # 1243s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1243s # 1243s # #if GLIB_CHECK_VERSION(2, 44, 0) 1243s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1243s # #endif 1243s # 1243s # void fdpassing_proxy_new ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # FDPassing *fdpassing_proxy_new_finish ( 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # FDPassing *fdpassing_proxy_new_sync ( 1243s # GDBusConnection *connection, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # void fdpassing_proxy_new_for_bus ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GAsyncReadyCallback callback, 1243s # gpointer user_data); 1243s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1243s # GAsyncResult *res, 1243s # GError **error); 1243s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1243s # GBusType bus_type, 1243s # GDBusProxyFlags flags, 1243s # const gchar *name, 1243s # const gchar *object_path, 1243s # GCancellable *cancellable, 1243s # GError **error); 1243s # 1243s # 1243s # /* ---- */ 1243s # 1243s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1243s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1243s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1243s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1243s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1243s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1243s # 1243s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1243s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1243s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1243s # 1243s # struct _FDPassingSkeleton 1243s # { 1243s # /*< private >*/ 1243s # GDBusInterfaceSkeleton parent_instance; 1243s # FDPassingSkeletonPrivate *priv; 1243s # }; 1243s # 1243s # struct _FDPassingSkeletonClass 1243s # { 1243s # GDBusInterfaceSkeletonClass parent_class; 1243s # }; 1243s # 1243s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1243s # 1243s # #if GLIB_CHECK_VERSION(2, 44, 0) 1243s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1243s # #endif 1243s # 1243s # FDPassing *fdpassing_skeleton_new (void); 1243s # 1243s # 1243s # G_END_DECLS 1243s # 1243s # #endif /* __STDOUT__ */ 1243s # Error: 1243s 1..39 1243s ok - glib/codegen.py.test 1243s # Running test: glib/glistmodel.test 1243s TAP version 14 1243s # random seed: R02S881c49ad822df4cd1c7fde6678c4aaf5 1243s 1..18 1243s # Start of glistmodel tests 1243s # Start of store tests 1243s ok 1 /glistmodel/store/properties 1243s ok 2 /glistmodel/store/non-gobjects 1243s ok 3 /glistmodel/store/boundaries 1243s ok 4 /glistmodel/store/refcounts 1243s ok 5 /glistmodel/store/sorted 1243s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1243s ok 6 /glistmodel/store/splice-replace-middle 1243s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1243s ok 7 /glistmodel/store/splice-replace-all 1243s ok 8 /glistmodel/store/splice-noop 1243s ok 9 /glistmodel/store/splice-remove-multiple 1243s ok 10 /glistmodel/store/splice-add-multiple 1243s ok 11 /glistmodel/store/splice-wrong-type 1243s ok 12 /glistmodel/store/item-type 1243s ok 13 /glistmodel/store/remove-all 1243s ok 14 /glistmodel/store/sort 1243s ok 15 /glistmodel/store/get-item-cache 1243s ok 16 /glistmodel/store/items-changed 1243s ok 17 /glistmodel/store/past-end 1243s ok - glib/glistmodel.test 1243s ok 18 /glistmodel/store/find 1243s # End of store tests 1243s # End of glistmodel tests 1243s # Running test: glib/gdbus-method-invocation.test 1243s TAP version 14 1243s # random seed: R02Sbe1940bcf058a91e0114cf3a6b2c276c 1243s 1..1 1243s # Start of gdbus tests 1243s # Start of method-invocation tests 1243s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-method-invocation_GS4ZB3/gdbus/method-invocation/return/.dirs/home 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-method-invocation_GS4ZB3/gdbus/method-invocation/return/.dirs/cache 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-method-invocation_GS4ZB3/gdbus/method-invocation/return/.dirs/system-config1:/tmp/test_gdbus-method-invocation_GS4ZB3/gdbus/method-invocation/return/.dirs/system-config2 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-method-invocation_GS4ZB3/gdbus/method-invocation/return/.dirs/config 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-method-invocation_GS4ZB3/gdbus/method-invocation/return/.dirs/system-data1:/tmp/test_gdbus-method-invocation_GS4ZB3/gdbus/method-invocation/return/.dirs/system-data2 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-method-invocation_GS4ZB3/gdbus/method-invocation/return/.dirs/data 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-method-invocation_GS4ZB3/gdbus/method-invocation/return/.dirs/state 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-method-invocation_GS4ZB3/gdbus/method-invocation/return/.dirs/runtime 1243s # /gdbus/method-invocation/return summary: Test calling g_dbus_method_invocation_return_*() in various ways 1243s # Calling org.freedesktop.DBus.Properties.Get 1243s # Calling org.freedesktop.DBus.Properties.Get 1243s # Calling org.freedesktop.DBus.Properties.Get 1243s # Calling org.freedesktop.DBus.Properties.Set 1243s # Calling org.freedesktop.DBus.Properties.GetAll 1243s # Calling org.example.Foo.WrongReturnType 1243s # Calling org.example.Foo.GetFDs 1243s # Calling org.example.Foo.GetFDs 1243s # Calling org.example.Foo.ReturnError 1243s # Calling org.example.Foo.CloseBeforeReturning 1243s ok 1 /gdbus/method-invocation/return 1243s # End of method-invocation tests 1243s # End of gdbus tests 1243s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1243s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1243s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1243s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1243s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1243s ok - glib/gdbus-method-invocation.test 1243s # Running test: glib/testing.test 1243s TAP version 14 1243s # random seed: R02S775ef023826f8a4985aae9b47e2269f1 1243s 1..1 1243s # Start of assert tests 1243s ok 1 /assert/finalize_object 1243s # Start of finalize_object tests 1243s # Start of subprocess tests 1243s # End of subprocess tests 1243s # End of finalize_object tests 1243s # End of assert tests 1243s ok - glib/testing.test 1243s # Running test: glib/properties.test 1243s TAP version 14 1243s # random seed: R02S7c86b2b0ac9996c39e35442c98e9b9da 1243s 1..14 1243s # Start of properties tests 1243s ok 1 /properties/install 1243s ok 2 /properties/install-many 1243s ok 3 /properties/notify 1243s ok 4 /properties/notify-queue 1243s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=630357 1243s ok 5 /properties/construct 1243s # /properties/get-property summary: g_object_get_property() accepts uninitialized, initialized, and transformable values 1243s # Test g_object_get_property with an initialized value 1243s # Test g_object_get_property with an uninitialized value 1243s # Test g_object_get_property with a transformable value 1243s ok 6 /properties/get-property 1243s ok 7 /properties/testv_with_no_properties 1243s ok 8 /properties/testv_with_valid_properties 1243s ok 9 /properties/testv_with_invalid_property_type 1243s ok 10 /properties/testv_with_invalid_property_names 1243s ok 11 /properties/testv_getv 1243s ok 12 /properties/testv_notify_queue 1243s # Start of notify tests 1243s ok 13 /properties/notify/too-many-freezes 1243s # End of notify tests 1243s # Start of set-property tests 1243s # Start of variant tests 1243s # /properties/set-property/variant/floating summary: Test that setting a property to a floating variant consumes the reference 1243s ok 14 /properties/set-property/variant/floating 1243s # End of variant tests 1243s # End of set-property tests 1243s # End of properties tests 1243s ok - glib/properties.test 1243s # Running test: glib/convert.test 1243s TAP version 14 1243s # random seed: R02S2fc78d07b9285455cee211dd8df9002f 1243s 1..14 1243s # Start of conversion tests 1243s ok 1 /conversion/no-conv 1243s ok 2 /conversion/iconv-state 1243s ok 3 /conversion/illegal-sequence 1243s ok 4 /conversion/byte-order 1243s ok 5 /conversion/unicode 1243s ok 6 /conversion/filename-utf8 1243s ok 7 /conversion/filename-display 1243s ok 8 /conversion/convert-embedded-nul 1243s # Start of locale-to-utf8 tests 1243s ok 9 /conversion/locale-to-utf8/embedded-nul 1243s # Start of embedded-nul tests 1243s # Start of subprocess tests 1243s # End of subprocess tests 1243s # End of embedded-nul tests 1243s # End of locale-to-utf8 tests 1243s # Start of locale-from-utf8 tests 1243s ok 10 /conversion/locale-from-utf8/embedded-nul 1243s # Start of embedded-nul tests 1243s # Start of subprocess tests 1243s # End of subprocess tests 1243s # End of embedded-nul tests 1243s # End of locale-from-utf8 tests 1243s # Start of filename-to-utf8 tests 1243s ok 11 /conversion/filename-to-utf8/embedded-nul 1243s # Start of embedded-nul tests 1243s # Start of subprocess tests 1243s # End of subprocess tests 1243s # End of embedded-nul tests 1243s # End of filename-to-utf8 tests 1243s # Start of filename-from-utf8 tests 1243s ok 12 /conversion/filename-from-utf8/embedded-nul 1243s # Start of embedded-nul tests 1243s # Start of subprocess tests 1243s # End of subprocess tests 1243s # End of embedded-nul tests 1243s # End of filename-from-utf8 tests 1243s # Start of filename-from-uri tests 1243s ok 13 /conversion/filename-from-uri/query-is-ignored 1243s ok 14 /conversion/filename-from-uri/fragment-is-ignored 1243s # End of filename-from-uri tests 1243s # End of conversion tests 1243s ok - glib/convert.test 1243s # Running test: glib/rec-mutex.test 1243s TAP version 14 1243s # random seed: R02S80cf8906b3a129b72f2d02de55f3e760 1243s 1..29 1243s # Start of thread tests 1243s ok 1 /thread/rec-mutex1 1243s ok 2 /thread/rec-mutex2 1243s ok 3 /thread/rec-mutex3 1243s ok 4 /thread/rec-mutex4 1243s # Start of rec-mutex tests 1243s # Start of perf tests 1243s # Start of uncontended tests 1243s # max perf: inf mips 1243s ok 5 /thread/rec-mutex/perf/uncontended/depth1 1243s # max perf: 1.000000 mips 1243s ok 6 /thread/rec-mutex/perf/uncontended/depth2 1243s # max perf: inf mips 1243s ok 7 /thread/rec-mutex/perf/uncontended/depth3 1243s # max perf: inf mips 1243s ok 8 /thread/rec-mutex/perf/uncontended/depth4 1243s # max perf: inf mips 1243s ok 9 /thread/rec-mutex/perf/uncontended/depth5 1243s # End of uncontended tests 1243s # Start of contended1 tests 1243s # max perf: inf mips 1243s ok 10 /thread/rec-mutex/perf/contended1/depth1 1243s # max perf: inf mips 1243s ok 11 /thread/rec-mutex/perf/contended1/depth2 1243s # max perf: inf mips 1243s ok 12 /thread/rec-mutex/perf/contended1/depth3 1243s # max perf: 2.000000 mips 1243s ok 13 /thread/rec-mutex/perf/contended1/depth4 1243s # max perf: inf mips 1243s ok 14 /thread/rec-mutex/perf/contended1/depth5 1243s # End of contended1 tests 1243s # Start of contended2 tests 1243s # max perf: inf mips 1243s ok 15 /thread/rec-mutex/perf/contended2/depth1 1243s # max perf: inf mips 1243s ok 16 /thread/rec-mutex/perf/contended2/depth2 1243s # max perf: inf mips 1243s ok 17 /thread/rec-mutex/perf/contended2/depth3 1243s # max perf: inf mips 1243s ok 18 /thread/rec-mutex/perf/contended2/depth4 1243s # max perf: inf mips 1243s ok 19 /thread/rec-mutex/perf/contended2/depth5 1243s # End of contended2 tests 1243s # Start of contended3 tests 1243s # max perf: inf mips 1243s ok 20 /thread/rec-mutex/perf/contended3/depth1 1243s # max perf: inf mips 1243s ok 21 /thread/rec-mutex/perf/contended3/depth2 1243s # max perf: inf mips 1243s ok 22 /thread/rec-mutex/perf/contended3/depth3 1243s # max perf: 4.000000 mips 1243s ok 23 /thread/rec-mutex/perf/contended3/depth4 1243s # max perf: 4.000000 mips 1243s ok 24 /thread/rec-mutex/perf/contended3/depth5 1243s # End of contended3 tests 1243s # Start of contended4 tests 1243s # max perf: inf mips 1243s ok 25 /thread/rec-mutex/perf/contended4/depth1 1243s # max perf: 5.000000 mips 1243s ok 26 /thread/rec-mutex/perf/contended4/depth2 1243s # max perf: inf mips 1243s ok 27 /thread/rec-mutex/perf/contended4/depth3 1243s ok - glib/rec-mutex.test 1243s # max perf: inf mips 1243s ok 28 /thread/rec-mutex/perf/contended4/depth4 1243s # max perf: 5.000000 mips 1243s ok 29 /thread/rec-mutex/perf/contended4/depth5 1243s # End of contended4 tests 1243s # End of perf tests 1243s # End of rec-mutex tests 1243s # End of thread tests 1243s # Running test: glib/mount-operation.test 1243s TAP version 14 1243s # random seed: R02S5553fc793f872bfcaf6671dfec3ee7e2 1243s ok - glib/mount-operation.test 1243s 1..2 1243s # Start of mount-operation tests 1243s ok 1 /mount-operation/construction 1243s ok 2 /mount-operation/properties 1243s # End of mount-operation tests 1243s # Running test: glib/unicode.test 1243s TAP version 14 1243s # random seed: R02S25d5e8dac48c4280318044aef0f3e7a5 1243s 1..39 1243s # Start of unicode tests 1243s ok 1 /unicode/alnum 1243s ok 2 /unicode/alpha 1243s ok 3 /unicode/break-type 1243s ok 4 /unicode/canonical-decomposition 1243s ok 5 /unicode/casefold 1243s # Cannot set locale to lt_LT, skipping 1243s # Cannot set locale to lt_LT, skipping 1243s # Cannot set locale to lt_LT, skipping 1243s # Cannot set locale to lt_LT, skipping 1243s # Cannot set locale to lt_LT, skipping 1243s # Cannot set locale to lt_LT, skipping 1243s # Cannot set locale to lt_LT, skipping 1243s # Cannot set locale to lt_LT, skipping 1243s # Cannot set locale to lt_LT, skipping 1243s # Cannot set locale to lt_LT, skipping 1243s # Cannot set locale to lt_LT, skipping 1243s ok 6 /unicode/casemap_and_casefold 1243s ok 7 /unicode/cases 1243s ok 8 /unicode/character-type 1243s ok 9 /unicode/cntrl 1243s ok 10 /unicode/combining-class 1243s # Composing U+000041 and U+000042; expecting U+000000 1243s # Composing U+000041 and U+000000; expecting U+000000 1243s # Composing U+000066 and U+000069; expecting U+000000 1243s # Composing U+000308 and U+000301; expecting U+000000 1243s # Composing U+000f71 and U+000f72; expecting U+000000 1243s # Composing U+00212b and U+000000; expecting U+000000 1243s # Composing U+0000c5 and U+000000; expecting U+000000 1243s # Composing U+002126 and U+000000; expecting U+000000 1243s # Composing U+0003a9 and U+000000; expecting U+000000 1243s # Composing U+000041 and U+00030a; expecting U+0000c5 1243s # Composing U+00006f and U+000302; expecting U+0000f4 1243s # Composing U+001e63 and U+000307; expecting U+001e69 1243s # Composing U+000073 and U+000323; expecting U+001e63 1243s # Composing U+000064 and U+000307; expecting U+001e0b 1243s # Composing U+000064 and U+000323; expecting U+001e0d 1243s # Composing U+00d4cc and U+0011b6; expecting U+00d4db 1243s # Composing U+001111 and U+001171; expecting U+00d4cc 1243s # Composing U+00ce20 and U+0011b8; expecting U+00ce31 1243s # Composing U+00110e and U+001173; expecting U+00ce20 1243s # Composing U+001100 and U+001160; expecting U+000000 1243s # Composing U+001100 and U+001177; expecting U+000000 1243s # Composing U+00abff and U+0011b6; expecting U+000000 1243s # Composing U+00d7a5 and U+0011b6; expecting U+000000 1243s # Composing U+00ac01 and U+0011b6; expecting U+000000 1243s # Composing U+00d4cc and U+0011a6; expecting U+000000 1243s # Composing U+00d4cc and U+0011c4; expecting U+000000 1243s # Composing U+01611e and U+01611e; expecting U+016121 1243s # Composing U+01611e and U+01611f; expecting U+016123 1243s # Composing U+0000f6 and U+000304; expecting U+00022b 1243s # Composing U+000b47 and U+000b57; expecting U+000b4c 1243s # Composing U+0000a0 and U+000b57; expecting U+000000 1243s # Composing U+016e00 and U+00030a; expecting U+000000 1243s # Composing U+00212b and U+016e00; expecting U+000000 1243s # Composing U+001e63 and U+000306; expecting U+000000 1243s # Composing U+001e63 and U+000304; expecting U+000000 1243s # Composing U+001e63 and U+000b57; expecting U+000000 1243s # Composing U+001e63 and U+000000; expecting U+000000 1243s # Composing U+001e63 and U+0113c2; expecting U+000000 1243s # Composing U+001f01 and U+0113c2; expecting U+000000 1243s # Composing U+00006e and U+000302; expecting U+000000 1243s # Composing U+001e63 and U+01611f; expecting U+000000 1243s # Composing U+01138e and U+0113b8; expecting U+000000 1243s # Composing U+01611e and U+000000; expecting U+000000 1243s # Composing U+000000 and U+01611f; expecting U+000000 1243s # Composing U+011390 and U+0113c2; expecting U+000000 1243s ok 11 /unicode/compose 1243s ok 12 /unicode/decompose 1243s ok 13 /unicode/decompose-tail 1243s ok 14 /unicode/defined 1243s ok 15 /unicode/digit 1243s ok 16 /unicode/digit-value 1243s # Fully decomposing U+000041; expecting 1 codepoints 1243s # Fully decomposing U+00fb01; expecting 1 codepoints 1243s # Fully decomposing U+00212b; expecting 2 codepoints 1243s # Fully decomposing U+002126; expecting 1 codepoints 1243s # Fully decomposing U+000344; expecting 2 codepoints 1243s # Fully decomposing U+000f73; expecting 2 codepoints 1243s # Fully decomposing U+0000c5; expecting 2 codepoints 1243s # Fully decomposing U+0000f4; expecting 2 codepoints 1243s # Fully decomposing U+001e69; expecting 3 codepoints 1243s # Fully decomposing U+001e63; expecting 2 codepoints 1243s # Fully decomposing U+001e0b; expecting 2 codepoints 1243s # Fully decomposing U+001e0d; expecting 2 codepoints 1243s # Fully decomposing U+00d4db; expecting 3 codepoints 1243s # Fully decomposing U+00d4cc; expecting 2 codepoints 1243s # Fully decomposing U+00ce31; expecting 3 codepoints 1243s # Fully decomposing U+00ce20; expecting 2 codepoints 1243s ok 17 /unicode/fully-decompose-canonical 1243s ok 18 /unicode/fully-decompose-len 1243s ok 19 /unicode/normalization 1243s ok 20 /unicode/graph 1243s # Testing script Zyyy (code 1517910393) 1243s # Testing script Zinh (code 1516858984) 1243s # Testing script Zmth (code 1517122664) 1243s # Testing script Arab (code 1098015074) 1243s # Testing script Armn (code 1098018158) 1243s # Testing script Beng (code 1113943655) 1243s # Testing script Bopo (code 1114599535) 1243s # Testing script Cher (code 1130915186) 1243s # Testing script Copt (code 1131376756) 1243s # Testing script Cyrl (code 1132032620) 1243s # Testing script Dsrt (code 1148416628) 1243s # Testing script Deva (code 1147500129) 1243s # Testing script Ethi (code 1165256809) 1243s # Testing script Geor (code 1197830002) 1243s # Testing script Goth (code 1198486632) 1243s # Testing script Grek (code 1198679403) 1243s # Testing script Gujr (code 1198877298) 1243s # Testing script Guru (code 1198879349) 1243s # Testing script Hani (code 1214344809) 1243s # Testing script Hang (code 1214344807) 1243s # Testing script Hebr (code 1214603890) 1243s # Testing script Hira (code 1214870113) 1243s # Testing script Knda (code 1265525857) 1243s # Testing script Kana (code 1264676449) 1243s # Testing script Khmr (code 1265134962) 1243s # Testing script Laoo (code 1281453935) 1243s # Testing script Latn (code 1281455214) 1243s # Testing script Mlym (code 1298954605) 1243s # Testing script Mong (code 1299148391) 1243s # Testing script Mymr (code 1299803506) 1243s # Testing script Ogam (code 1332175213) 1243s # Testing script Ital (code 1232363884) 1243s # Testing script Orya (code 1332902241) 1243s # Testing script Runr (code 1383427698) 1243s # Testing script Sinh (code 1399418472) 1243s # Testing script Syrc (code 1400468067) 1243s # Testing script Taml (code 1415671148) 1243s # Testing script Telu (code 1415933045) 1243s # Testing script Thaa (code 1416126817) 1243s # Testing script Thai (code 1416126825) 1243s # Testing script Tibt (code 1416192628) 1243s # Testing script Cans (code 1130458739) 1243s # Testing script Yiii (code 1500080489) 1243s # Testing script Tglg (code 1416064103) 1243s # Testing script Hano (code 1214344815) 1243s # Testing script Buhd (code 1114990692) 1243s # Testing script Tagb (code 1415669602) 1243s # Testing script Brai (code 1114792297) 1243s # Testing script Cprt (code 1131442804) 1243s # Testing script Limb (code 1281977698) 1243s # Testing script Osma (code 1332964705) 1243s # Testing script Shaw (code 1399349623) 1243s # Testing script Linb (code 1281977954) 1243s # Testing script Tale (code 1415670885) 1243s # Testing script Ugar (code 1432838514) 1243s # Testing script Talu (code 1415670901) 1243s # Testing script Bugi (code 1114990441) 1243s # Testing script Glag (code 1198285159) 1243s # Testing script Tfng (code 1415999079) 1243s # Testing script Sylo (code 1400466543) 1243s # Testing script Xpeo (code 1483761007) 1243s # Testing script Khar (code 1265131890) 1243s # Testing script Zzzz (code 1517976186) 1243s # Testing script Bali (code 1113681001) 1243s # Testing script Xsux (code 1483961720) 1243s # Testing script Phnx (code 1349021304) 1243s # Testing script Phag (code 1349017959) 1243s # Testing script Nkoo (code 1315663727) 1243s # Testing script Kali (code 1264675945) 1243s # Testing script Lepc (code 1281716323) 1243s # Testing script Rjng (code 1382706791) 1243s # Testing script Sund (code 1400204900) 1243s # Testing script Saur (code 1398895986) 1243s # Testing script Cham (code 1130914157) 1243s # Testing script Olck (code 1332503403) 1243s # Testing script Vaii (code 1449224553) 1243s # Testing script Cari (code 1130459753) 1243s # Testing script Lyci (code 1283023721) 1243s # Testing script Lydi (code 1283023977) 1243s # Testing script Avst (code 1098281844) 1243s # Testing script Bamu (code 1113681269) 1243s # Testing script Egyp (code 1164409200) 1243s # Testing script Armi (code 1098018153) 1243s # Testing script Phli (code 1349020777) 1243s # Testing script Prti (code 1349678185) 1243s # Testing script Java (code 1247901281) 1243s # Testing script Kthi (code 1265920105) 1243s # Testing script Lisu (code 1281979253) 1243s # Testing script Mtei (code 1299473769) 1243s # Testing script Sarb (code 1398895202) 1243s # Testing script Orkh (code 1332898664) 1243s # Testing script Samr (code 1398893938) 1243s # Testing script Lana (code 1281453665) 1243s # Testing script Tavt (code 1415673460) 1243s # Testing script Batk (code 1113683051) 1243s # Testing script Brah (code 1114792296) 1243s # Testing script Mand (code 1298230884) 1243s # Testing script Cakm (code 1130457965) 1243s # Testing script Merc (code 1298494051) 1243s # Testing script Mero (code 1298494063) 1243s # Testing script Plrd (code 1349284452) 1243s # Testing script Shrd (code 1399353956) 1243s # Testing script Sora (code 1399812705) 1243s # Testing script Takr (code 1415670642) 1243s # Testing script Bass (code 1113682803) 1243s # Testing script Aghb (code 1097295970) 1243s # Testing script Dupl (code 1148547180) 1243s # Testing script Elba (code 1164730977) 1243s # Testing script Gran (code 1198678382) 1243s # Testing script Khoj (code 1265135466) 1243s # Testing script Sind (code 1399418468) 1243s # Testing script Lina (code 1281977953) 1243s # Testing script Mahj (code 1298229354) 1243s # Testing script Mani (code 1298230889) 1243s # Testing script Mend (code 1298493028) 1243s # Testing script Modi (code 1299145833) 1243s # Testing script Mroo (code 1299345263) 1243s # Testing script Nbat (code 1315070324) 1243s # Testing script Narb (code 1315009122) 1243s # Testing script Perm (code 1348825709) 1243s # Testing script Hmng (code 1215131239) 1243s # Testing script Palm (code 1348562029) 1243s # Testing script Pauc (code 1348564323) 1243s # Testing script Phlp (code 1349020784) 1243s # Testing script Sidd (code 1399415908) 1243s # Testing script Tirh (code 1416196712) 1243s # Testing script Wara (code 1466004065) 1243s # Testing script Ahom (code 1097363309) 1243s # Testing script Hluw (code 1215067511) 1243s # Testing script Hatr (code 1214346354) 1243s # Testing script Mult (code 1299541108) 1243s # Testing script Hung (code 1215655527) 1243s # Testing script Sgnw (code 1399287415) 1243s # Testing script Adlm (code 1097100397) 1243s # Testing script Bhks (code 1114139507) 1243s # Testing script Marc (code 1298231907) 1243s # Testing script Newa (code 1315272545) 1243s # Testing script Osge (code 1332963173) 1243s # Testing script Tang (code 1415671399) 1243s # Testing script Gonm (code 1198485101) 1243s # Testing script Nshu (code 1316186229) 1243s # Testing script Soyo (code 1399814511) 1243s # Testing script Zanb (code 1516334690) 1243s # Testing script Dogr (code 1148151666) 1243s # Testing script Gong (code 1198485095) 1243s # Testing script Rohg (code 1383032935) 1243s # Testing script Maka (code 1298230113) 1243s # Testing script Medf (code 1298490470) 1243s # Testing script Sogo (code 1399809903) 1243s # Testing script Sogd (code 1399809892) 1243s # Testing script Elym (code 1164736877) 1243s # Testing script Nand (code 1315008100) 1243s # Testing script Hmnp (code 1215131248) 1243s # Testing script Wcho (code 1466132591) 1243s # Testing script Chrs (code 1130918515) 1243s # Testing script Diak (code 1147756907) 1243s # Testing script Kits (code 1265202291) 1243s # Testing script Yezi (code 1499822697) 1243s # Testing script Cpmn (code 1131441518) 1243s # Testing script Ougr (code 1333094258) 1243s # Testing script Tnsa (code 1416524641) 1243s # Testing script Toto (code 1416590447) 1243s # Testing script Vith (code 1449751656) 1243s # Testing script Kawi (code 1264678761) 1243s # Testing script Nagm (code 1315006317) 1243s # Testing script Todr (code 1416586354) 1243s # Testing script Gara (code 1197568609) 1243s # Testing script Tutg (code 1416983655) 1243s # Testing script Sunu (code 1400204917) 1243s # Testing script Gukh (code 1198877544) 1243s # Testing script Krai (code 1265787241) 1243s # Testing script Onao (code 1332633967) 1243s ok 21 /unicode/iso15924 1243s ok 22 /unicode/lower 1243s ok 23 /unicode/mark 1243s ok 24 /unicode/mirror 1243s ok 25 /unicode/print 1243s ok 26 /unicode/punctuation 1243s ok 27 /unicode/script 1243s ok 28 /unicode/space 1243s ok 29 /unicode/strdown 1243s ok 30 /unicode/strup 1243s ok 31 /unicode/turkish-strupdown 1243s ok 32 /unicode/title 1243s ok 33 /unicode/upper 1243s ok 34 /unicode/validate 1243s ok 35 /unicode/wide 1243s ok 36 /unicode/xdigit 1243s ok 37 /unicode/xdigit-value 1243s ok - glib/unicode.test 1243s ok 38 /unicode/zero-width 1243s ok 39 /unicode/normalize 1243s # End of unicode tests 1243s # Running test: glib/shell.test 1243s TAP version 14 1243s # random seed: R02Sb91cf3c78873bad973e32552ab5a11d9 1243s 1..52 1243s # Start of shell tests 1243s # Start of cmdline tests 1243s test cmdline: foo bar 1243s ok 1 /shell/cmdline/0 1243s test cmdline: foo 'bar' 1243s ok 2 /shell/cmdline/1 1243s test cmdline: foo "bar" 1243s ok 3 /shell/cmdline/2 1243s test cmdline: foo '' 'bar' 1243s ok 4 /shell/cmdline/3 1243s test cmdline: foo "bar"'baz'blah'foo'\''blah'"boo" 1243s ok 5 /shell/cmdline/4 1243s test cmdline: foo blah foo bar baz 1243s ok 6 /shell/cmdline/5 1243s test cmdline: foo ' spaces more spaces lots of spaces in this ' 1243s ok 7 /shell/cmdline/6 1243s test cmdline: foo \ 1243s bar 1243s ok 8 /shell/cmdline/7 1243s test cmdline: foo '' '' 1243s ok 9 /shell/cmdline/8 1243s test cmdline: foo \" la la la 1243s ok 10 /shell/cmdline/9 1243s test cmdline: foo \ foo woo woo\ 1243s ok 11 /shell/cmdline/10 1243s test cmdline: foo "yada yada \$\"" 1243s ok 12 /shell/cmdline/11 1243s test cmdline: foo "c:\\" 1243s ok 13 /shell/cmdline/12 1243s test cmdline: foo # bla bla bla 1243s bar 1243s ok 14 /shell/cmdline/13 1243s test cmdline: foo a#b 1243s ok 15 /shell/cmdline/14 1243s test cmdline: #foo 1243s ok 16 /shell/cmdline/15 1243s test cmdline: foo bar \ 1243s ok 17 /shell/cmdline/16 1243s test cmdline: foo 'bar baz 1243s ok 18 /shell/cmdline/17 1243s test cmdline: foo '"bar" baz 1243s ok 19 /shell/cmdline/18 1243s test cmdline: 1243s ok 20 /shell/cmdline/19 1243s test cmdline: 1243s ok 21 /shell/cmdline/20 1243s test cmdline: # foo bar 1243s ok 22 /shell/cmdline/21 1243s test cmdline: # 1243s ok 23 /shell/cmdline/22 1243s test cmdline: foo '/bar/summer'\''09 tours.pdf' 1243s ok 24 /shell/cmdline/23 1243s # End of cmdline tests 1243s # Start of quote tests 1243s ok 25 /shell/quote/0 1243s ok 26 /shell/quote/1 1243s ok 27 /shell/quote/2 1243s ok 28 /shell/quote/3 1243s ok 29 /shell/quote/4 1243s ok 30 /shell/quote/5 1243s ok 31 /shell/quote/6 1243s # End of quote tests 1243s # Start of unquote tests 1243s ok 32 /shell/unquote/0 1243s ok 33 /shell/unquote/1 1243s ok 34 /shell/unquote/2 1243s ok 35 /shell/unquote/3 1243s ok 36 /shell/unquote/4 1243s ok 37 /shell/unquote/5 1243s ok 38 /shell/unquote/6 1243s ok 39 /shell/unquote/7 1243s ok - glib/shell.test 1243s # Running test: glib/trash.test 1243s ok 40 /shell/unquote/8 1243s ok 41 /shell/unquote/9 1243s ok 42 /shell/unquote/10 1243s ok 43 /shell/unquote/11 1243s ok 44 /shell/unquote/12 1243s ok 45 /shell/unquote/13 1243s ok 46 /shell/unquote/14 1243s ok 47 /shell/unquote/15 1243s ok 48 /shell/unquote/16 1243s ok 49 /shell/unquote/17 1243s ok 50 /shell/unquote/18 1243s ok 51 /shell/unquote/19 1243s ok 52 /shell/unquote/20 1243s # End of unquote tests 1243s # End of shell tests 1243s TAP version 14 1243s # random seed: R02Se5f6fe20e577ae0081c45fd0361a32f5 1243s 1..3 1243s # Start of trash tests 1243s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/251 1243s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1243s # File: /tmp/test-trashILJ3B3 (parent st_dev: 64769) 1243s # Home: /home/ubuntu (st_dev: 64769) 1243s ok 1 /trash/not-supported # SKIP The file has to be on another filesystem than the home trash to run this test 1243s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1522 1243s ok 2 /trash/symlinks # SKIP Directory '/home/ubuntu/.local' does not exist 1243s ok 3 /trash/long-filename 1243s # End of trash tests 1243s ok - glib/trash.test 1243s # Running test: glib/memory-input-stream.test 1243s TAP version 14 1243s # random seed: R02Se2b93eaf1bd2748533cf9abf58ddddec 1243s 1..6 1243s # Start of memory-input-stream tests 1243s ok - glib/memory-input-stream.test 1243s # Running test: glib/memory-monitor-poll.test 1243s ok 1 /memory-input-stream/read-chunks 1243s ok 2 /memory-input-stream/async 1243s ok 3 /memory-input-stream/seek 1243s ok 4 /memory-input-stream/truncate 1243s ok 5 /memory-input-stream/read-bytes 1243s ok 6 /memory-input-stream/from-bytes 1243s # End of memory-input-stream tests 1243s TAP version 14 1243s # random seed: R02S9237b66c6bf60343723566166009baa1 1243s 1..4 1243s # Start of memory-monitor-poll tests 1243s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation poll (GMemoryMonitorPoll) for ‘gio-memory-monitor’ 1243s ok 1 /memory-monitor-poll/dup-default 1243s # GLib-GIO-DEBUG: memory free ratio 0.190000 1243s # GLib-GIO-DEBUG: Send low memory signal with warning level 2 1243s ok 2 /memory-monitor-poll/critical-event 1243s # GLib-GIO-DEBUG: memory free ratio 0.290000 1243s # GLib-GIO-DEBUG: Send low memory signal with warning level 1 1243s ok 3 /memory-monitor-poll/medium-event 1243s # GLib-GIO-DEBUG: memory free ratio 0.390000 1243s # GLib-GIO-DEBUG: Send low memory signal with warning level 0 1243s ok 4 /memory-monitor-poll/low-event 1243s # End of memory-monitor-poll tests 1243s ok - glib/memory-monitor-poll.test 1243s # Running test: glib/init.test 1243s ok - glib/init.test 1243s # Running test: glib/dataset.test 1243s TAP version 14 1243s # random seed: R02S56267af356d827d3006efd7693f85580 1243s 1..2 1243s # Start of thread tests 1243s # Start of deprecated tests 1243s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_95X5B3/thread/deprecated/init/.dirs/home 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_95X5B3/thread/deprecated/init/.dirs/cache 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_95X5B3/thread/deprecated/init/.dirs/system-config1:/tmp/test_init_95X5B3/thread/deprecated/init/.dirs/system-config2 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_95X5B3/thread/deprecated/init/.dirs/config 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_95X5B3/thread/deprecated/init/.dirs/system-data1:/tmp/test_init_95X5B3/thread/deprecated/init/.dirs/system-data2 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_95X5B3/thread/deprecated/init/.dirs/data 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_95X5B3/thread/deprecated/init/.dirs/state 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_95X5B3/thread/deprecated/init/.dirs/runtime 1243s ok 1 /thread/deprecated/init 1243s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_95X5B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/home 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_95X5B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/cache 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_95X5B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config1:/tmp/test_init_95X5B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config2 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_95X5B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/config 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_95X5B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data1:/tmp/test_init_95X5B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data2 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_95X5B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/data 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_95X5B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/state 1243s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_95X5B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/runtime 1243s ok 2 /thread/deprecated/init-with-errorcheck-mutexes 1243s # End of deprecated tests 1243s # End of thread tests 1243s TAP version 14 1243s # random seed: R02Sff1a1545226e877287efc1bf551a7892 1243s 1..15 1243s # Start of quark tests 1243s ok 1 /quark/basic 1243s ok 2 /quark/string 1243s # End of quark tests 1243s # Start of dataset tests 1243s ok 3 /dataset/basic 1243s ok 4 /dataset/id 1243s ok 5 /dataset/full 1243s ok 6 /dataset/foreach 1243s ok 7 /dataset/destroy 1243s # End of dataset tests 1243s # Start of datalist tests 1243s ok 8 /datalist/id 1243s ok 9 /datalist/recursive-clear 1243s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1243s ok 10 /datalist/id-remove-multiple 1243s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1243s ok 11 /datalist/id-remove-multiple-destroy-order 1243s ok 12 /datalist/update-atomic 1243s # Start of basic tests 1243s ok 13 /datalist/basic/few 1243s ok 14 /datalist/basic/many 1243s # End of basic tests 1243s # Start of id-remove-multiple tests 1243s ok - glib/dataset.test 1243s ok 15 /datalist/id-remove-multiple/resize 1243s # End of id-remove-multiple tests 1243s # End of datalist tests 1243s # Running test: glib/async-close-output-stream.test 1243s ok - glib/async-close-output-stream.test 1243s TAP version 14 1243s # random seed: R02S03e41e7915ab84026c781d2a48eaba19 1243s 1..3 1243s # Start of close-async tests 1243s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1243s ok 1 /close-async/without-flush 1243s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1243s ok 2 /close-async/with-flush 1243s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1243s ok 3 /close-async/with-async-flush 1243s # End of close-async tests 1243s # Running test: glib/vfs.test 1243s TAP version 14 1243s # random seed: R02S22f384724461982f7218e8aa3e176022 1243s 1..3 1243s # Start of gvfs tests 1243s ok 1 /gvfs/local 1243s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1243s ok 2 /gvfs/register-scheme 1243s # Start of resource tests 1243s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3090 1243s # /gvfs/resource/malformed-escaping summary: Test that g_vfs_get_file_for_uri() returns an invalid file for an invalid URI 1243s ok 3 /gvfs/resource/malformed-escaping 1243s # End of resource tests 1243s # End of gvfs tests 1243s ok - glib/vfs.test 1243s # Running test: glib/search-utils.test 1243s TAP version 14 1243s # random seed: R02Sea837de45dda8eaeb5bf1eac78893268 1243s # GLib-DEBUG: Current user locale: C.UTF-8 1243s 1..6 1243s # Start of search tests 1243s # GLib-DEBUG: Started 1243s # GLib-DEBUG: 'he' - 'Hello World' should match: OK 1243s # GLib-DEBUG: 'wo' - 'Hello World' should match: OK 1243s # GLib-DEBUG: 'lo' - 'Hello World' should NOT match: OK 1243s # GLib-DEBUG: 'ld' - 'Hello World' should NOT match: OK 1243s # GLib-DEBUG: 'wo' - 'Hello-World' should match: OK 1243s # GLib-DEBUG: 'wo' - 'HelloWorld' should NOT match: OK 1243s ok 1 /search/basic 1243s # GLib-DEBUG: Started 1243s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1243s # GLib-DEBUG: 'gaetan' - 'Gaëtan' should match: OK 1243s # GLib-DEBUG: 'ele' - 'élève' should match: OK 1243s # GLib-DEBUG: 'AzaÏs' - 'Azais' should NOT match: OK 1243s # GLib-DEBUG: 'Azais' - 'AzaÏs' should match: OK 1243s ok 2 /search/composed 1243s # GLib-DEBUG: Started 1243s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 1243s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1243s ok 3 /search/decomposed 1243s # GLib-DEBUG: Started 1243s ok - glib/search-utils.test 1243s # GLib-DEBUG: 'ist' - 'İstanbul' should match: OK 1243s # GLib-DEBUG: 'diyarbakir' - 'Diyarbakır' should match: OK 1243s ok 4 /search/turkish 1243s # GLib-DEBUG: Started 1243s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1243s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 1243s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1243s ok 5 /search/c_locale_unicode 1243s # GLib-DEBUG: Started 1243s # GLib-DEBUG: 'Xav Cla' - 'Xavier Claessens' should match: OK 1243s # GLib-DEBUG: 'Cla Xav' - 'Xavier Claessens' should match: OK 1243s # GLib-DEBUG: ' b ' - 'Foo Bar Baz' should match: OK 1243s # GLib-DEBUG: 'bar bazz' - 'Foo Bar Baz' should NOT match: OK 1243s ok 6 /search/multi_words 1243s # End of search tests 1243s # Running test: glib/bindinggroup.test 1243s TAP version 14 1243s # random seed: R02Sd6b9551ee7c0c16138be43cd23c2b067 1243s 1..11 1243s # Start of GObject tests 1243s # Start of BindingGroup tests 1243s ok 1 /GObject/BindingGroup/invalid 1243s ok 2 /GObject/BindingGroup/default 1243s ok 3 /GObject/BindingGroup/bidirectional 1243s ok 4 /GObject/BindingGroup/transform 1243s ok 5 /GObject/BindingGroup/transform-closures 1243s ok 6 /GObject/BindingGroup/same-object 1243s ok 7 /GObject/BindingGroup/weak-ref-source 1243s ok 8 /GObject/BindingGroup/weak-ref-target 1243s ok - glib/bindinggroup.test 1243s ok 9 /GObject/BindingGroup/properties 1243s ok 10 /GObject/BindingGroup/weak-notify-no-bindings 1243s ok 11 /GObject/BindingGroup/empty-closures 1243s # End of BindingGroup tests 1243s # End of GObject tests 1243s # Running test: glib/readwrite.test 1243s TAP version 14 1243s # random seed: R02Sdbdeb3c9a8af4f879c13c3752d51c48c 1243s 1..3 1243s # Start of readwrite tests 1243s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1243s ok 1 /readwrite/test_g_file_open_readwrite 1243s ok 2 /readwrite/test_g_file_create_readwrite 1243s ok - glib/readwrite.test 1243s # Running test: glib/pattern.test 1243s ok 3 /readwrite/test_g_file_replace_readwrite 1243s # End of readwrite tests 1243s TAP version 14 1243s # random seed: R02S39a7cbeb599e614e9c13aa106efef687 1243s 1..90 1243s # Start of pattern tests 1243s # Start of compile tests 1243s ok 1 /pattern/compile/0 1243s ok 2 /pattern/compile/1 1243s ok 3 /pattern/compile/2 1243s ok - glib/pattern.test 1243s # Running test: glib/once.test 1243s ok 4 /pattern/compile/3 1243s ok 5 /pattern/compile/4 1243s ok 6 /pattern/compile/5 1243s ok 7 /pattern/compile/6 1243s ok 8 /pattern/compile/7 1243s ok 9 /pattern/compile/8 1243s ok 10 /pattern/compile/9 1243s ok 11 /pattern/compile/10 1243s ok 12 /pattern/compile/11 1243s ok 13 /pattern/compile/12 1243s ok 14 /pattern/compile/13 1243s # End of compile tests 1243s # Start of copy tests 1243s ok 15 /pattern/copy/0 1243s ok 16 /pattern/copy/1 1243s ok 17 /pattern/copy/2 1243s ok 18 /pattern/copy/3 1243s ok 19 /pattern/copy/4 1243s ok 20 /pattern/copy/5 1243s ok 21 /pattern/copy/6 1243s ok 22 /pattern/copy/7 1243s ok 23 /pattern/copy/8 1243s ok 24 /pattern/copy/9 1243s ok 25 /pattern/copy/10 1243s ok 26 /pattern/copy/11 1243s ok 27 /pattern/copy/12 1243s ok 28 /pattern/copy/13 1243s # End of copy tests 1243s # Start of match tests 1243s ok 29 /pattern/match/0 1243s ok 30 /pattern/match/1 1243s ok 31 /pattern/match/2 1243s ok 32 /pattern/match/3 1243s ok 33 /pattern/match/4 1243s ok 34 /pattern/match/5 1243s ok 35 /pattern/match/6 1243s ok 36 /pattern/match/7 1243s ok 37 /pattern/match/8 1243s ok 38 /pattern/match/9 1243s ok 39 /pattern/match/10 1243s ok 40 /pattern/match/11 1243s ok 41 /pattern/match/12 1243s ok 42 /pattern/match/13 1243s ok 43 /pattern/match/14 1243s ok 44 /pattern/match/15 1243s ok 45 /pattern/match/16 1243s ok 46 /pattern/match/17 1243s ok 47 /pattern/match/18 1243s ok 48 /pattern/match/19 1243s ok 49 /pattern/match/20 1243s ok 50 /pattern/match/21 1243s ok 51 /pattern/match/22 1243s ok 52 /pattern/match/23 1243s ok 53 /pattern/match/24 1243s ok 54 /pattern/match/25 1243s ok 55 /pattern/match/26 1243s ok 56 /pattern/match/27 1243s ok 57 /pattern/match/28 1243s ok 58 /pattern/match/29 1243s ok 59 /pattern/match/30 1243s ok 60 /pattern/match/31 1243s ok 61 /pattern/match/32 1243s ok 62 /pattern/match/33 1243s ok 63 /pattern/match/34 1243s ok 64 /pattern/match/35 1243s ok 65 /pattern/match/36 1243s ok 66 /pattern/match/37 1243s ok 67 /pattern/match/38 1243s ok 68 /pattern/match/39 1243s ok 69 /pattern/match/40 1243s ok 70 /pattern/match/41 1243s ok 71 /pattern/match/42 1243s ok 72 /pattern/match/43 1243s ok 73 /pattern/match/44 1243s ok 74 /pattern/match/45 1243s ok 75 /pattern/match/46 1243s ok 76 /pattern/match/47 1243s ok 77 /pattern/match/48 1243s ok 78 /pattern/match/49 1243s ok 79 /pattern/match/50 1243s # End of match tests 1243s # Start of equal tests 1243s ok 80 /pattern/equal/0 1243s ok 81 /pattern/equal/1 1243s ok 82 /pattern/equal/2 1243s ok 83 /pattern/equal/3 1243s ok 84 /pattern/equal/4 1243s ok 85 /pattern/equal/5 1243s ok 86 /pattern/equal/6 1243s ok 87 /pattern/equal/7 1243s ok 88 /pattern/equal/8 1243s ok 89 /pattern/equal/9 1243s ok 90 /pattern/equal/10 1243s # End of equal tests 1243s # End of pattern tests 1243s TAP version 14 1243s # random seed: R02Sd21c478329717c4dd4733ee301f13e14 1243s 1..5 1243s # Start of once tests 1243s # /once/single-threaded summary: Test g_once() usage from a single thread 1243s ok 1 /once/single-threaded 1243s # /once/multi-threaded summary: Test g_once() usage from multiple threads 1243s ok 2 /once/multi-threaded 1243s # End of once tests 1243s # Start of once-init tests 1243s # /once-init/single-threaded summary: Test g_once_init_{enter,leave}() usage from a single thread 1243s ok 3 /once-init/single-threaded 1243s # /once-init/multi-threaded summary: Test g_once_init_{enter,leave}() usage from multiple threads 1243s ok - glib/once.test 1243s # Running test: glib/private.test 1243s ok 4 /once-init/multi-threaded 1243s # /once-init/string summary: Test g_once_init_{enter,leave}() usage with a string 1243s ok 5 /once-init/string 1243s # End of once-init tests 1243s TAP version 14 1243s # random seed: R02S453a6a210e60d03ef4fec6c35c4d8f83 1243s 1..8 1243s # Start of thread tests 1243s ok 1 /thread/private1 1245s ok 2 /thread/private2 1245s # slow test /thread/private2 executed in 1.09 secs 1245s ok 3 /thread/private3 1245s ok 4 /thread/staticprivate1 1245s ok 5 /thread/staticprivate2 1245s ok 6 /thread/staticprivate3 1246s # Executing: glib/private.test 1246s ok 7 /thread/staticprivate4 1246s # slow test /thread/staticprivate4 executed in 1.09 secs 1246s ok 8 /thread/staticprivate5 1246s # End of thread tests 1246s ok - glib/private.test 1246s # Running test: glib/cxx-17.test 1246s TAP version 14 1246s # random seed: R02Scf80f333bd35c001932244ce5e4fa9f2 1246s 1..2 1246s # Start of gtask tests 1246s # 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. 1246s ok 1 /gtask/name 1246s # Start of name tests 1246s # 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. 1246s ok 2 /gtask/name/macro-wrapper 1246s ok - glib/cxx-17.test 1246s # Running test: glib/g-file.test 1246s # End of name tests 1246s # End of gtask tests 1246s TAP version 14 1246s # random seed: R02Sebeae3e040f948d5d60b4c94e22b76d7 1246s 1..8 1246s # Start of g-file tests 1246s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1246s ok 1 /g-file/test_g_file_new_null 1246s ok 2 /g-file/test_g_file_new_for_path 1246s ok 3 /g-file/test_g_file_new_for_uri 1246s ok 4 /g-file/test_g_file_dup 1246s ok 5 /g-file/test_g_file_get_parse_name_utf8 1246s file:///tmp/test-tmp-glib_g-file.test-Z4GBC3 1246s file:///tmp 1246s file:///tmp 1246s file:////UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1246s file:///UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1246s ok 6 /g-file/test_g_file_new_for_commandline_arg 1246s /dir1 /dir1/dir2/dir3/ 1246s /dir1/ /dir1/dir2/dir3/ 1246s /dir1 /dir1/dir2/dir3 1246s /dir1/ /dir1/dir2/dir3 1246s /tmp/ /something/ 1246s /dir1/dir2 /dir1/ 1246s //dir1/new //dir1/new/dir2/dir3 1246s /dir/UTF-8 příliš žluťoučký kůň /dir/UTF-8 příliš žluťoučký kůň/dir2 1246s file:///dir1 file:///dir1/dir2/dir3/ 1246s file:///dir1/ file:///dir1/dir2/dir3/ 1246s file:///dir1 file:///dir1/dir2/dir3 1246s file:///dir1/ file:///dir1/dir2/dir3 1246s file:///tmp/ file:///something/ 1246s file:///dir1/dir2 file:///dir1/ 1246s file:////dir1/new file:////dir1/new/dir2/dir3 1246s 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 1246s ok 7 /g-file/test_g_file_has_prefix 1246s ok 8 /g-file/test_g_file_get_parent_child 1246s # End of g-file tests 1246s ok - glib/g-file.test 1246s # Running test: glib/module-test-library.test 1246s ok - glib/module-test-library.test 1246s # Running test: glib/notify-init.test 1246s ok - glib/notify-init.test 1246s # Running test: glib/queue.test 1246s TAP version 14 1246s # random seed: R02S666d5cfda684a1d5d840e1fc6812d95b 1246s 1..3 1246s # Start of module tests 1246s ok 1 /module/basics 1246s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 1246s ok 2 /module/invalid-libtool-archive 1246s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 1246s ok 3 /module/local-binding 1246s # End of module tests 1246s TAP version 14 1246s # random seed: R02S658eb7dc5392eee3c74fe0b4ad4de193 1246s 1..1 1246s # Start of properties tests 1246s # /properties/notify-in-init summary: Test that emitting notify with a handler already connected in test_object_init() works 1246s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 1246s ok 1 /properties/notify-in-init 1246s # End of properties tests 1246s TAP version 14 1246s # random seed: R02S965c931474663d62acd761705fb12a8a 1246s 1..12 1246s # Start of queue tests 1246s ok 1 /queue/basic 1246s ok 2 /queue/copy 1246s ok 3 /queue/off-by-one 1246s ok 4 /queue/find-custom 1246s ok 5 /queue/static 1246s ok 6 /queue/clear 1246s ok 7 /queue/free-full 1246s ok 8 /queue/clear-full 1246s ok 9 /queue/insert-sibling-link 1246s ok 10 /queue/push-nth-link 1246s # Start of clear-full tests 1246s ok 11 /queue/clear-full/noop 1246s # End of clear-full tests 1246s # Start of random tests 1246s ok - glib/queue.test 1246s ok 12 /queue/random/seed:425278620 1246s # End of random tests 1246s # End of queue tests 1246s # Running test: glib/srvtarget.test 1246s TAP version 14 1246s # random seed: R02S4acc8985509cc738fe5057a363da4498 1246s 1..1 1246s # Start of srvtarget tests 1246s ok 1 /srvtarget/srv-target-ordering 1246s # slow test /srvtarget/srv-target-ordering executed in 0.54 secs 1246s # End of srvtarget tests 1246s ok - glib/srvtarget.test 1246s # Running test: glib/overflow-fallback.test 1246s TAP version 14 1246s # random seed: R02Sa7bbe08773f1b7cadaaa36130abd09cb 1246s 1..6 1246s # Start of glib tests 1246s # Start of checked-math tests 1246s ok 1 /glib/checked-math/guint-add 1246s ok 2 /glib/checked-math/guint-mul 1246s ok 3 /glib/checked-math/guint64-add 1246s ok 4 /glib/checked-math/guint64-mul 1246s ok 5 /glib/checked-math/gsize-add 1246s ok 6 /glib/checked-math/gsize-mul 1246s # End of checked-math tests 1246s # End of glib tests 1246s ok - glib/overflow-fallback.test 1246s # Running test: glib/messages-low-memory.py.test 1246s TAP version 13 1246s ok 1 __main__.TestMessagesLowMemory.test_message_memory_allocation_failure 1246s # messages-low-memory: /usr/libexec/installed-tests/glib/messages-low-memory 1246s # tmpdir: /tmp/tmp36w8oxhm 1246s # Running: ['/usr/libexec/installed-tests/glib/messages-low-memory'] 1246s # Return code: -6 1246s # Output: 1246s # 1246s # Error: 1246s # GLib-Message: 19:19:34.795: Simulates a situation in which we were crashing because of low-memory, leading malloc to fail instead of aborting 1246s # GLib-Message: 19:19:34.795: bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2753 1246s # ../../../glib/gprintf.c:361: failed to allocate memory 1246s 1..1 1246s ok - glib/messages-low-memory.py.test 1246s # Running test: glib/pollable.test 1246s ok - glib/pollable.test 1246s # Running test: glib/thread-deprecated.test 1246s TAP version 14 1246s # random seed: R02S208d71e71bac773080d5bd1fbd897ab6 1246s 1..6 1246s # Start of pollable tests 1246s ok 1 /pollable/converter 1246s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1246s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa0ebdf470 and GSocketClientAsyncConnectData 0x2aa0ebe12f0 1246s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1246s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1246s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa0ebece00 for GSocketClientAsyncConnectData 0x2aa0ebe12f0 1246s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1246s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1246s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1246s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1246s ok 2 /pollable/socket 1246s # Start of unix tests 1246s # /pollable/unix/pipe summary: Test that pipes are considered pollable, just like sockets 1246s ok 3 /pollable/unix/pipe 1246s # /pollable/unix/pty summary: Test that PTYs are considered pollable 1246s ok 4 /pollable/unix/pty 1246s # /pollable/unix/file summary: Test that regular files are not considered pollable 1246s ok 5 /pollable/unix/file 1246s # /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 1246s ok 6 /pollable/unix/nulldev 1246s # End of unix tests 1246s # End of pollable tests 1246s TAP version 14 1246s # random seed: R02Sb8f365ece53519683476923ef5894f89 1246s 1..6 1246s # Start of thread tests 1247s ok 1 /thread/mutex 1247s ok 2 /thread/static-rec-mutex 1251s # Executing: glib/thread-deprecated.test 1251s ok 3 /thread/static-private 1251s # slow test /thread/static-private executed in 4.20 secs 1256s # Executing: glib/thread-deprecated.test 1256s ok 4 /thread/static-rw-lock 1256s # slow test /thread/static-rw-lock executed in 5.00 secs 1256s ok 5 /thread/once 1261s # Executing: glib/thread-deprecated.test 1266s # Executing: glib/thread-deprecated.test 1266s ok 6 /thread/rerun-all 1266s # slow test /thread/rerun-all executed in 10.02 secs 1266s # End of thread tests 1266s ok - glib/thread-deprecated.test 1266s # Running test: glib/gdbus-introspection.test 1266s TAP version 14 1266s # random seed: R02S3e93e5af936cc56628ea62f5f4fa1723 1266s 1..4 1266s # Start of gdbus tests 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-parser/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-parser/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-parser/.dirs/system-config1:/tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-parser/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-parser/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-parser/.dirs/system-data1:/tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-parser/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-parser/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-parser/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-parser/.dirs/runtime 1266s ok 1 /gdbus/introspection-parser 1266s ok - glib/gdbus-introspection.test 1266s # Running test: glib/rand.test 1266s ok - glib/rand.test 1266s # Running test: glib/gdbus-test-codegen.test 1266s ok - glib/gdbus-test-codegen.test 1266s # Running test: glib/contenttype.test 1266s ok - glib/contenttype.test 1266s # Running test: glib/utf8-validate.test 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-generate/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-generate/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-generate/.dirs/system-config1:/tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-generate/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-generate/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-generate/.dirs/system-data1:/tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-generate/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-generate/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-generate/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-generate/.dirs/runtime 1266s ok 2 /gdbus/introspection-generate 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-default-direction/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-default-direction/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-default-direction/.dirs/system-config1:/tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-default-direction/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-default-direction/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-default-direction/.dirs/system-data1:/tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-default-direction/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-default-direction/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-default-direction/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-default-direction/.dirs/runtime 1266s ok 3 /gdbus/introspection-default-direction 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-extra-data/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-extra-data/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-extra-data/.dirs/system-config1:/tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-extra-data/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-extra-data/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-extra-data/.dirs/system-data1:/tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-extra-data/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-extra-data/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-extra-data/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_GNAZB3/gdbus/introspection-extra-data/.dirs/runtime 1266s ok 4 /gdbus/introspection-extra-data 1266s # End of gdbus tests 1266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1266s TAP version 14 1266s # random seed: R02S14d8f7a9a252d582407231419640920a 1266s 1..2 1266s # Start of rand tests 1266s ok 1 /rand/test-rand 1266s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=502560 1266s ok 2 /rand/double-range 1266s # End of rand tests 1266s TAP version 14 1266s # random seed: R02S5ccb6895ce39d00bab409d189b85753c 1266s 1..8 1266s # Start of gdbus tests 1266s # Start of codegen tests 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/annotations/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/annotations/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/annotations/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/annotations/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/annotations/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/annotations/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/annotations/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/annotations/.dirs/runtime 1266s ok 1 /gdbus/codegen/annotations 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/interface_stability/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/interface_stability/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/interface_stability/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/interface_stability/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/interface_stability/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/interface_stability/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/interface_stability/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/interface_stability/.dirs/runtime 1266s ok 2 /gdbus/codegen/interface_stability 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/object-manager/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/object-manager/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/object-manager/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/object-manager/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/object-manager/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/object-manager/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/object-manager/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/object-manager/.dirs/runtime 1266s ok 3 /gdbus/codegen/object-manager 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/property-naming/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/property-naming/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/property-naming/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/property-naming/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/property-naming/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/property-naming/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/property-naming/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/property-naming/.dirs/runtime 1266s ok 4 /gdbus/codegen/property-naming 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/autocleanups/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/autocleanups/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/autocleanups/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/autocleanups/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/autocleanups/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/autocleanups/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/autocleanups/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/autocleanups/.dirs/runtime 1266s ok 5 /gdbus/codegen/autocleanups 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/deprecations/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/deprecations/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/deprecations/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/deprecations/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/deprecations/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/deprecations/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/deprecations/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/deprecations/.dirs/runtime 1266s ok 6 /gdbus/codegen/deprecations 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/standalone-interface-info/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/standalone-interface-info/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/standalone-interface-info/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/standalone-interface-info/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/standalone-interface-info/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/standalone-interface-info/.dirs/runtime 1266s ok 7 /gdbus/codegen/standalone-interface-info 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/unix-fd-list/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/unix-fd-list/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/unix-fd-list/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/unix-fd-list/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/unix-fd-list/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/unix-fd-list/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/unix-fd-list/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_OAG4B3/gdbus/codegen/unix-fd-list/.dirs/runtime 1266s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1266s ok 8 /gdbus/codegen/unix-fd-list 1266s # End of codegen tests 1266s # End of gdbus tests 1266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1266s TAP version 14 1266s # random seed: R02S9db8fbbc91eedcddd8c1e6136380f76d 1266s 1..14 1266s # Start of contenttype tests 1266s ok 1 /contenttype/guess 1266s ok 2 /contenttype/guess_svg_from_data 1266s ok 3 /contenttype/mime_to_content # SKIP mime from content type test not implemented on UNIX 1266s ok 4 /contenttype/mime_from_content # SKIP mime from content type test not implemented on UNIX 1266s ok 5 /contenttype/unknown 1266s ok 6 /contenttype/subtype 1266s ok 7 /contenttype/list 1266s ok 8 /contenttype/executable 1266s ok 9 /contenttype/description 1266s ok 10 /contenttype/icon 1266s ok 11 /contenttype/symbolic-icon 1266s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1266s ok 12 /contenttype/tree 1266s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3168 1266s ok 13 /contenttype/tree_invalid_encoding 1266s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=782311 1266s ok 14 /contenttype/test_type_is_a_special_case 1266s # End of contenttype tests 1266s TAP version 14 1266s # random seed: R02Sb818831ea522d0fca40aa5958ee5179d 1266s 1..238 1266s # Start of utf8 tests 1266s # Vector 0 1266s # Vector 1 1266s # Vector 2 1266s # Vector 3 1266s # Vector 4 1266s # Vector 5 1266s # Vector 6 1266s # Vector 7 1266s # Vector 8 1266s # Vector 9 1266s # Vector 10 1266s # Vector 11 1266s # Vector 12 1266s # Vector 13 1266s # Vector 14 1266s # Vector 15 1266s # Vector 16 1266s # Vector 17 1266s # Vector 18 1266s # Vector 19 1266s # Vector 20 1266s # Vector 21 1266s # Vector 22 1266s # Vector 23 1266s # Vector 24 1266s # Vector 25 1266s # Vector 26 1266s # Vector 27 1266s ok 1 /utf8/get-char-validated 1266s # Start of validate tests 1266s ok 2 /utf8/validate/0 1266s ok 3 /utf8/validate/1 1266s ok 4 /utf8/validate/2 1266s ok 5 /utf8/validate/3 1266s ok 6 /utf8/validate/4 1266s ok 7 /utf8/validate/5 1266s ok 8 /utf8/validate/6 1266s ok 9 /utf8/validate/7 1266s ok 10 /utf8/validate/8 1266s ok 11 /utf8/validate/9 1266s ok 12 /utf8/validate/10 1266s ok 13 /utf8/validate/11 1266s ok 14 /utf8/validate/12 1266s ok 15 /utf8/validate/13 1266s ok 16 /utf8/validate/14 1266s ok 17 /utf8/validate/15 1266s ok 18 /utf8/validate/16 1266s ok 19 /utf8/validate/17 1266s ok 20 /utf8/validate/18 1266s ok 21 /utf8/validate/19 1266s ok 22 /utf8/validate/20 1266s ok 23 /utf8/validate/21 1266s ok 24 /utf8/validate/22 1266s ok 25 /utf8/validate/23 1266s ok 26 /utf8/validate/24 1266s ok 27 /utf8/validate/25 1266s ok 28 /utf8/validate/26 1266s ok 29 /utf8/validate/27 1266s ok 30 /utf8/validate/28 1266s ok 31 /utf8/validate/29 1266s ok 32 /utf8/validate/30 1266s ok 33 /utf8/validate/31 1266s ok 34 /utf8/validate/32 1266s ok 35 /utf8/validate/33 1266s ok 36 /utf8/validate/34 1266s ok 37 /utf8/validate/35 1266s ok 38 /utf8/validate/36 1266s ok 39 /utf8/validate/37 1266s ok 40 /utf8/validate/38 1266s ok 41 /utf8/validate/39 1266s ok 42 /utf8/validate/40 1266s ok 43 /utf8/validate/41 1266s ok 44 /utf8/validate/42 1266s ok 45 /utf8/validate/43 1266s ok 46 /utf8/validate/44 1266s ok 47 /utf8/validate/45 1266s ok 48 /utf8/validate/46 1266s ok 49 /utf8/validate/47 1266s ok 50 /utf8/validate/48 1266s ok 51 /utf8/validate/49 1266s ok 52 /utf8/validate/50 1266s ok 53 /utf8/validate/51 1266s ok 54 /utf8/validate/52 1266s ok 55 /utf8/validate/53 1266s ok 56 /utf8/validate/54 1266s ok 57 /utf8/validate/55 1266s ok 58 /utf8/validate/56 1266s ok 59 /utf8/validate/57 1266s ok 60 /utf8/validate/58 1266s ok 61 /utf8/validate/59 1266s ok 62 /utf8/validate/60 1266s ok 63 /utf8/validate/61 1266s ok 64 /utf8/validate/62 1266s ok 65 /utf8/validate/63 1266s ok 66 /utf8/validate/64 1266s ok 67 /utf8/validate/65 1266s ok 68 /utf8/validate/66 1266s ok 69 /utf8/validate/67 1266s ok 70 /utf8/validate/68 1266s ok 71 /utf8/validate/69 1266s ok 72 /utf8/validate/70 1266s ok 73 /utf8/validate/71 1266s ok 74 /utf8/validate/72 1266s ok 75 /utf8/validate/73 1266s ok 76 /utf8/validate/74 1266s ok 77 /utf8/validate/75 1266s ok 78 /utf8/validate/76 1266s ok 79 /utf8/validate/77 1266s ok 80 /utf8/validate/78 1266s ok 81 /utf8/validate/79 1266s ok 82 /utf8/validate/80 1266s ok 83 /utf8/validate/81 1266s ok 84 /utf8/validate/82 1266s ok 85 /utf8/validate/83 1266s ok 86 /utf8/validate/84 1266s ok 87 /utf8/validate/85 1266s ok 88 /utf8/validate/86 1266s ok 89 /utf8/validate/87 1266s ok 90 /utf8/validate/88 1266s ok 91 /utf8/validate/89 1266s ok 92 /utf8/validate/90 1266s ok 93 /utf8/validate/91 1266s ok 94 /utf8/validate/92 1266s ok 95 /utf8/validate/93 1266s ok 96 /utf8/validate/94 1266s ok 97 /utf8/validate/95 1266s ok 98 /utf8/validate/96 1266s ok 99 /utf8/validate/97 1266s ok 100 /utf8/validate/98 1266s ok 101 /utf8/validate/99 1266s ok 102 /utf8/validate/100 1266s ok 103 /utf8/validate/101 1266s ok 104 /utf8/validate/102 1266s ok 105 /utf8/validate/103 1266s ok 106 /utf8/validate/104 1266s ok 107 /utf8/validate/105 1266s ok 108 /utf8/validate/106 1266s ok 109 /utf8/validate/107 1266s ok 110 /utf8/validate/108 1266s ok 111 /utf8/validate/109 1266s ok 112 /utf8/validate/110 1266s ok 113 /utf8/validate/111 1266s ok 114 /utf8/validate/112 1266s ok 115 /utf8/validate/113 1266s ok 116 /utf8/validate/114 1266s ok 117 /utf8/validate/115 1266s ok 118 /utf8/validate/116 1266s ok 119 /utf8/validate/117 1266s ok 120 /utf8/validate/118 1266s ok 121 /utf8/validate/119 1266s ok 122 /utf8/validate/120 1266s ok 123 /utf8/validate/121 1266s ok 124 /utf8/validate/122 1266s ok 125 /utf8/validate/123 1266s ok 126 /utf8/validate/124 1266s ok 127 /utf8/validate/125 1266s ok 128 /utf8/validate/126 1266s ok 129 /utf8/validate/127 1266s ok 130 /utf8/validate/128 1266s ok 131 /utf8/validate/129 1266s ok 132 /utf8/validate/130 1266s ok 133 /utf8/validate/131 1266s ok 134 /utf8/validate/132 1266s ok 135 /utf8/validate/133 1266s ok 136 /utf8/validate/134 1266s ok 137 /utf8/validate/135 1266s ok 138 /utf8/validate/136 1266s ok 139 /utf8/validate/137 1266s ok 140 /utf8/validate/138 1266s ok 141 /utf8/validate/139 1266s ok 142 /utf8/validate/140 1266s ok 143 /utf8/validate/141 1266s ok 144 /utf8/validate/142 1266s ok 145 /utf8/validate/143 1266s ok 146 /utf8/validate/144 1266s ok 147 /utf8/validate/145 1266s ok 148 /utf8/validate/146 1266s ok 149 /utf8/validate/147 1266s ok 150 /utf8/validate/148 1266s ok 151 /utf8/validate/149 1266s ok 152 /utf8/validate/150 1266s ok 153 /utf8/validate/151 1266s ok 154 /utf8/validate/152 1266s ok 155 /utf8/validate/153 1266s ok 156 /utf8/validate/154 1266s ok 157 /utf8/validate/155 1266s ok 158 /utf8/validate/156 1266s ok 159 /utf8/validate/157 1266s ok 160 /utf8/validate/158 1266s ok 161 /utf8/validate/159 1266s ok 162 /utf8/validate/160 1266s ok 163 /utf8/validate/161 1266s ok 164 /utf8/validate/162 1266s ok 165 /utf8/validate/163 1266s ok 166 /utf8/validate/164 1266s ok - glib/utf8-validate.test 1266s # Running test: glib/error.test 1266s ok - glib/error.test 1266s # Running test: glib/unix-streams.test 1266s ok 167 /utf8/validate/165 1266s ok 168 /utf8/validate/166 1266s ok 169 /utf8/validate/167 1266s ok 170 /utf8/validate/168 1266s ok 171 /utf8/validate/169 1266s ok 172 /utf8/validate/170 1266s ok 173 /utf8/validate/171 1266s ok 174 /utf8/validate/172 1266s ok 175 /utf8/validate/173 1266s ok 176 /utf8/validate/174 1266s ok 177 /utf8/validate/175 1266s ok 178 /utf8/validate/176 1266s ok 179 /utf8/validate/177 1266s ok 180 /utf8/validate/178 1266s ok 181 /utf8/validate/179 1266s ok 182 /utf8/validate/180 1266s ok 183 /utf8/validate/181 1266s ok 184 /utf8/validate/182 1266s ok 185 /utf8/validate/183 1266s ok 186 /utf8/validate/184 1266s ok 187 /utf8/validate/185 1266s ok 188 /utf8/validate/186 1266s ok 189 /utf8/validate/187 1266s ok 190 /utf8/validate/188 1266s ok 191 /utf8/validate/189 1266s ok 192 /utf8/validate/190 1266s ok 193 /utf8/validate/191 1266s ok 194 /utf8/validate/192 1266s ok 195 /utf8/validate/193 1266s ok 196 /utf8/validate/194 1266s ok 197 /utf8/validate/195 1266s ok 198 /utf8/validate/196 1266s ok 199 /utf8/validate/197 1266s ok 200 /utf8/validate/198 1266s ok 201 /utf8/validate/199 1266s ok 202 /utf8/validate/200 1266s ok 203 /utf8/validate/201 1266s ok 204 /utf8/validate/202 1266s ok 205 /utf8/validate/203 1266s ok 206 /utf8/validate/204 1266s ok 207 /utf8/validate/205 1266s ok 208 /utf8/validate/206 1266s ok 209 /utf8/validate/207 1266s ok 210 /utf8/validate/208 1266s ok 211 /utf8/validate/209 1266s ok 212 /utf8/validate/210 1266s ok 213 /utf8/validate/211 1266s ok 214 /utf8/validate/212 1266s ok 215 /utf8/validate/213 1266s ok 216 /utf8/validate/214 1266s ok 217 /utf8/validate/215 1266s ok 218 /utf8/validate/216 1266s ok 219 /utf8/validate/217 1266s ok 220 /utf8/validate/218 1266s ok 221 /utf8/validate/219 1266s ok 222 /utf8/validate/220 1266s ok 223 /utf8/validate/221 1266s ok 224 /utf8/validate/222 1266s ok 225 /utf8/validate/223 1266s ok 226 /utf8/validate/224 1266s ok 227 /utf8/validate/225 1266s ok 228 /utf8/validate/226 1266s ok 229 /utf8/validate/227 1266s ok 230 /utf8/validate/228 1266s ok 231 /utf8/validate/229 1266s ok 232 /utf8/validate/230 1266s ok 233 /utf8/validate/231 1266s ok 234 /utf8/validate/232 1266s ok 235 /utf8/validate/233 1266s ok 236 /utf8/validate/234 1266s ok 237 /utf8/validate/235 1266s ok 238 /utf8/validate/236 1266s # End of validate tests 1266s # End of utf8 tests 1266s TAP version 14 1266s # random seed: R02S1db74de98335461a87cc34eb45479ee3 1266s 1..3 1266s # Start of error tests 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_F2P3B3/error/from-errno/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_F2P3B3/error/from-errno/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_F2P3B3/error/from-errno/.dirs/system-config1:/tmp/test_error_F2P3B3/error/from-errno/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_F2P3B3/error/from-errno/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_F2P3B3/error/from-errno/.dirs/system-data1:/tmp/test_error_F2P3B3/error/from-errno/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_F2P3B3/error/from-errno/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_F2P3B3/error/from-errno/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_F2P3B3/error/from-errno/.dirs/runtime 1266s ok 1 /error/from-errno 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_F2P3B3/error/from-file-error/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_F2P3B3/error/from-file-error/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_F2P3B3/error/from-file-error/.dirs/system-config1:/tmp/test_error_F2P3B3/error/from-file-error/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_F2P3B3/error/from-file-error/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_F2P3B3/error/from-file-error/.dirs/system-data1:/tmp/test_error_F2P3B3/error/from-file-error/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_F2P3B3/error/from-file-error/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_F2P3B3/error/from-file-error/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_F2P3B3/error/from-file-error/.dirs/runtime 1266s ok 2 /error/from-file-error 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_F2P3B3/error/from-win32-error/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_F2P3B3/error/from-win32-error/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_F2P3B3/error/from-win32-error/.dirs/system-config1:/tmp/test_error_F2P3B3/error/from-win32-error/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_F2P3B3/error/from-win32-error/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_F2P3B3/error/from-win32-error/.dirs/system-data1:/tmp/test_error_F2P3B3/error/from-win32-error/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_F2P3B3/error/from-win32-error/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_F2P3B3/error/from-win32-error/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_F2P3B3/error/from-win32-error/.dirs/runtime 1266s ok 3 /error/from-win32-error # SKIP Windows error codes can only be checked on Windows 1266s # End of error tests 1266s TAP version 14 1266s # random seed: R02S83cbe8613f361792aa30bce254cfd4a7 1266s 1..9 1266s # Start of unix-streams tests 1266s ok 1 /unix-streams/basic 1267s ok 2 /unix-streams/pipe-io-test 1267s # slow test /unix-streams/pipe-io-test executed in 0.50 secs 1267s ok 3 /unix-streams/nonblocking-io-test 1267s # slow test /unix-streams/nonblocking-io-test executed in 0.50 secs 1267s ok 4 /unix-streams/read_write 1267s ok 5 /unix-streams/read_writev 1267s ok 6 /unix-streams/write-wouldblock 1267s ok 7 /unix-streams/writev-wouldblock 1267s ok 8 /unix-streams/write-async-wouldblock 1267s ok 9 /unix-streams/writev-async-wouldblock 1267s # End of unix-streams tests 1267s ok - glib/unix-streams.test 1267s # Running test: glib/signals-refcount1.test 1267s TAP version 14 1267s # random seed: R02S089f556d74cf590e1e4089894c692048 1267s 1..1 1267s # Start of gobject tests 1267s # Start of refcount tests 1267s # init 0x2aa0293c490 1267s # 1267s # init 0x2aa02934580 1267s # 1271s # Executing: glib/signals-refcount1.test 1272s ok - glib/signals-refcount1.test 1272s # dispose 0x2aa0293c490! 1272s # 1272s # dispose 0x2aa02934580! 1272s # 1272s ok 1 /gobject/refcount/signals 1272s # slow test /gobject/refcount/signals executed in 5.00 secs 1272s # End of refcount tests 1272s # End of gobject tests 1272s # Running test: glib/onceinit.test 1272s TAP version 14 1272s # random seed: R02Sbb55fd8198bbd5380f8b48fbdcaca70b 1272s 1..1 1272s # Start of thread tests 1272s ok - glib/onceinit.test 1272s ok 1 /thread/onceinit 1272s # End of thread tests 1272s # Running test: glib/atomic-c-99.test 1272s TAP version 14 1272s # random seed: R02Sd0b78cbbb5918366c77edb1b2db9022e 1272s 1..2 1272s # Start of atomic tests 1272s ok 1 /atomic/types 1272s ok - glib/atomic-c-99.test 1272s ok 2 /atomic/threaded 1272s # End of atomic tests 1272s # Running test: glib/objects-refcount2.test 1272s TAP version 14 1272s # random seed: R02S606abeb1c99b5b4a291338e7eb1ea19f 1272s 1..1 1272s # Start of gobject tests 1272s # Start of refcount tests 1272s # init 0x2aa255a8d60 1272s # 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1272s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1273s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1274s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1275s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # Executing: glib/objects-refcount2.test 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # . 1276s # dispose 0x2aa255a8d60! 1276s # 1276s ok 1 /gobject/refcount/object-advanced 1276s ok - glib/objects-refcount2.test 1276s # slow test /gobject/refcount/object-advanced executed in 3.32 secs 1276s # End of refcount tests 1276s # End of gobject tests 1276s # Running test: glib/gapplication.test 1276s TAP version 14 1276s # random seed: R02S2dfe1e498e795fdbd9001c5ad489d2ed 1276s 1..25 1276s # Start of gapplication tests 1276s ok 1 /gapplication/no-dbus 1276s ok 2 /gapplication/no-appid 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s ok 3 /gapplication/properties 1276s ok 4 /gapplication/app-id 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s ok 5 /gapplication/quit 1276s ok 6 /gapplication/registered 1276s ok 7 /gapplication/local-actions 1276s ok 8 /gapplication/local-command-line 1276s ok 9 /gapplication/resource-path 1276s ok 10 /gapplication/test-help 1276s ok 11 /gapplication/command-line-done 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s ok 12 /gapplication/test-busy 1276s ok 13 /gapplication/test-handle-local-options1 1276s ok 14 /gapplication/test-handle-local-options2 1276s ok 15 /gapplication/test-handle-local-options3 1276s ok 16 /gapplication/api 1276s ok 17 /gapplication/version 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # launching subprocess 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s ok 18 /gapplication/replace 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # launching subprocess 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s ok 19 /gapplication/no-replace 1276s # slow test /gapplication/no-replace executed in 0.50 secs 1276s # Start of command-line tests 1276s # /gapplication/command-line/arguments summary: Test HANDLES_COMMAND_LINE locally with a ->local_command_line vfunc which forces g_application_run() to take a fallback error handling path 1276s ok 20 /gapplication/command-line/arguments 1276s # End of command-line tests 1276s # Start of dbus tests 1276s # /gapplication/dbus/activate summary: Test that calling the Activate D-Bus method works 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # Message 0 1276s # Message 1 1276s # Message 2 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s ok 21 /gapplication/dbus/activate 1276s # /gapplication/dbus/open summary: Test that calling the Open D-Bus method works 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # Message 0 1276s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1276s # Message 1 1276s # Message 2 1276s # Message 3 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s ok 22 /gapplication/dbus/open 1276s # /gapplication/dbus/command-line summary: Test that calling the CommandLine D-Bus method works 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # Message 0 1276s # Message 1 1276s # Message 2 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s ok 23 /gapplication/dbus/command-line 1276s # /gapplication/dbus/command-line-done summary: Test that GDBusCommandLine.done() works 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s ok 24 /gapplication/dbus/command-line-done 1276s # /gapplication/dbus/activate-action summary: Test that calling the ActivateAction D-Bus method works 1276s ok - glib/gapplication.test 1276s # Running test: glib/file.test 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # Message 0 1276s # Message 1 1276s # Message 2 1276s # Message 3 1276s # Message 4 1276s # Message 5 1276s # Message 6 1276s # Message 7 1276s # Message 8 1276s # Message 9 1276s # Message 10 1276s # Message 11 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s ok 25 /gapplication/dbus/activate-action 1276s # End of dbus tests 1276s # End of gapplication tests 1276s TAP version 14 1276s # random seed: R02S864b7957822a12dec70b682eaa4ea315 1276s 1..55 1276s # Start of file tests 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/basic/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/basic/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/basic/.dirs/system-config1:/tmp/test_file_DKP2B3/file/basic/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/basic/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/basic/.dirs/system-data1:/tmp/test_file_DKP2B3/file/basic/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/basic/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/basic/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/basic/.dirs/runtime 1276s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1276s ok 1 /file/basic 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/build-filename/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/build-filename/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/build-filename/.dirs/system-config1:/tmp/test_file_DKP2B3/file/build-filename/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/build-filename/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/build-filename/.dirs/system-data1:/tmp/test_file_DKP2B3/file/build-filename/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/build-filename/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/build-filename/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/build-filename/.dirs/runtime 1276s ok 2 /file/build-filename 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/build-filenamev/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/build-filenamev/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/build-filenamev/.dirs/system-config1:/tmp/test_file_DKP2B3/file/build-filenamev/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/build-filenamev/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/build-filenamev/.dirs/system-data1:/tmp/test_file_DKP2B3/file/build-filenamev/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/build-filenamev/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/build-filenamev/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/build-filenamev/.dirs/runtime 1276s ok 3 /file/build-filenamev 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/parent/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/parent/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/parent/.dirs/system-config1:/tmp/test_file_DKP2B3/file/parent/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/parent/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/parent/.dirs/system-data1:/tmp/test_file_DKP2B3/file/parent/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/parent/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/parent/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/parent/.dirs/runtime 1276s ok 4 /file/parent 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/child/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/child/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/child/.dirs/system-config1:/tmp/test_file_DKP2B3/file/child/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/child/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/child/.dirs/system-data1:/tmp/test_file_DKP2B3/file/child/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/child/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/child/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/child/.dirs/runtime 1276s ok 5 /file/child 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/empty-path/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/empty-path/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/empty-path/.dirs/system-config1:/tmp/test_file_DKP2B3/file/empty-path/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/empty-path/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/empty-path/.dirs/system-data1:/tmp/test_file_DKP2B3/file/empty-path/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/empty-path/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/empty-path/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/empty-path/.dirs/runtime 1276s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2328 1276s # /file/empty-path summary: Check that creating a file with an empty path results in errors 1276s ok 6 /file/empty-path 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/type/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/type/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/type/.dirs/system-config1:/tmp/test_file_DKP2B3/file/type/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/type/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/type/.dirs/system-data1:/tmp/test_file_DKP2B3/file/type/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/type/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/type/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/type/.dirs/runtime 1276s ok 7 /file/type 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/parse-name/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/parse-name/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/parse-name/.dirs/system-config1:/tmp/test_file_DKP2B3/file/parse-name/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/parse-name/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/parse-name/.dirs/system-data1:/tmp/test_file_DKP2B3/file/parse-name/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/parse-name/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/parse-name/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/parse-name/.dirs/runtime 1276s ok 8 /file/parse-name 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/replace-load/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/replace-load/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/replace-load/.dirs/system-config1:/tmp/test_file_DKP2B3/file/replace-load/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/replace-load/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/replace-load/.dirs/system-data1:/tmp/test_file_DKP2B3/file/replace-load/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/replace-load/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/replace-load/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/replace-load/.dirs/runtime 1276s ok 9 /file/replace-load 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/replace-cancel/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/replace-cancel/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/replace-cancel/.dirs/system-config1:/tmp/test_file_DKP2B3/file/replace-cancel/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/replace-cancel/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/replace-cancel/.dirs/system-data1:/tmp/test_file_DKP2B3/file/replace-cancel/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/replace-cancel/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/replace-cancel/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/replace-cancel/.dirs/runtime 1276s # Bug Reference: https://bugzilla.gnome.org/629301 1276s ok 10 /file/replace-cancel 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/replace-symlink/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/replace-symlink/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/replace-symlink/.dirs/system-config1:/tmp/test_file_DKP2B3/file/replace-symlink/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/replace-symlink/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/replace-symlink/.dirs/system-data1:/tmp/test_file_DKP2B3/file/replace-symlink/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/replace-symlink/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/replace-symlink/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/replace-symlink/.dirs/runtime 1276s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2325 1276s # /file/replace-symlink summary: Test that G_FILE_CREATE_REPLACE_DESTINATION doesn’t follow symlinks 1276s # Using temporary directory /tmp/test_file_DKP2B3/g_file_replace_symlink_MYI2B3 1276s ok 11 /file/replace-symlink 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/async-new-tmp/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/async-new-tmp/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/async-new-tmp/.dirs/system-config1:/tmp/test_file_DKP2B3/file/async-new-tmp/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/async-new-tmp/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/async-new-tmp/.dirs/system-data1:/tmp/test_file_DKP2B3/file/async-new-tmp/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/async-new-tmp/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/async-new-tmp/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/async-new-tmp/.dirs/runtime 1276s ok 12 /file/async-new-tmp 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/async-new-tmp-dir/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/async-new-tmp-dir/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/async-new-tmp-dir/.dirs/system-config1:/tmp/test_file_DKP2B3/file/async-new-tmp-dir/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/async-new-tmp-dir/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/async-new-tmp-dir/.dirs/system-data1:/tmp/test_file_DKP2B3/file/async-new-tmp-dir/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/async-new-tmp-dir/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/async-new-tmp-dir/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/async-new-tmp-dir/.dirs/runtime 1276s ok 13 /file/async-new-tmp-dir 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/async-delete/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/async-delete/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/async-delete/.dirs/system-config1:/tmp/test_file_DKP2B3/file/async-delete/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/async-delete/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/async-delete/.dirs/system-data1:/tmp/test_file_DKP2B3/file/async-delete/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/async-delete/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/async-delete/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/async-delete/.dirs/runtime 1276s ok 14 /file/async-delete 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/async-make-symlink/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/async-make-symlink/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/async-make-symlink/.dirs/system-config1:/tmp/test_file_DKP2B3/file/async-make-symlink/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/async-make-symlink/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/async-make-symlink/.dirs/system-data1:/tmp/test_file_DKP2B3/file/async-make-symlink/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/async-make-symlink/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/async-make-symlink/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/async-make-symlink/.dirs/runtime 1276s ok 15 /file/async-make-symlink 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/copy-preserve-mode/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/copy-preserve-mode/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/copy-preserve-mode/.dirs/system-config1:/tmp/test_file_DKP2B3/file/copy-preserve-mode/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/copy-preserve-mode/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/copy-preserve-mode/.dirs/system-data1:/tmp/test_file_DKP2B3/file/copy-preserve-mode/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/copy-preserve-mode/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/copy-preserve-mode/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/copy-preserve-mode/.dirs/runtime 1276s # Current umask: 2 1276s # Vector 0 1276s # Vector 1 1276s # Vector 2 1276s # Vector 3 1276s # Vector 4 1276s # Vector 5 1276s # Vector 6 1276s # Vector 7 1276s # Vector 8 1276s # Vector 9 1276s # Vector 10 1276s ok 16 /file/copy-preserve-mode 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/copy-async-with-closures/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/copy-async-with-closures/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/copy-async-with-closures/.dirs/system-config1:/tmp/test_file_DKP2B3/file/copy-async-with-closures/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/copy-async-with-closures/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/copy-async-with-closures/.dirs/system-data1:/tmp/test_file_DKP2B3/file/copy-async-with-closures/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/copy-async-with-closures/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/copy-async-with-closures/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/copy-async-with-closures/.dirs/runtime 1276s ok 17 /file/copy-async-with-closures 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/measure/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/measure/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/measure/.dirs/system-config1:/tmp/test_file_DKP2B3/file/measure/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/measure/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/measure/.dirs/system-data1:/tmp/test_file_DKP2B3/file/measure/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/measure/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/measure/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/measure/.dirs/runtime 1276s ok 18 /file/measure 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/measure-async/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/measure-async/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/measure-async/.dirs/system-config1:/tmp/test_file_DKP2B3/file/measure-async/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/measure-async/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/measure-async/.dirs/system-data1:/tmp/test_file_DKP2B3/file/measure-async/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/measure-async/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/measure-async/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/measure-async/.dirs/runtime 1276s ok 19 /file/measure-async 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/load-bytes/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/load-bytes/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/load-bytes/.dirs/system-config1:/tmp/test_file_DKP2B3/file/load-bytes/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/load-bytes/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/load-bytes/.dirs/system-data1:/tmp/test_file_DKP2B3/file/load-bytes/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/load-bytes/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/load-bytes/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/load-bytes/.dirs/runtime 1276s ok 20 /file/load-bytes 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/load-bytes-async/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/load-bytes-async/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/load-bytes-async/.dirs/system-config1:/tmp/test_file_DKP2B3/file/load-bytes-async/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/load-bytes-async/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/load-bytes-async/.dirs/system-data1:/tmp/test_file_DKP2B3/file/load-bytes-async/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/load-bytes-async/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/load-bytes-async/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/load-bytes-async/.dirs/runtime 1276s ok 21 /file/load-bytes-async 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/load-bytes-4gb/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/load-bytes-4gb/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/load-bytes-4gb/.dirs/system-config1:/tmp/test_file_DKP2B3/file/load-bytes-4gb/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/load-bytes-4gb/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/load-bytes-4gb/.dirs/system-data1:/tmp/test_file_DKP2B3/file/load-bytes-4gb/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/load-bytes-4gb/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/load-bytes-4gb/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/load-bytes-4gb/.dirs/runtime 1276s ok 22 /file/load-bytes-4gb # SKIP Skipping slow >4GB file test 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/load-contents-4gb/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/load-contents-4gb/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/load-contents-4gb/.dirs/system-config1:/tmp/test_file_DKP2B3/file/load-contents-4gb/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/load-contents-4gb/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/load-contents-4gb/.dirs/system-data1:/tmp/test_file_DKP2B3/file/load-contents-4gb/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/load-contents-4gb/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/load-contents-4gb/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/load-contents-4gb/.dirs/runtime 1276s ok 23 /file/load-contents-4gb # SKIP Skipping slow >4GB file test 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/load-contents-4gb-async/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/load-contents-4gb-async/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/load-contents-4gb-async/.dirs/system-config1:/tmp/test_file_DKP2B3/file/load-contents-4gb-async/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/load-contents-4gb-async/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/load-contents-4gb-async/.dirs/system-data1:/tmp/test_file_DKP2B3/file/load-contents-4gb-async/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/load-contents-4gb-async/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/load-contents-4gb-async/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/load-contents-4gb-async/.dirs/runtime 1276s ok 24 /file/load-contents-4gb-async # SKIP Skipping slow >4GB file test 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/writev/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/writev/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/writev/.dirs/system-config1:/tmp/test_file_DKP2B3/file/writev/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/writev/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/writev/.dirs/system-data1:/tmp/test_file_DKP2B3/file/writev/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/writev/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/writev/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/writev/.dirs/runtime 1276s ok 25 /file/writev 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/build-attribute-list-for-copy/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/build-attribute-list-for-copy/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/build-attribute-list-for-copy/.dirs/system-config1:/tmp/test_file_DKP2B3/file/build-attribute-list-for-copy/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/build-attribute-list-for-copy/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/build-attribute-list-for-copy/.dirs/system-data1:/tmp/test_file_DKP2B3/file/build-attribute-list-for-copy/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/build-attribute-list-for-copy/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/build-attribute-list-for-copy/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/build-attribute-list-for-copy/.dirs/runtime 1276s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,unix::mode,xattr::* 1276s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,xattr::* 1276s # 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::* 1276s # 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::* 1276s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,unix::gid,unix::mode,unix::uid,xattr::*,xattr-sys::* 1276s # Attributes for copy: standard::size,xattr::* 1276s # Attributes for copy: standard::size,unix::mode,xattr::* 1276s ok 26 /file/build-attribute-list-for-copy 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/move_async/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/move_async/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/move_async/.dirs/system-config1:/tmp/test_file_DKP2B3/file/move_async/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/move_async/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/move_async/.dirs/system-data1:/tmp/test_file_DKP2B3/file/move_async/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/move_async/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/move_async/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/move_async/.dirs/runtime 1276s ok 27 /file/move_async 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/move-async-with-closures/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/move-async-with-closures/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/move-async-with-closures/.dirs/system-config1:/tmp/test_file_DKP2B3/file/move-async-with-closures/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/move-async-with-closures/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/move-async-with-closures/.dirs/system-data1:/tmp/test_file_DKP2B3/file/move-async-with-closures/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/move-async-with-closures/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/move-async-with-closures/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/move-async-with-closures/.dirs/runtime 1276s ok 28 /file/move-async-with-closures 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/query-zero-length-content-type/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/query-zero-length-content-type/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/query-zero-length-content-type/.dirs/system-config1:/tmp/test_file_DKP2B3/file/query-zero-length-content-type/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/query-zero-length-content-type/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/query-zero-length-content-type/.dirs/system-data1:/tmp/test_file_DKP2B3/file/query-zero-length-content-type/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/query-zero-length-content-type/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/query-zero-length-content-type/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/query-zero-length-content-type/.dirs/runtime 1276s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755795 1276s # /file/query-zero-length-content-type summary: empty files should always be considered application/x-zerosize 1276s ok 29 /file/query-zero-length-content-type 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/query-default-handler-file/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/query-default-handler-file/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/query-default-handler-file/.dirs/system-config1:/tmp/test_file_DKP2B3/file/query-default-handler-file/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/query-default-handler-file/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/query-default-handler-file/.dirs/system-data1:/tmp/test_file_DKP2B3/file/query-default-handler-file/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/query-default-handler-file/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/query-default-handler-file/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/query-default-handler-file/.dirs/runtime 1276s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DKP2B3/file/query-default-handler-file/.dirs/data/applications 1276s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DKP2B3/file/query-default-handler-file/.dirs/config 1276s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DKP2B3/file/query-default-handler-file/.dirs/config 1276s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DKP2B3/file/query-default-handler-file/.dirs/config 1276s ok 30 /file/query-default-handler-file 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/query-default-handler-file-async/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/query-default-handler-file-async/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/query-default-handler-file-async/.dirs/system-config1:/tmp/test_file_DKP2B3/file/query-default-handler-file-async/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/query-default-handler-file-async/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/query-default-handler-file-async/.dirs/system-data1:/tmp/test_file_DKP2B3/file/query-default-handler-file-async/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/query-default-handler-file-async/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/query-default-handler-file-async/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/query-default-handler-file-async/.dirs/runtime 1276s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DKP2B3/file/query-default-handler-file-async/.dirs/data/applications 1276s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DKP2B3/file/query-default-handler-file-async/.dirs/config 1276s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_DKP2B3/file/query-default-handler-file/.dirs/config to /tmp/test_file_DKP2B3/file/query-default-handler-file-async/.dirs/config 1276s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DKP2B3/file/query-default-handler-file-async/.dirs/config 1276s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DKP2B3/file/query-default-handler-file-async/.dirs/config 1276s ok 31 /file/query-default-handler-file-async 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/query-default-handler-uri/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/query-default-handler-uri/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/query-default-handler-uri/.dirs/system-config1:/tmp/test_file_DKP2B3/file/query-default-handler-uri/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/query-default-handler-uri/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/query-default-handler-uri/.dirs/system-data1:/tmp/test_file_DKP2B3/file/query-default-handler-uri/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/query-default-handler-uri/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/query-default-handler-uri/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/query-default-handler-uri/.dirs/runtime 1276s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DKP2B3/file/query-default-handler-uri/.dirs/data/applications 1276s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DKP2B3/file/query-default-handler-uri/.dirs/config 1276s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_DKP2B3/file/query-default-handler-file-async/.dirs/config to /tmp/test_file_DKP2B3/file/query-default-handler-uri/.dirs/config 1276s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DKP2B3/file/query-default-handler-uri/.dirs/config 1276s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DKP2B3/file/query-default-handler-uri/.dirs/config 1276s ok 32 /file/query-default-handler-uri 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/query-default-handler-uri-async/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/query-default-handler-uri-async/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/query-default-handler-uri-async/.dirs/system-config1:/tmp/test_file_DKP2B3/file/query-default-handler-uri-async/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/query-default-handler-uri-async/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/query-default-handler-uri-async/.dirs/system-data1:/tmp/test_file_DKP2B3/file/query-default-handler-uri-async/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/query-default-handler-uri-async/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/query-default-handler-uri-async/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/query-default-handler-uri-async/.dirs/runtime 1276s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DKP2B3/file/query-default-handler-uri-async/.dirs/data/applications 1276s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DKP2B3/file/query-default-handler-uri-async/.dirs/config 1276s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_DKP2B3/file/query-default-handler-uri/.dirs/config to /tmp/test_file_DKP2B3/file/query-default-handler-uri-async/.dirs/config 1276s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DKP2B3/file/query-default-handler-uri-async/.dirs/config 1276s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DKP2B3/file/query-default-handler-uri-async/.dirs/config 1276s ok 33 /file/query-default-handler-uri-async 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/enumerator-cancellation/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/enumerator-cancellation/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/enumerator-cancellation/.dirs/system-config1:/tmp/test_file_DKP2B3/file/enumerator-cancellation/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/enumerator-cancellation/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/enumerator-cancellation/.dirs/system-data1:/tmp/test_file_DKP2B3/file/enumerator-cancellation/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/enumerator-cancellation/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/enumerator-cancellation/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/enumerator-cancellation/.dirs/runtime 1276s ok 34 /file/enumerator-cancellation 1276s # Start of async-create-delete tests 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/async-create-delete/0/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/0/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/async-create-delete/0/.dirs/system-config1:/tmp/test_file_DKP2B3/file/async-create-delete/0/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/0/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/async-create-delete/0/.dirs/system-data1:/tmp/test_file_DKP2B3/file/async-create-delete/0/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/0/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/0/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/async-create-delete/0/.dirs/runtime 1276s ok 35 /file/async-create-delete/0 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/async-create-delete/1/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/1/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/async-create-delete/1/.dirs/system-config1:/tmp/test_file_DKP2B3/file/async-create-delete/1/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/1/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/async-create-delete/1/.dirs/system-data1:/tmp/test_file_DKP2B3/file/async-create-delete/1/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/1/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/1/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/async-create-delete/1/.dirs/runtime 1276s ok 36 /file/async-create-delete/1 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/async-create-delete/10/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/10/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/async-create-delete/10/.dirs/system-config1:/tmp/test_file_DKP2B3/file/async-create-delete/10/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/10/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/async-create-delete/10/.dirs/system-data1:/tmp/test_file_DKP2B3/file/async-create-delete/10/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/10/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/10/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/async-create-delete/10/.dirs/runtime 1277s ok 37 /file/async-create-delete/10 1277s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/async-create-delete/25/.dirs/home 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/25/.dirs/cache 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/async-create-delete/25/.dirs/system-config1:/tmp/test_file_DKP2B3/file/async-create-delete/25/.dirs/system-config2 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/25/.dirs/config 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/async-create-delete/25/.dirs/system-data1:/tmp/test_file_DKP2B3/file/async-create-delete/25/.dirs/system-data2 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/25/.dirs/data 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/25/.dirs/state 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/async-create-delete/25/.dirs/runtime 1277s ok 38 /file/async-create-delete/25 1277s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/async-create-delete/4096/.dirs/home 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/4096/.dirs/cache 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/async-create-delete/4096/.dirs/system-config1:/tmp/test_file_DKP2B3/file/async-create-delete/4096/.dirs/system-config2 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/4096/.dirs/config 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/async-create-delete/4096/.dirs/system-data1:/tmp/test_file_DKP2B3/file/async-create-delete/4096/.dirs/system-data2 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/4096/.dirs/data 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/async-create-delete/4096/.dirs/state 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/async-create-delete/4096/.dirs/runtime 1277s ok 39 /file/async-create-delete/4096 1277s # End of async-create-delete tests 1277s # Start of replace-symlink tests 1277s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/replace-symlink/using-etag/.dirs/home 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/replace-symlink/using-etag/.dirs/cache 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/replace-symlink/using-etag/.dirs/system-config1:/tmp/test_file_DKP2B3/file/replace-symlink/using-etag/.dirs/system-config2 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/replace-symlink/using-etag/.dirs/config 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/replace-symlink/using-etag/.dirs/system-data1:/tmp/test_file_DKP2B3/file/replace-symlink/using-etag/.dirs/system-data2 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/replace-symlink/using-etag/.dirs/data 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/replace-symlink/using-etag/.dirs/state 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/replace-symlink/using-etag/.dirs/runtime 1277s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2417 1277s # /file/replace-symlink/using-etag summary: Test that ETag checks work when replacing a file through a symlink 1277s # Using temporary directory /tmp/test_file_DKP2B3/g_file_replace_symlink_using_etag_9IKBC3 1279s ok 40 /file/replace-symlink/using-etag 1279s # slow test /file/replace-symlink/using-etag executed in 2.00 secs 1279s # End of replace-symlink tests 1279s # Start of replace tests 1279s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/replace/write-only/.dirs/home 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/replace/write-only/.dirs/cache 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/replace/write-only/.dirs/system-config1:/tmp/test_file_DKP2B3/file/replace/write-only/.dirs/system-config2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/replace/write-only/.dirs/config 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/replace/write-only/.dirs/system-data1:/tmp/test_file_DKP2B3/file/replace/write-only/.dirs/system-data2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/replace/write-only/.dirs/data 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/replace/write-only/.dirs/state 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/replace/write-only/.dirs/runtime 1279s # /file/replace/write-only summary: Test various situations for g_file_replace() 1279s # Current umask: 2 1279s # Test 0, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_VE9AC3 1279s # Test 1, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_8P8AC3 1279s # Test 2, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_327AC3 1279s # Test 3, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_LGABC3 1279s # Test 4, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_9KABC3 1279s # Test 5, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_HOABC3 1279s # Test 6, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_1V9AC3 1279s # Test 7, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_46BBC3 1279s # Test 8, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_6HBBC3 1279s # Test 9, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_UNBBC3 1279s # Test 10, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_B1DBC3 1279s # Test 11, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_P8CBC3 1279s # Test 12, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_4CDBC3 1279s # Test 13, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_OADBC3 1279s # Test 14, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_A62AC3 1279s # Test 15, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_JR2AC3 1279s # Test 16, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_2Z1AC3 1279s # Test 17, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_A83AC3 1279s # Test 18, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_KI3AC3 1279s # Test 19, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_XP5AC3 1279s # Test 20, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_JZ4AC3 1279s # Test 21, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_966AC3 1279s # Test 22, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_GE6AC3 1279s # Test 23, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_4J6AC3 1279s # Test 24, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_AIWAC3 1279s # Test 25, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_M2VAC3 1279s # Test 26, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_FDVAC3 1279s # Test 27, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_9HVAC3 1279s # Test 28, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_7QXAC3 1279s # Test 29, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_KYWAC3 1279s # Test 30, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_M3WAC3 1279s # Test 31, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_R1WAC3 1279s # Test 32, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_0FZAC3 1279s # Test 33, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_7LYAC3 1279s # Test 34, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_OQYAC3 1279s # Test 35, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_CVYAC3 1279s # Test 36, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_U40AC3 1279s # Test 37, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_OD0AC3 1279s # Test 38, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_S0PAC3 1279s # Test 39, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_UMPAC3 1279s # Test 40, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_3TRAC3 1279s # Test 41, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_02QAC3 1279s # Test 42, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_EGTAC3 1279s # Test 43, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_IBTAC3 1279s # Test 44, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_FJSAC3 1279s # Test 45, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_O0UAC3 1279s # Test 46, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_BAUAC3 1279s # Test 47, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_M8TAC3 1279s # Test 48, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_0ZJAC3 1279s # We do not have CAP_DAC_OVERRIDE or equivalent 1279s ok 41 /file/replace/write-only 1279s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/replace/read-write/.dirs/home 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/replace/read-write/.dirs/cache 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/replace/read-write/.dirs/system-config1:/tmp/test_file_DKP2B3/file/replace/read-write/.dirs/system-config2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/replace/read-write/.dirs/config 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/replace/read-write/.dirs/system-data1:/tmp/test_file_DKP2B3/file/replace/read-write/.dirs/system-data2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/replace/read-write/.dirs/data 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/replace/read-write/.dirs/state 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/replace/read-write/.dirs/runtime 1279s # /file/replace/read-write summary: Test various situations for g_file_replace() 1279s # Current umask: 2 1279s # Test 0, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_R7JAC3 1279s # Test 1, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_H6JAC3 1279s # Test 2, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_KFJAC3 1279s # Test 3, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_XPLAC3 1279s # Test 4, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_SULAC3 1279s # Test 5, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_G6KAC3 1279s # Test 6, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_KRKAC3 1279s # Test 7, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_5PKAC3 1279s # Test 8, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_P6MAC3 1279s # Test 9, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_A5MAC3 1279s # Test 10, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_G1MAC3 1279s # Test 11, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_LSOAC3 1279s # Test 12, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_WPOAC3 1279s # Test 13, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_4TOAC3 1279s # Test 14, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_10NAC3 1279s # Test 15, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_L0ZFC3 1279s # Test 16, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_BBZFC3 1279s # Test 17, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_EI1FC3 1279s # Test 18, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_G40FC3 1279s # Test 19, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_AE0FC3 1279s # Test 20, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_GG3FC3 1279s # Test 21, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_QI2FC3 1279s # Test 22, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_3X4FC3 1279s # Test 23, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_LW4FC3 1279s # Test 24, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_Y43FC3 1279s # Test 25, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_RQTFC3 1279s # Test 26, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_LVTFC3 1279s # Test 27, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_TZTFC3 1279s # Test 28, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_Z1SFC3 1279s # Test 29, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_QCVFC3 1279s # Test 30, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_ZFVFC3 1279s # Test 31, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_8KVFC3 1279s # Test 32, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_15UFC3 1279s # Test 33, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_NBUFC3 1279s # Test 34, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_QEUFC3 1279s # Test 35, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_NDUFC3 1279s # Test 36, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_7RWFC3 1279s # Test 37, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_BZVFC3 1279s # Test 38, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_I9XFC3 1279s # Test 39, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_UBXFC3 1279s # Test 40, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_22MFC3 1279s # Test 41, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_JBMFC3 1279s # Test 42, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_L0OFC3 1279s # Test 43, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_05NFC3 1279s # Test 44, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_0OQFC3 1279s # Test 45, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_SLQFC3 1279s # Test 46, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_NQPFC3 1279s # Test 47, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_VVPFC3 1279s # Test 48, using temporary directory /tmp/test_file_DKP2B3/g_file_replace_S3RFC3 1279s # We do not have CAP_DAC_OVERRIDE or equivalent 1279s ok 42 /file/replace/read-write 1279s # End of replace tests 1279s # Start of copy tests 1279s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/copy/progress/.dirs/home 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/copy/progress/.dirs/cache 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/copy/progress/.dirs/system-config1:/tmp/test_file_DKP2B3/file/copy/progress/.dirs/system-config2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/copy/progress/.dirs/config 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/copy/progress/.dirs/system-data1:/tmp/test_file_DKP2B3/file/copy/progress/.dirs/system-data2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/copy/progress/.dirs/data 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/copy/progress/.dirs/state 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/copy/progress/.dirs/runtime 1279s ok 43 /file/copy/progress 1279s # End of copy tests 1279s # Start of writev tests 1279s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/writev/no-bytes-written/.dirs/home 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/writev/no-bytes-written/.dirs/cache 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/writev/no-bytes-written/.dirs/system-config1:/tmp/test_file_DKP2B3/file/writev/no-bytes-written/.dirs/system-config2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/writev/no-bytes-written/.dirs/config 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/writev/no-bytes-written/.dirs/system-data1:/tmp/test_file_DKP2B3/file/writev/no-bytes-written/.dirs/system-data2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/writev/no-bytes-written/.dirs/data 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/writev/no-bytes-written/.dirs/state 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/writev/no-bytes-written/.dirs/runtime 1279s ok 44 /file/writev/no-bytes-written 1279s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/writev/no-vectors/.dirs/home 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/writev/no-vectors/.dirs/cache 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/writev/no-vectors/.dirs/system-config1:/tmp/test_file_DKP2B3/file/writev/no-vectors/.dirs/system-config2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/writev/no-vectors/.dirs/config 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/writev/no-vectors/.dirs/system-data1:/tmp/test_file_DKP2B3/file/writev/no-vectors/.dirs/system-data2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/writev/no-vectors/.dirs/data 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/writev/no-vectors/.dirs/state 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/writev/no-vectors/.dirs/runtime 1279s ok 45 /file/writev/no-vectors 1279s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/writev/empty-vectors/.dirs/home 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/writev/empty-vectors/.dirs/cache 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/writev/empty-vectors/.dirs/system-config1:/tmp/test_file_DKP2B3/file/writev/empty-vectors/.dirs/system-config2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/writev/empty-vectors/.dirs/config 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/writev/empty-vectors/.dirs/system-data1:/tmp/test_file_DKP2B3/file/writev/empty-vectors/.dirs/system-data2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/writev/empty-vectors/.dirs/data 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/writev/empty-vectors/.dirs/state 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/writev/empty-vectors/.dirs/runtime 1279s ok 46 /file/writev/empty-vectors 1279s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/writev/too-big-vectors/.dirs/home 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/writev/too-big-vectors/.dirs/cache 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/writev/too-big-vectors/.dirs/system-config1:/tmp/test_file_DKP2B3/file/writev/too-big-vectors/.dirs/system-config2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/writev/too-big-vectors/.dirs/config 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/writev/too-big-vectors/.dirs/system-data1:/tmp/test_file_DKP2B3/file/writev/too-big-vectors/.dirs/system-data2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/writev/too-big-vectors/.dirs/data 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/writev/too-big-vectors/.dirs/state 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/writev/too-big-vectors/.dirs/runtime 1279s ok 47 /file/writev/too-big-vectors 1279s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/writev/async/.dirs/home 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/writev/async/.dirs/cache 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/writev/async/.dirs/system-config1:/tmp/test_file_DKP2B3/file/writev/async/.dirs/system-config2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/writev/async/.dirs/config 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/writev/async/.dirs/system-data1:/tmp/test_file_DKP2B3/file/writev/async/.dirs/system-data2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/writev/async/.dirs/data 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/writev/async/.dirs/state 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/writev/async/.dirs/runtime 1279s ok 48 /file/writev/async 1279s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/writev/async_all/.dirs/home 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/writev/async_all/.dirs/cache 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/writev/async_all/.dirs/system-config1:/tmp/test_file_DKP2B3/file/writev/async_all/.dirs/system-config2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/writev/async_all/.dirs/config 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/writev/async_all/.dirs/system-data1:/tmp/test_file_DKP2B3/file/writev/async_all/.dirs/system-data2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/writev/async_all/.dirs/data 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/writev/async_all/.dirs/state 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/writev/async_all/.dirs/runtime 1279s ok 49 /file/writev/async_all 1279s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/writev/async_all-empty-vectors/.dirs/home 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/writev/async_all-empty-vectors/.dirs/cache 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/writev/async_all-empty-vectors/.dirs/system-config1:/tmp/test_file_DKP2B3/file/writev/async_all-empty-vectors/.dirs/system-config2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/writev/async_all-empty-vectors/.dirs/config 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/writev/async_all-empty-vectors/.dirs/system-data1:/tmp/test_file_DKP2B3/file/writev/async_all-empty-vectors/.dirs/system-data2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/writev/async_all-empty-vectors/.dirs/data 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/writev/async_all-empty-vectors/.dirs/state 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/writev/async_all-empty-vectors/.dirs/runtime 1279s ok 50 /file/writev/async_all-empty-vectors 1279s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/writev/async_all-no-vectors/.dirs/home 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/writev/async_all-no-vectors/.dirs/cache 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/writev/async_all-no-vectors/.dirs/system-config1:/tmp/test_file_DKP2B3/file/writev/async_all-no-vectors/.dirs/system-config2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/writev/async_all-no-vectors/.dirs/config 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/writev/async_all-no-vectors/.dirs/system-data1:/tmp/test_file_DKP2B3/file/writev/async_all-no-vectors/.dirs/system-data2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/writev/async_all-no-vectors/.dirs/data 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/writev/async_all-no-vectors/.dirs/state 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/writev/async_all-no-vectors/.dirs/runtime 1279s ok 51 /file/writev/async_all-no-vectors 1279s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/writev/async_all-to-big-vectors/.dirs/home 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/writev/async_all-to-big-vectors/.dirs/cache 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/writev/async_all-to-big-vectors/.dirs/system-config1:/tmp/test_file_DKP2B3/file/writev/async_all-to-big-vectors/.dirs/system-config2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/writev/async_all-to-big-vectors/.dirs/config 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/writev/async_all-to-big-vectors/.dirs/system-data1:/tmp/test_file_DKP2B3/file/writev/async_all-to-big-vectors/.dirs/system-data2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/writev/async_all-to-big-vectors/.dirs/data 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/writev/async_all-to-big-vectors/.dirs/state 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/writev/async_all-to-big-vectors/.dirs/runtime 1279s ok 52 /file/writev/async_all-to-big-vectors 1279s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/writev/async_all-cancellation/.dirs/home 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/writev/async_all-cancellation/.dirs/cache 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/writev/async_all-cancellation/.dirs/system-config1:/tmp/test_file_DKP2B3/file/writev/async_all-cancellation/.dirs/system-config2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/writev/async_all-cancellation/.dirs/config 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/writev/async_all-cancellation/.dirs/system-data1:/tmp/test_file_DKP2B3/file/writev/async_all-cancellation/.dirs/system-data2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/writev/async_all-cancellation/.dirs/data 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/writev/async_all-cancellation/.dirs/state 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/writev/async_all-cancellation/.dirs/runtime 1279s ok 53 /file/writev/async_all-cancellation 1279s # End of writev tests 1279s # Start of from-uri tests 1279s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/from-uri/ignores-query-string/.dirs/home 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/from-uri/ignores-query-string/.dirs/cache 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/from-uri/ignores-query-string/.dirs/system-config1:/tmp/test_file_DKP2B3/file/from-uri/ignores-query-string/.dirs/system-config2 1279s ok - glib/file.test 1279s # Running test: glib/autoptr.test 1279s ok - glib/autoptr.test 1279s # Running test: glib/memory-monitor-dbus.test 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/from-uri/ignores-query-string/.dirs/config 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/from-uri/ignores-query-string/.dirs/system-data1:/tmp/test_file_DKP2B3/file/from-uri/ignores-query-string/.dirs/system-data2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/from-uri/ignores-query-string/.dirs/data 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/from-uri/ignores-query-string/.dirs/state 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/from-uri/ignores-query-string/.dirs/runtime 1279s ok 54 /file/from-uri/ignores-query-string 1279s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DKP2B3/file/from-uri/ignores-fragment/.dirs/home 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DKP2B3/file/from-uri/ignores-fragment/.dirs/cache 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DKP2B3/file/from-uri/ignores-fragment/.dirs/system-config1:/tmp/test_file_DKP2B3/file/from-uri/ignores-fragment/.dirs/system-config2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DKP2B3/file/from-uri/ignores-fragment/.dirs/config 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DKP2B3/file/from-uri/ignores-fragment/.dirs/system-data1:/tmp/test_file_DKP2B3/file/from-uri/ignores-fragment/.dirs/system-data2 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DKP2B3/file/from-uri/ignores-fragment/.dirs/data 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DKP2B3/file/from-uri/ignores-fragment/.dirs/state 1279s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DKP2B3/file/from-uri/ignores-fragment/.dirs/runtime 1279s ok 55 /file/from-uri/ignores-fragment 1279s # End of from-uri tests 1279s # End of file tests 1279s TAP version 14 1279s # random seed: R02Seac5a692b05bd07f5a08e06c7c21affe 1279s 1..6 1279s # Start of autoptr tests 1279s ok 1 /autoptr/autoptr 1279s ok 2 /autoptr/autoptr_steal 1279s ok 3 /autoptr/autolist 1279s ok 4 /autoptr/autoslist 1279s ok 5 /autoptr/autoqueue 1279s ok 6 /autoptr/autoclass 1279s # End of autoptr tests 1279s TAP version 13 1279s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal # SKIP https://bugs.debian.org/995178 1279s 1..1 1279s ok - glib/memory-monitor-dbus.test 1279s # Running test: glib/actions.test 1279s TAP version 14 1279s # random seed: R02S19a1615391be9ccb943279ae9bf0a6e9 1279s 1..13 1279s # Start of actions tests 1279s ok 1 /actions/basic 1279s ok 2 /actions/name 1279s ok 3 /actions/simplegroup 1279s ok 4 /actions/stateful 1279s ok 5 /actions/default-activate 1279s ok 6 /actions/entries 1279s ok 7 /actions/parse-detailed 1279s ok 8 /actions/property 1279s ok 9 /actions/no-properties 1279s # Start of dbus tests 1279s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1279s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1279s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1279s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1279s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1279s ok 10 /actions/dbus/export 1279s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1279s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1279s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1279s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1279s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1279s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s ok 11 /actions/dbus/threaded 1280s # slow test /actions/dbus/threaded executed in 0.66 secs 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s ok 12 /actions/dbus/bug679509 1280s # Start of export tests 1280s # /actions/dbus/export/error-handling summary: Test that error handling of action group export failure works 1280s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s ok 13 /actions/dbus/export/error-handling 1280s # End of export tests 1280s # End of dbus tests 1280s # End of actions tests 1280s ok - glib/actions.test 1280s # Running test: glib/tree.test 1280s TAP version 14 1280s # random seed: R02Saa889cd9538a6bbf3a44b0ac5d27a2a5 1280s 1..7 1280s # Start of tree tests 1280s ok - glib/tree.test 1280s # Running test: glib/cxx-98.test 1280s ok - glib/cxx-98.test 1280s # Running test: glib/throws.test 1280s ok 1 /tree/search 1280s ok 2 /tree/remove 1280s ok 3 /tree/destroy 1280s ok 4 /tree/traverse 1280s ok 5 /tree/insert 1280s ok 6 /tree/bounds 1280s ok 7 /tree/remove-all 1280s # End of tree tests 1280s TAP version 14 1280s # random seed: R02Sc374b414a2bc192b4aaf6572646a6dcc 1280s 1..2 1280s # Start of gtask tests 1280s # 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. 1280s ok 1 /gtask/name 1280s # Start of name tests 1280s # 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. 1280s ok 2 /gtask/name/macro-wrapper 1280s # End of name tests 1280s # End of gtask tests 1280s TAP version 14 1280s # random seed: R02S1f7b7780c3c51ff7e85b932acfc08676 1280s 1..3 1280s # Start of throws tests 1280s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_J4JAC3/throws/invoke-gerror/.dirs/home 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_J4JAC3/throws/invoke-gerror/.dirs/cache 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_J4JAC3/throws/invoke-gerror/.dirs/system-config1:/tmp/test_throws_J4JAC3/throws/invoke-gerror/.dirs/system-config2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_J4JAC3/throws/invoke-gerror/.dirs/config 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_J4JAC3/throws/invoke-gerror/.dirs/system-data1:/tmp/test_throws_J4JAC3/throws/invoke-gerror/.dirs/system-data2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_J4JAC3/throws/invoke-gerror/.dirs/data 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_J4JAC3/throws/invoke-gerror/.dirs/state 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_J4JAC3/throws/invoke-gerror/.dirs/runtime 1280s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1280s # /throws/invoke-gerror summary: Test invoking a function that throws a GError 1280s ok 1 /throws/invoke-gerror 1280s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_J4JAC3/throws/vfunc-can-throw-gerror/.dirs/home 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_J4JAC3/throws/vfunc-can-throw-gerror/.dirs/cache 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_J4JAC3/throws/vfunc-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_J4JAC3/throws/vfunc-can-throw-gerror/.dirs/system-config2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_J4JAC3/throws/vfunc-can-throw-gerror/.dirs/config 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_J4JAC3/throws/vfunc-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_J4JAC3/throws/vfunc-can-throw-gerror/.dirs/system-data2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_J4JAC3/throws/vfunc-can-throw-gerror/.dirs/data 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_J4JAC3/throws/vfunc-can-throw-gerror/.dirs/state 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_J4JAC3/throws/vfunc-can-throw-gerror/.dirs/runtime 1280s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1280s # /throws/vfunc-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a vfunc 1280s ok 2 /throws/vfunc-can-throw-gerror 1280s ok - glib/throws.test 1280s # Running test: glib/spawn-path-search.test 1280s ok - glib/spawn-path-search.test 1280s # Running test: glib/socket-service.test 1280s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_J4JAC3/throws/callback-can-throw-gerror/.dirs/home 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_J4JAC3/throws/callback-can-throw-gerror/.dirs/cache 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_J4JAC3/throws/callback-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_J4JAC3/throws/callback-can-throw-gerror/.dirs/system-config2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_J4JAC3/throws/callback-can-throw-gerror/.dirs/config 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_J4JAC3/throws/callback-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_J4JAC3/throws/callback-can-throw-gerror/.dirs/system-data2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_J4JAC3/throws/callback-can-throw-gerror/.dirs/data 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_J4JAC3/throws/callback-can-throw-gerror/.dirs/state 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_J4JAC3/throws/callback-can-throw-gerror/.dirs/runtime 1280s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1280s # /throws/callback-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a callback 1280s ok 3 /throws/callback-can-throw-gerror 1280s # End of throws tests 1280s TAP version 14 1280s # random seed: R02Sacf4af266a0b746ea3d260a3e1aea4d6 1280s 1..7 1280s # Start of spawn tests 1280s # /spawn/do-not-search summary: Without G_SPAWN_SEARCH_PATH, spawn-test-helper means ./spawn-test-helper. 1280s # 1280s # this is spawn-test-helper from glib/tests 1280s # 1280s ok 1 /spawn/do-not-search 1280s # /spawn/search-path summary: With G_SPAWN_SEARCH_PATH, spawn-test-helper means $PATH/spawn-test-helper. 1280s # 1280s # this is spawn-test-helper from path-test-subdir 1280s # 1280s ok 2 /spawn/search-path 1280s # /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. 1280s # 1280s # this is spawn-test-helper from path-test-subdir 1280s # 1280s ok 3 /spawn/search-path-from-envp 1280s # /spawn/search-path-ambiguous summary: With G_SPAWN_SEARCH_PATH and G_SPAWN_SEARCH_PATH_FROM_ENVP, the latter wins. 1280s # 1280s # this is spawn-test-helper from path-test-subdir 1280s # 1280s ok 4 /spawn/search-path-ambiguous 1280s # 1280s # this is spawn-test-helper from path-test-subdir 1280s # 1280s ok 5 /spawn/search-path-heap-allocation 1280s # /spawn/search-path-fallback-in-environ summary: With G_SPAWN_SEARCH_PATH but no PATH, a fallback is used. 1280s # 1280s # this is spawn-test-helper from glib/tests 1280s # 1280s ok 6 /spawn/search-path-fallback-in-environ 1280s # /spawn/search-path-fallback-in-envp summary: With G_SPAWN_SEARCH_PATH_FROM_ENVP but no PATH, a fallback is used. 1280s # 1280s # this is spawn-test-helper from glib/tests 1280s # 1280s ok 7 /spawn/search-path-fallback-in-envp 1280s # End of spawn tests 1280s TAP version 14 1280s # random seed: R02S809f421c4179ee81fd425952fb9a625b 1280s 1..4 1280s # Start of socket-service tests 1280s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1280s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa334afe20 and GSocketClientAsyncConnectData 0x2aa334aaae0 1280s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1280s ok 1 /socket-service/start-stop 1280s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa334b3eb0 and GSocketClientAsyncConnectData 0x2aa334b3b10 1280s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1280s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1280s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa334b3e30 for GSocketClientAsyncConnectData 0x2aa334aaae0 1280s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1280s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1280s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1280s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1280s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1280s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa334b3e30 for GSocketClientAsyncConnectData 0x2aa334b3b10 1280s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1280s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1280s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1280s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1280s ok 2 /socket-service/read_write_async 1280s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa334b3eb0 and GSocketClientAsyncConnectData 0x2aa334b75d0 1280s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1280s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1280s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa334b6a00 for GSocketClientAsyncConnectData 0x2aa334b75d0 1280s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1280s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1280s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1280s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1280s ok 3 /socket-service/read_writev_async 1280s # Start of threaded tests 1280s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=712570 1280s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa334a8650 and GSocketClientAsyncConnectData 0x2aa334b3b10 1280s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1280s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1280s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa334b7e30 for GSocketClientAsyncConnectData 0x2aa334b3b10 1280s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1280s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1280s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1280s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1280s ok 4 /socket-service/threaded/712570 1280s # End of threaded tests 1280s # End of socket-service tests 1280s TAP version 14 1280s # random seed: R02S3bd948b795b00398f50bba85be61af4e 1280s # 1..0 # SKIP all gdbus-threading tests skipped because they are too unreliable (glib#1515) 1280s TAP version 14 1280s # random seed: R02Se60e4134002ffd26c18427214955edd3 1280s 1..8 1280s # Start of gdbus tests 1280s # Start of codegen tests 1280s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/annotations/.dirs/home 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/annotations/.dirs/cache 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/annotations/.dirs/system-config2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/annotations/.dirs/config 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/annotations/.dirs/system-data2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/annotations/.dirs/data 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/annotations/.dirs/state 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/annotations/.dirs/runtime 1280s ok 1 /gdbus/codegen/annotations 1280s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/interface_stability/.dirs/home 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/interface_stability/.dirs/cache 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/interface_stability/.dirs/system-config2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/interface_stability/.dirs/config 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/interface_stability/.dirs/system-data2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/interface_stability/.dirs/data 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/interface_stability/.dirs/state 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/interface_stability/.dirs/runtime 1280s ok 2 /gdbus/codegen/interface_stability 1280s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/object-manager/.dirs/home 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/object-manager/.dirs/cache 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/object-manager/.dirs/system-config2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/object-manager/.dirs/config 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/object-manager/.dirs/system-data2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/object-manager/.dirs/data 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/object-manager/.dirs/state 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/object-manager/.dirs/runtime 1280s ok 3 /gdbus/codegen/object-manager 1280s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/property-naming/.dirs/home 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/property-naming/.dirs/cache 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/property-naming/.dirs/system-config2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/property-naming/.dirs/config 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/property-naming/.dirs/system-data2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/property-naming/.dirs/data 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/property-naming/.dirs/state 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/property-naming/.dirs/runtime 1280s ok 4 /gdbus/codegen/property-naming 1280s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/autocleanups/.dirs/home 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/autocleanups/.dirs/cache 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/autocleanups/.dirs/system-config2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/autocleanups/.dirs/config 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/autocleanups/.dirs/system-data2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/autocleanups/.dirs/data 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/autocleanups/.dirs/state 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/autocleanups/.dirs/runtime 1280s ok 5 /gdbus/codegen/autocleanups 1280s ok - glib/socket-service.test 1280s # Running test: glib/gdbus-threading.test 1280s ok - glib/gdbus-threading.test 1280s # Running test: glib/gdbus-test-codegen-min-required-2-64.test 1280s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/deprecations/.dirs/home 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/deprecations/.dirs/cache 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/deprecations/.dirs/system-config2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/deprecations/.dirs/config 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/deprecations/.dirs/system-data2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/deprecations/.dirs/data 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/deprecations/.dirs/state 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/deprecations/.dirs/runtime 1280s ok 6 /gdbus/codegen/deprecations 1280s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/standalone-interface-info/.dirs/home 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/standalone-interface-info/.dirs/cache 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/standalone-interface-info/.dirs/config 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/standalone-interface-info/.dirs/data 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/standalone-interface-info/.dirs/state 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/standalone-interface-info/.dirs/runtime 1280s ok 7 /gdbus/codegen/standalone-interface-info 1280s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/unix-fd-list/.dirs/home 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/unix-fd-list/.dirs/cache 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/unix-fd-list/.dirs/system-config2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/unix-fd-list/.dirs/config 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/unix-fd-list/.dirs/system-data2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/unix-fd-list/.dirs/data 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/unix-fd-list/.dirs/state 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_TU3FC3/gdbus/codegen/unix-fd-list/.dirs/runtime 1280s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1280s ok 8 /gdbus/codegen/unix-fd-list 1280s # End of codegen tests 1280s # End of gdbus tests 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1280s TAP version 14 1280s # random seed: R02S5184971fd429f1cd33e47622c25fc4be 1280s ok - glib/gdbus-test-codegen-min-required-2-64.test 1280s # Running test: glib/portal-support-flatpak-none.test 1280s 1..1 1280s # Start of portal-support tests 1280s # Start of flatpak tests 1280s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-none_WTHFC3/portal-support/flatpak/none/.dirs/home 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-none_WTHFC3/portal-support/flatpak/none/.dirs/cache 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-none_WTHFC3/portal-support/flatpak/none/.dirs/system-config1:/tmp/test_portal-support-flatpak-none_WTHFC3/portal-support/flatpak/none/.dirs/system-config2 1280s ok - glib/portal-support-flatpak-none.test 1280s # Running test: glib/gdbus-error.test 1280s ok - glib/gdbus-error.test 1280s # Running test: glib/closure.test 1280s ok - glib/closure.test 1280s # Running test: glib/thread-pool-slow.test 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-none_WTHFC3/portal-support/flatpak/none/.dirs/config 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-none_WTHFC3/portal-support/flatpak/none/.dirs/system-data1:/tmp/test_portal-support-flatpak-none_WTHFC3/portal-support/flatpak/none/.dirs/system-data2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-none_WTHFC3/portal-support/flatpak/none/.dirs/data 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-none_WTHFC3/portal-support/flatpak/none/.dirs/state 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-none_WTHFC3/portal-support/flatpak/none/.dirs/runtime 1280s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-none_WTHFC3/portal-support/flatpak/none/.dirs/runtime/.flatpak-info 1280s ok 1 /portal-support/flatpak/none 1280s # End of flatpak tests 1280s # End of portal-support tests 1280s TAP version 14 1280s # random seed: R02Sebeb8f29dd808b53a84c819760e5bf6c 1280s 1..4 1280s # Start of gdbus tests 1280s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/registered-errors/.dirs/home 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/registered-errors/.dirs/cache 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_X9IFC3/gdbus/registered-errors/.dirs/system-config1:/tmp/test_gdbus-error_X9IFC3/gdbus/registered-errors/.dirs/system-config2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/registered-errors/.dirs/config 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_X9IFC3/gdbus/registered-errors/.dirs/system-data1:/tmp/test_gdbus-error_X9IFC3/gdbus/registered-errors/.dirs/system-data2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/registered-errors/.dirs/data 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/registered-errors/.dirs/state 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_X9IFC3/gdbus/registered-errors/.dirs/runtime 1280s ok 1 /gdbus/registered-errors 1280s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/unregistered-errors/.dirs/home 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/unregistered-errors/.dirs/cache 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_X9IFC3/gdbus/unregistered-errors/.dirs/system-config1:/tmp/test_gdbus-error_X9IFC3/gdbus/unregistered-errors/.dirs/system-config2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/unregistered-errors/.dirs/config 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_X9IFC3/gdbus/unregistered-errors/.dirs/system-data1:/tmp/test_gdbus-error_X9IFC3/gdbus/unregistered-errors/.dirs/system-data2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/unregistered-errors/.dirs/data 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/unregistered-errors/.dirs/state 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_X9IFC3/gdbus/unregistered-errors/.dirs/runtime 1280s ok 2 /gdbus/unregistered-errors 1280s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/transparent-gerror/.dirs/home 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/transparent-gerror/.dirs/cache 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_X9IFC3/gdbus/transparent-gerror/.dirs/system-config1:/tmp/test_gdbus-error_X9IFC3/gdbus/transparent-gerror/.dirs/system-config2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/transparent-gerror/.dirs/config 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_X9IFC3/gdbus/transparent-gerror/.dirs/system-data1:/tmp/test_gdbus-error_X9IFC3/gdbus/transparent-gerror/.dirs/system-data2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/transparent-gerror/.dirs/data 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/transparent-gerror/.dirs/state 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_X9IFC3/gdbus/transparent-gerror/.dirs/runtime 1280s ok 3 /gdbus/transparent-gerror 1280s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/register-error/.dirs/home 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/register-error/.dirs/cache 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_X9IFC3/gdbus/register-error/.dirs/system-config1:/tmp/test_gdbus-error_X9IFC3/gdbus/register-error/.dirs/system-config2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/register-error/.dirs/config 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_X9IFC3/gdbus/register-error/.dirs/system-data1:/tmp/test_gdbus-error_X9IFC3/gdbus/register-error/.dirs/system-data2 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/register-error/.dirs/data 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_X9IFC3/gdbus/register-error/.dirs/state 1280s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_X9IFC3/gdbus/register-error/.dirs/runtime 1280s ok 4 /gdbus/register-error 1280s # End of gdbus tests 1280s TAP version 14 1280s # random seed: R02Se5d3fc1a6a7458a30451c4ffaff38692 1280s 1..6 1280s # Start of closure tests 1280s ok 1 /closure/idle 1280s ok 2 /closure/timeout 1280s ok 3 /closure/iochannel 1280s ok 4 /closure/child 1280s ok 5 /closure/fd 1280s ok 6 /closure/signal 1280s # End of closure tests 1280s TAP version 14 1280s # random seed: R02S870b28f2e290adddd19ab25ac12a2feb 1280s 1..7 1280s # Start of threadpool tests 1280s ok 1 /threadpool/functions 1280s ok 2 /threadpool/stop-unused 1280s # slow test /threadpool/stop-unused executed in 0.50 secs 1280s ok 3 /threadpool/pools 1280s # [unsorted] ===> pushed new thread with id:95, number of threads:1, unprocessed:0 1280s # [unsorted] ===> pushed new thread with id:31, number of threads:2, unprocessed:0 1280s # [unsorted] ===> pushed new thread with id:39, number of threads:3, unprocessed:1 1280s # [unsorted] ===> pushed new thread with id:14, number of threads:4, unprocessed:2 1280s # [unsorted] ===> pushed new thread with id:42, number of threads:5, unprocessed:3 1280s # [unsorted] ===> pushed new thread with id:89, number of threads:6, unprocessed:4 1280s # [unsorted] ===> pushed new thread with id:19, number of threads:7, unprocessed:5 1280s # [unsorted] ===> pushed new thread with id:73, number of threads:8, unprocessed:6 1280s # [unsorted] ===> pushed new thread with id:11, number of threads:9, unprocessed:7 1280s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:7 1280s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:7 1280s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:8 1280s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:8 1280s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:9 1280s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:9 1280s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:10 1280s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:11 1280s # [unsorted] ===> pushed new thread with id:19, number of threads:10, unprocessed:11 1280s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:12 1280s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:12 1280s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:13 1280s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:14 1280s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:15 1280s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:16 1280s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:17 1280s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:18 1280s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:19 1280s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:20 1280s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:21 1280s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:22 1280s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:23 1280s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:24 1280s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:25 1280s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:26 1280s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:27 1280s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:28 1280s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:29 1280s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:30 1280s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:31 1280s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:32 1280s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:33 1280s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:34 1280s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:35 1280s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:36 1280s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:37 1280s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:38 1280s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:39 1280s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:40 1280s # [unsorted] ===> pushed new thread with id:4, number of threads:10, unprocessed:41 1280s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:42 1280s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:43 1280s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:44 1280s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:45 1280s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:46 1280s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:47 1280s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:48 1280s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:49 1280s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:50 1280s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:51 1280s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:52 1280s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:53 1280s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:54 1280s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:55 1280s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:56 1280s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:57 1280s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:58 1280s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:59 1280s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:60 1280s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:61 1280s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:62 1280s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:63 1280s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:64 1280s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:65 1280s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:66 1280s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:67 1280s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:68 1280s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:69 1280s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:70 1280s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:71 1280s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:72 1280s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:73 1280s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:74 1280s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:75 1280s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:76 1280s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:77 1280s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:78 1280s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:79 1280s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:80 1280s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:81 1280s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:82 1280s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:83 1280s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:84 1280s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:85 1280s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:86 1280s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:87 1280s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:88 1280s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:89 1280s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:90 1280s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:91 1280s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:92 1280s ok 4 /threadpool/no-sort 1280s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:1 1280s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:2 1280s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:3 1280s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:4 1280s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:5 1280s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:6 1280s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:7 1280s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:8 1280s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:9 1280s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:10 1280s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:11 1280s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:12 1280s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:13 1280s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:14 1280s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:15 1280s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:16 1280s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:17 1280s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:18 1280s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:19 1280s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:20 1280s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:21 1280s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:22 1280s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:23 1280s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:24 1280s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:25 1280s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:26 1280s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:27 1280s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:28 1280s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:29 1280s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:30 1280s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:31 1280s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:32 1280s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:33 1280s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:34 1280s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:35 1280s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:36 1280s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:37 1280s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:38 1280s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:39 1280s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:40 1280s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:41 1280s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:42 1280s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:43 1280s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:44 1280s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:45 1280s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:46 1280s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:47 1280s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:48 1280s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:49 1280s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:50 1280s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:51 1280s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:52 1280s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:53 1280s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:54 1280s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:55 1280s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:56 1280s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:57 1280s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:58 1280s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:59 1280s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:60 1280s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:61 1280s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:62 1280s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:63 1280s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:64 1280s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:65 1280s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:66 1280s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:67 1280s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:68 1280s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:69 1280s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:70 1280s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:71 1280s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:72 1280s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:73 1280s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:74 1280s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:75 1280s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:76 1280s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:77 1280s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:78 1280s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:79 1280s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:80 1280s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:81 1280s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:82 1280s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:83 1280s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:84 1280s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:85 1280s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:86 1280s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:87 1280s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:88 1280s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:89 1280s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:90 1280s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:91 1280s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:92 1280s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:93 1280s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:94 1280s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:95 1280s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:96 1280s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:97 1280s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:98 1280s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:99 1280s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:100 1280s # Starting thread pool processing 1280s ok 5 /threadpool/sort 1281s # Executing: glib/thread-pool-slow.test 1281s ok 6 /threadpool/stop-unused-multiple 1281s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1281s # Pool idle thread count: 0, unprocessed jobs: 40 1281s # Pool idle thread count: 0, unprocessed jobs: 0 1281s # Pool idle thread count: 0, unprocessed jobs: 0 1283s # Pool idle thread count: 10, unprocessed jobs: 0 1283s # Pool idle thread count: 10, unprocessed jobs: 0 1283s # Pool idle thread count: 10, unprocessed jobs: 0 1283s # Pool idle thread count: 10, unprocessed jobs: 0 1283s # Pool idle thread count: 10, unprocessed jobs: 0 1283s # Pool idle thread count: 10, unprocessed jobs: 0 1283s # Pool idle thread count: 10, unprocessed jobs: 0 1283s # Pool idle thread count: 10, unprocessed jobs: 0 1284s # Pool idle thread count: 10, unprocessed jobs: 0 1284s # Pool idle thread count: 10, unprocessed jobs: 0 1284s # Pool idle thread count: 10, unprocessed jobs: 0 1284s # Pool idle thread count: 10, unprocessed jobs: 0 1285s # Pool idle thread count: 10, unprocessed jobs: 0 1285s # Pool idle thread count: 10, unprocessed jobs: 0 1285s # Pool idle thread count: 10, unprocessed jobs: 0 1285s # Pool idle thread count: 10, unprocessed jobs: 0 1286s # Executing: glib/thread-pool-slow.test 1286s # Pool idle thread count: 10, unprocessed jobs: 0 1286s # Pool idle thread count: 10, unprocessed jobs: 0 1286s # Pool idle thread count: 10, unprocessed jobs: 0 1286s # Pool idle thread count: 10, unprocessed jobs: 0 1287s # Pool idle thread count: 10, unprocessed jobs: 0 1287s # Pool idle thread count: 10, unprocessed jobs: 0 1287s # Pool idle thread count: 10, unprocessed jobs: 0 1287s # Pool idle thread count: 10, unprocessed jobs: 0 1288s # Pool idle thread count: 10, unprocessed jobs: 0 1288s # Pool idle thread count: 10, unprocessed jobs: 0 1288s # Pool idle thread count: 10, unprocessed jobs: 0 1288s # Pool idle thread count: 10, unprocessed jobs: 0 1289s # Pool idle thread count: 10, unprocessed jobs: 0 1289s # Pool idle thread count: 10, unprocessed jobs: 0 1289s # Pool idle thread count: 10, unprocessed jobs: 0 1289s # Pool idle thread count: 10, unprocessed jobs: 0 1290s # Pool idle thread count: 10, unprocessed jobs: 2 1290s # Pool idle thread count: 8, unprocessed jobs: 0 1290s # Pool idle thread count: 8, unprocessed jobs: 0 1290s # Pool idle thread count: 8, unprocessed jobs: 0 1290s # Pool idle thread count: 10, unprocessed jobs: 0 1290s # Pool idle thread count: 10, unprocessed jobs: 0 1291s # Executing: glib/thread-pool-slow.test 1291s # Pool idle thread count: 10, unprocessed jobs: 0 1291s # Pool idle thread count: 10, unprocessed jobs: 0 1291s # Pool idle thread count: 10, unprocessed jobs: 0 1291s # Pool idle thread count: 10, unprocessed jobs: 0 1292s # Pool idle thread count: 2, unprocessed jobs: 0 1292s # Pool idle thread count: 2, unprocessed jobs: 0 1292s # Pool idle thread count: 2, unprocessed jobs: 0 1292s # Pool idle thread count: 2, unprocessed jobs: 0 1293s # Pool idle thread count: 2, unprocessed jobs: 0 1293s # Pool idle thread count: 2, unprocessed jobs: 0 1293s # Pool idle thread count: 2, unprocessed jobs: 0 1293s # Pool idle thread count: 2, unprocessed jobs: 0 1294s # Pool idle thread count: 2, unprocessed jobs: 0 1294s # Pool idle thread count: 2, unprocessed jobs: 0 1294s # Pool idle thread count: 2, unprocessed jobs: 0 1294s # Pool idle thread count: 2, unprocessed jobs: 0 1295s # Pool idle thread count: 2, unprocessed jobs: 0 1295s # Pool idle thread count: 2, unprocessed jobs: 0 1295s # Pool idle thread count: 2, unprocessed jobs: 0 1295s # Pool idle thread count: 2, unprocessed jobs: 0 1296s # Executing: glib/thread-pool-slow.test 1296s # Pool idle thread count: 2, unprocessed jobs: 0 1296s # Pool idle thread count: 2, unprocessed jobs: 0 1296s # Pool idle thread count: 2, unprocessed jobs: 0 1296s # Pool idle thread count: 2, unprocessed jobs: 0 1297s # Pool idle thread count: 2, unprocessed jobs: 0 1297s # Pool idle thread count: 2, unprocessed jobs: 0 1297s # Pool idle thread count: 2, unprocessed jobs: 0 1297s # Pool idle thread count: 2, unprocessed jobs: 0 1298s # Pool idle thread count: 2, unprocessed jobs: 0 1298s # Pool idle thread count: 2, unprocessed jobs: 0 1298s # Pool idle thread count: 2, unprocessed jobs: 0 1298s # Pool idle thread count: 2, unprocessed jobs: 0 1299s # Pool idle thread count: 2, unprocessed jobs: 0 1299s # Pool idle thread count: 2, unprocessed jobs: 0 1299s # Pool idle thread count: 2, unprocessed jobs: 0 1299s # Pool idle thread count: 2, unprocessed jobs: 0 1300s # Pool idle thread count: 2, unprocessed jobs: 0 1300s # Pool idle thread count: 2, unprocessed jobs: 0 1300s ok 7 /threadpool/idle-time 1300s # slow test /threadpool/idle-time executed in 19.52 secs 1300s # End of threadpool tests 1300s ok - glib/thread-pool-slow.test 1300s # Running test: glib/power-profile-monitor-dbus.test 1301s # Executing: glib/power-profile-monitor-dbus.test 1301s TAP version 13 1301s ok 1 __main__.TestPowerProfileMonitor.test_power_profile_power_saver_enabled 1301s 1..1 1301s ok - glib/power-profile-monitor-dbus.test 1301s # Running test: glib/param.test 1301s TAP version 14 1301s # random seed: R02Sfc1534bcda9667f8aa72569e1c37cde4 1301s 1..32 1301s # Start of param tests 1301s ok 1 /param/value 1301s ok 2 /param/strings 1301s ok 3 /param/qdata 1301s ok 4 /param/validate 1301s ok 5 /param/convert 1301s ok 6 /param/implement # SKIP Skipping slow /param/implement test 1301s ok 7 /param/default 1301s ok 8 /param/is-valid-name 1301s # Start of invalid-name tests 1301s # /param/invalid-name/colon summary: Test that properties cannot be created with invalid names 1301s ok 9 /param/invalid-name/colon 1301s # /param/invalid-name/first-char summary: Test that properties cannot be created with invalid names 1301s ok 10 /param/invalid-name/first-char 1301s # /param/invalid-name/empty summary: Test that properties cannot be created with invalid names 1301s ok 11 /param/invalid-name/empty 1301s # End of invalid-name tests 1301s # Start of implement tests 1301s # Start of subprocess tests 1301s # End of subprocess tests 1301s # End of implement tests 1301s # End of param tests 1301s # Start of value tests 1301s ok 12 /value/transform 1301s # End of value tests 1301s # Start of paramspec tests 1301s ok 13 /paramspec/char 1301s ok 14 /paramspec/uchar 1301s ok 15 /paramspec/int 1301s ok 16 /paramspec/uint 1301s ok 17 /paramspec/long 1301s ok 18 /paramspec/ulong 1301s ok 19 /paramspec/int64 1301s ok 20 /paramspec/uint64 1301s ok 21 /paramspec/float 1301s ok 22 /paramspec/double 1301s ok 23 /paramspec/unichar 1301s ok 24 /paramspec/param 1301s ok 25 /paramspec/null-param 1301s ok 26 /paramspec/string 1301s ok 27 /paramspec/override 1301s ok 28 /paramspec/gtype 1301s ok 29 /paramspec/variant 1301s ok 30 /paramspec/custom 1301s ok 31 /paramspec/pool 1301s # Start of variant tests 1301s ok 32 /paramspec/variant/cmp 1301s # End of variant tests 1301s # End of paramspec tests 1301s ok - glib/param.test 1301s # Running test: glib/defaultiface.test 1301s TAP version 14 1301s # random seed: R02S8a10f47c8e90164d2395198ea5d91b20 1301s ok - glib/defaultiface.test 1301s # Running test: glib/cxx-03.test 1301s ok - glib/cxx-03.test 1301s # Running test: glib/power-profile-monitor-portal.test 1301s 1..2 1301s # Start of gobject tests 1301s ok 1 /gobject/static-iface 1301s ok 2 /gobject/dynamic-iface 1301s # End of gobject tests 1301s TAP version 14 1301s # random seed: R02Sb51627d36cb28a81c5d1e7bac29d3892 1301s 1..2 1301s # Start of gtask tests 1301s # 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. 1301s ok 1 /gtask/name 1301s # Start of name tests 1301s # 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. 1301s ok 2 /gtask/name/macro-wrapper 1301s # End of name tests 1301s # End of gtask tests 1301s TAP version 13 1301s ok 1 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal # SKIP xdg-desktop-portal not available 1301s ok 2 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal_default # SKIP xdg-desktop-portal not available 1302s 1..2 1302s ok - glib/power-profile-monitor-portal.test 1302s # Running test: glib/qdata.test 1302s TAP version 14 1302s # random seed: R02S52bae74e069351088c200eaf22d99e89 1302s 1..2 1302s # Start of qdata tests 1302s ok - glib/qdata.test 1302s # Running test: glib/gdbus-addresses.test 1302s ok 1 /qdata/threaded 1302s ok 2 /qdata/dup 1302s # End of qdata tests 1302s TAP version 14 1302s # random seed: R02Scf758b7b4b27156d615c8d32092f3d0c 1302s 1..9 1302s # Start of gdbus tests 1302s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/empty-address/.dirs/home 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/empty-address/.dirs/cache 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/empty-address/.dirs/system-config1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/empty-address/.dirs/system-config2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/empty-address/.dirs/config 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/empty-address/.dirs/system-data1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/empty-address/.dirs/system-data2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/empty-address/.dirs/data 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/empty-address/.dirs/state 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_5WKBC3/gdbus/empty-address/.dirs/runtime 1302s ok 1 /gdbus/empty-address 1302s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/unsupported-address/.dirs/home 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/unsupported-address/.dirs/cache 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/unsupported-address/.dirs/system-config1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/unsupported-address/.dirs/system-config2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/unsupported-address/.dirs/config 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/unsupported-address/.dirs/system-data1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/unsupported-address/.dirs/system-data2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/unsupported-address/.dirs/data 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/unsupported-address/.dirs/state 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_5WKBC3/gdbus/unsupported-address/.dirs/runtime 1302s ok 2 /gdbus/unsupported-address 1302s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/address-parsing/.dirs/home 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/address-parsing/.dirs/cache 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/address-parsing/.dirs/system-config1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/address-parsing/.dirs/system-config2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/address-parsing/.dirs/config 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/address-parsing/.dirs/system-data1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/address-parsing/.dirs/system-data2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/address-parsing/.dirs/data 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/address-parsing/.dirs/state 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_5WKBC3/gdbus/address-parsing/.dirs/runtime 1302s ok 3 /gdbus/address-parsing 1302s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/unix-address/.dirs/home 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/unix-address/.dirs/cache 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/unix-address/.dirs/system-config1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/unix-address/.dirs/system-config2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/unix-address/.dirs/config 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/unix-address/.dirs/system-data1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/unix-address/.dirs/system-data2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/unix-address/.dirs/data 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/unix-address/.dirs/state 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_5WKBC3/gdbus/unix-address/.dirs/runtime 1302s ok 4 /gdbus/unix-address 1302s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/nonce-tcp-address/.dirs/home 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/nonce-tcp-address/.dirs/cache 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/nonce-tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/nonce-tcp-address/.dirs/system-config2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/nonce-tcp-address/.dirs/config 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/nonce-tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/nonce-tcp-address/.dirs/system-data2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/nonce-tcp-address/.dirs/data 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/nonce-tcp-address/.dirs/state 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_5WKBC3/gdbus/nonce-tcp-address/.dirs/runtime 1302s ok 5 /gdbus/nonce-tcp-address 1302s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/tcp-address/.dirs/home 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/tcp-address/.dirs/cache 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/tcp-address/.dirs/system-config2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/tcp-address/.dirs/config 1302s ok - glib/gdbus-addresses.test 1302s # Running test: glib/sort.test 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/tcp-address/.dirs/system-data2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/tcp-address/.dirs/data 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/tcp-address/.dirs/state 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_5WKBC3/gdbus/tcp-address/.dirs/runtime 1302s ok 6 /gdbus/tcp-address 1302s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/autolaunch-address/.dirs/home 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/autolaunch-address/.dirs/cache 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/autolaunch-address/.dirs/system-config1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/autolaunch-address/.dirs/system-config2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/autolaunch-address/.dirs/config 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/autolaunch-address/.dirs/system-data1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/autolaunch-address/.dirs/system-data2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/autolaunch-address/.dirs/data 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/autolaunch-address/.dirs/state 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_5WKBC3/gdbus/autolaunch-address/.dirs/runtime 1302s ok 7 /gdbus/autolaunch-address 1302s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/mixed-address/.dirs/home 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/mixed-address/.dirs/cache 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/mixed-address/.dirs/system-config1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/mixed-address/.dirs/system-config2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/mixed-address/.dirs/config 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/mixed-address/.dirs/system-data1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/mixed-address/.dirs/system-data2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/mixed-address/.dirs/data 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/mixed-address/.dirs/state 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_5WKBC3/gdbus/mixed-address/.dirs/runtime 1302s ok 8 /gdbus/mixed-address 1302s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/escape-address/.dirs/home 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/escape-address/.dirs/cache 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/escape-address/.dirs/system-config1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/escape-address/.dirs/system-config2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/escape-address/.dirs/config 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_5WKBC3/gdbus/escape-address/.dirs/system-data1:/tmp/test_gdbus-addresses_5WKBC3/gdbus/escape-address/.dirs/system-data2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/escape-address/.dirs/data 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_5WKBC3/gdbus/escape-address/.dirs/state 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_5WKBC3/gdbus/escape-address/.dirs/runtime 1302s ok 9 /gdbus/escape-address 1302s # End of gdbus tests 1302s TAP version 14 1302s # random seed: R02S0aea58196be9d2b5db0b3b7f409f106d 1302s 1..5 1302s # Start of sort tests 1302s ok 1 /sort/basic 1302s ok 2 /sort/zero-elements 1302s ok 3 /sort/stable 1302s ok 4 /sort/big 1302s ok 5 /sort/deprecated 1302s # End of sort tests 1302s ok - glib/sort.test 1302s # Running test: glib/utils.test 1302s ok - glib/utils.test 1302s # Running test: glib/hook.test 1302s ok - glib/hook.test 1302s # Running test: glib/tls-certificate.test 1302s ok - glib/tls-certificate.test 1302s # Running test: glib/portal-support-flatpak-full.test 1302s ok - glib/portal-support-flatpak-full.test 1302s # Running test: glib/inet-address.test 1302s ok - glib/inet-address.test 1302s # Running test: glib/atomic-c-89.test 1302s TAP version 14 1302s # random seed: R02S5e135c6d312aa4dab0505464d0dc28c6 1302s 1..41 1302s # Start of utils tests 1302s ok 1 /utils/language-names 1302s # Testing locale ‘en’ 1302s # Testing locale ‘sr@latin’ 1302s # Testing locale ‘fr_BE’ 1302s # Testing locale ‘sr_SR@latin’ 1302s # Testing locale ‘sr_SR@latin.UTF-8’ 1302s # Testing locale ‘sr@latin_invalid’ 1302s # Testing locale ‘sr.UTF-8@latin’ 1302s # Testing locale ‘sr.UTF-8_latin’ 1302s # Testing locale ‘sr.UTF-8@latin_invalid’ 1302s ok 2 /utils/locale-variants 1302s ok 3 /utils/version 1302s ok 4 /utils/appname 1302s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1302s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1302s ok 5 /utils/prgname-thread-safety 1302s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1302s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1302s ok 6 /utils/tmpdir 1302s ok 7 /utils/basic_bits 1302s ok 8 /utils/bits 1302s ok 9 /utils/swap 1302s ok 10 /utils/find-program 1302s ok 11 /utils/find-program-for-path 1302s ok 12 /utils/debug 1302s ok 13 /utils/codeset 1302s ok 14 /utils/codeset2 1302s ok 15 /utils/console-charset 1302s ok 16 /utils/gettext 1302s ok 17 /utils/username 1302s ok 18 /utils/realname 1302s ok 19 /utils/hostname 1302s ok 20 /utils/xdgdirs 1302s ok 21 /utils/specialdir 1302s # NAME: Ubuntu 1302s ok 22 /utils/os-info 1302s ok 23 /utils/clear-pointer 1302s ok 24 /utils/clear-pointer-cast 1302s ok 25 /utils/take-pointer 1302s ok 26 /utils/clear-source 1302s ok 27 /utils/misc-mem 1302s # /utils/aligned-mem summary: Aligned memory allocator 1302s # Alignment must not be zero 1302s # Alignment must be a power of two 1302s # Alignment must be a multiple of sizeof(void*) 1302s ok 28 /utils/aligned-mem 1302s # /utils/free-sized summary: Check that g_free_sized() works 1302s ok 29 /utils/free-sized 1302s ok 30 /utils/nullify 1302s ok 31 /utils/atexit 1302s ok 32 /utils/check-setuid 1302s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1302s ok 33 /utils/int-limits 1302s ok 34 /utils/clear-list 1302s ok 35 /utils/clear-slist 1302s ok 36 /utils/steal-handle-id 1302s # Start of specialdir tests 1302s ok 37 /utils/specialdir/desktop 1302s # End of specialdir tests 1302s # Start of clear-pointer tests 1302s ok 38 /utils/clear-pointer/side-effects 1302s # End of clear-pointer tests 1302s # Start of aligned-mem tests 1302s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1302s ok 39 /utils/aligned-mem/alignment 1302s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1302s ok 40 /utils/aligned-mem/zeroed 1302s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1302s ok 41 /utils/aligned-mem/free-sized 1302s # Start of subprocess tests 1302s # End of subprocess tests 1302s # End of aligned-mem tests 1302s # End of utils tests 1302s TAP version 14 1302s # random seed: R02S60802390becb8b59c440c0ad7f4126a5 1302s 1..2 1302s # Start of hook tests 1302s ok 1 /hook/basics 1302s ok 2 /hook/corner-cases 1302s # End of hook tests 1302s TAP version 14 1302s # random seed: R02S056cc4fa3496aa6d771bbb7d7c9bb81e 1302s 1..19 1302s # Start of tls-certificate tests 1302s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1302s ok 1 /tls-certificate/pem-parser 1302s ok 2 /tls-certificate/pem-parser-handles-chain 1302s ok 3 /tls-certificate/from_file 1302s ok 4 /tls-certificate/from_files 1302s ok 5 /tls-certificate/from_files_crlf 1302s ok 6 /tls-certificate/from_files_pkcs8 1302s ok 7 /tls-certificate/from_files_pkcs8enc 1302s ok 8 /tls-certificate/list_from_file 1302s ok 9 /tls-certificate/pkcs11-uri 1302s ok 10 /tls-certificate/pkcs11-uri-unsupported 1302s ok 11 /tls-certificate/from_pkcs12 1302s ok 12 /tls-certificate/from_pkcs12_file 1302s ok 13 /tls-certificate/not-valid-before 1302s ok 14 /tls-certificate/not-valid-after 1302s ok 15 /tls-certificate/subject-name 1302s ok 16 /tls-certificate/issuer-name 1302s ok 17 /tls-certificate/dns-names 1302s ok 18 /tls-certificate/ip-addresses 1302s ok 19 /tls-certificate/pem-parser-no-sentinel 1302s # End of tls-certificate tests 1302s TAP version 14 1302s # random seed: R02S54a66b553e5214d15b35dcfc70f26d05 1302s 1..1 1302s # Start of portal-support tests 1302s # Start of flatpak tests 1302s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-full_P9YFC3/portal-support/flatpak/full/.dirs/home 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-full_P9YFC3/portal-support/flatpak/full/.dirs/cache 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-full_P9YFC3/portal-support/flatpak/full/.dirs/system-config1:/tmp/test_portal-support-flatpak-full_P9YFC3/portal-support/flatpak/full/.dirs/system-config2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-full_P9YFC3/portal-support/flatpak/full/.dirs/config 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-full_P9YFC3/portal-support/flatpak/full/.dirs/system-data1:/tmp/test_portal-support-flatpak-full_P9YFC3/portal-support/flatpak/full/.dirs/system-data2 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-full_P9YFC3/portal-support/flatpak/full/.dirs/data 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-full_P9YFC3/portal-support/flatpak/full/.dirs/state 1302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-full_P9YFC3/portal-support/flatpak/full/.dirs/runtime 1302s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-full_P9YFC3/portal-support/flatpak/full/.dirs/runtime/.flatpak-info 1302s ok 1 /portal-support/flatpak/full 1302s # End of flatpak tests 1302s # End of portal-support tests 1302s TAP version 14 1302s # random seed: R02S968bcea81a067ed7e6ac44b4f3947f64 1302s 1..11 1302s # Start of inet-address tests 1302s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string ::1::2 1302s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 2001:1:2:3:4:5:6:7] 1302s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7 1302s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7] 1302s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7]:80 1302s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 0:1:2:3:4:5:6:7:8:9 1302s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string ::FFFFFFF 1302s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 204.152.189.116:80 1302s ok 1 /inet-address/parse 1302s ok 2 /inet-address/any 1302s ok 3 /inet-address/loopback 1302s ok 4 /inet-address/bytes 1302s ok 5 /inet-address/property 1302s # End of inet-address tests 1302s # Start of socket-address tests 1302s ok 6 /socket-address/basic 1302s ok 7 /socket-address/to-string 1302s # End of socket-address tests 1302s # Start of address-mask tests 1302s ok 8 /address-mask/parse 1302s ok 9 /address-mask/property 1302s ok 10 /address-mask/equal 1302s ok 11 /address-mask/match 1302s # End of address-mask tests 1302s TAP version 14 1302s # random seed: R02S17d55a0f302708d0eeed0e7516e12697 1302s 1..2 1302s # Start of atomic tests 1302s ok 1 /atomic/types 1302s ok - glib/atomic-c-89.test 1302s ok 2 /atomic/threaded 1302s # End of atomic tests 1302s # Running test: glib/io-channel-basic.test 1302s TAP version 14 1302s # random seed: R02Sd2b2d431426ac46ec5ba6944c4381b5d 1302s 1..1 1302s # Start of gio tests 1302s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1302s # random seed: R02Sad01c7430fde9bdbef3ad75040a5ed0e 1302s # GLib-DEBUG: io-channel-basic: child writing 8+643 bytes to 6 1302s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1302s # GLib-DEBUG: io-channel-basic: ...from 5: 643 bytes 1302s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1302s # GLib-DEBUG: io-channel-basic: child writing 8+926 bytes to 6 1302s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1302s # GLib-DEBUG: io-channel-basic: ...from 5: 926 bytes 1302s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1302s # GLib-DEBUG: io-channel-basic: child writing 8+2585 bytes to 6 1302s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1302s # GLib-DEBUG: io-channel-basic: ...from 5: 2585 bytes 1302s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1303s # GLib-DEBUG: io-channel-basic: child writing 8+230 bytes to 6 1303s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1303s # GLib-DEBUG: io-channel-basic: ...from 5: 230 bytes 1303s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1303s # GLib-DEBUG: io-channel-basic: child writing 8+2144 bytes to 6 1303s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1303s # GLib-DEBUG: io-channel-basic: ...from 5: 2144 bytes 1303s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1303s # GLib-DEBUG: io-channel-basic: child writing 8+1537 bytes to 6 1303s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1303s # GLib-DEBUG: io-channel-basic: ...from 5: 1537 bytes 1303s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1304s # GLib-DEBUG: io-channel-basic: child writing 8+2807 bytes to 6 1304s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1304s # GLib-DEBUG: io-channel-basic: ...from 5: 2807 bytes 1304s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1304s # GLib-DEBUG: io-channel-basic: child writing 8+2949 bytes to 6 1304s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1304s # GLib-DEBUG: io-channel-basic: ...from 5: 2949 bytes 1304s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1304s # GLib-DEBUG: io-channel-basic: child writing 8+241 bytes to 6 1304s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1304s # GLib-DEBUG: io-channel-basic: ...from 5: 241 bytes 1304s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1304s # GLib-DEBUG: io-channel-basic: child writing 8+3179 bytes to 6 1304s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1304s # GLib-DEBUG: io-channel-basic: ...from 5: 3179 bytes 1304s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1305s # GLib-DEBUG: io-channel-basic: child writing 8+3500 bytes to 6 1305s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1305s # GLib-DEBUG: io-channel-basic: ...from 5: 3500 bytes 1305s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1305s # GLib-DEBUG: io-channel-basic: child writing 8+2236 bytes to 6 1305s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1305s # GLib-DEBUG: io-channel-basic: ...from 5: 2236 bytes 1305s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1305s # GLib-DEBUG: io-channel-basic: child writing 8+4793 bytes to 6 1305s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1305s # GLib-DEBUG: io-channel-basic: ...from 5: 4793 bytes 1305s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1305s # GLib-DEBUG: io-channel-basic: child writing 8+2995 bytes to 6 1305s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1305s # GLib-DEBUG: io-channel-basic: ...from 5: 2995 bytes 1305s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1306s # Executing: glib/io-channel-basic.test 1306s # GLib-DEBUG: io-channel-basic: child writing 8+4276 bytes to 6 1306s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1306s # GLib-DEBUG: io-channel-basic: ...from 5: 4276 bytes 1306s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1306s # GLib-DEBUG: io-channel-basic: child writing 8+134 bytes to 6 1306s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1306s # GLib-DEBUG: io-channel-basic: ...from 5: 134 bytes 1306s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1306s # GLib-DEBUG: io-channel-basic: child writing 8+4928 bytes to 6 1306s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1306s # GLib-DEBUG: io-channel-basic: ...from 5: 4928 bytes 1306s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1306s # GLib-DEBUG: io-channel-basic: child writing 8+905 bytes to 6 1306s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1306s # GLib-DEBUG: io-channel-basic: ...from 5: 905 bytes 1306s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1307s # GLib-DEBUG: io-channel-basic: child writing 8+2359 bytes to 6 1307s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1307s # GLib-DEBUG: io-channel-basic: ...from 5: 2359 bytes 1307s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1307s # GLib-DEBUG: io-channel-basic: child writing 8+2337 bytes to 6 1307s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1307s # GLib-DEBUG: io-channel-basic: ...from 5: 2337 bytes 1307s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1307s # GLib-DEBUG: io-channel-basic: child writing 8+3186 bytes to 6 1307s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1307s # GLib-DEBUG: io-channel-basic: ...from 5: 3186 bytes 1307s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1307s # GLib-DEBUG: io-channel-basic: child writing 8+1994 bytes to 6 1307s # GLib-DEBUG: io-channel-basic: child exiting, closing 6 1307s # GLib-DEBUG: io-channel-basic: ...from 5: HUP IN 1307s # GLib-DEBUG: io-channel-basic: ...from 5: 1994 bytes 1307s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1307s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1307s # random seed: R02Sd11fe036fc5b88d02b2bfbb32a821bdf 1307s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1307s # random seed: R02S5854904db5fabc15e1742a489c8a3527 1307s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1307s # random seed: R02S96f6bb4f745bece40065df507347ef2d 1307s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1307s # random seed: R02Sc9218523993ec283ac0c4f3111cf4a91 1307s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1307s # random seed: R02Scf00afa9d218004d56801bca8a7ee483 1308s # GLib-DEBUG: io-channel-basic: child writing 8+1952 bytes to 17 1308s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 16: 1952 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+4945 bytes to 13 1308s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 12: 4945 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+1512 bytes to 9 1308s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 8: 1512 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+3925 bytes to 11 1308s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 10: 3925 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+466 bytes to 15 1308s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 14: 466 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+3279 bytes to 13 1308s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 12: 3279 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+4365 bytes to 9 1308s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 8: 4365 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+2039 bytes to 17 1308s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 16: 2039 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+721 bytes to 11 1308s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 10: 721 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+2337 bytes to 15 1308s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 14: 2337 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+2236 bytes to 13 1308s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 12: 2236 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+1978 bytes to 9 1308s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 8: 1978 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+135 bytes to 11 1308s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 10: 135 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+3908 bytes to 15 1308s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 14: 3908 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+2541 bytes to 17 1308s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 16: 2541 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+147 bytes to 13 1308s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 12: 147 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+1007 bytes to 9 1308s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 8: 1007 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+1376 bytes to 15 1308s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 14: 1376 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+717 bytes to 11 1308s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 10: 717 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1308s # GLib-DEBUG: io-channel-basic: child writing 8+2512 bytes to 17 1308s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1308s # GLib-DEBUG: io-channel-basic: ...from 16: 2512 bytes 1308s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1309s # GLib-DEBUG: io-channel-basic: child writing 8+4087 bytes to 13 1309s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1309s # GLib-DEBUG: io-channel-basic: ...from 12: 4087 bytes 1309s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1309s # GLib-DEBUG: io-channel-basic: child writing 8+1591 bytes to 9 1309s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1309s # GLib-DEBUG: io-channel-basic: ...from 8: 1591 bytes 1309s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1309s # GLib-DEBUG: io-channel-basic: child writing 8+180 bytes to 11 1309s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1309s # GLib-DEBUG: io-channel-basic: ...from 10: 180 bytes 1309s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1309s # GLib-DEBUG: io-channel-basic: child writing 8+4587 bytes to 15 1309s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1309s # GLib-DEBUG: io-channel-basic: ...from 14: 4587 bytes 1309s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1309s # GLib-DEBUG: io-channel-basic: child writing 8+1259 bytes to 17 1309s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1309s # GLib-DEBUG: io-channel-basic: ...from 16: 1259 bytes 1309s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1309s # GLib-DEBUG: io-channel-basic: child writing 8+2591 bytes to 13 1309s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1309s # GLib-DEBUG: io-channel-basic: ...from 12: 2591 bytes 1309s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1309s # GLib-DEBUG: io-channel-basic: child writing 8+2553 bytes to 11 1309s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1309s # GLib-DEBUG: io-channel-basic: ...from 10: 2553 bytes 1309s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1309s # GLib-DEBUG: io-channel-basic: child writing 8+1773 bytes to 9 1309s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1309s # GLib-DEBUG: io-channel-basic: ...from 8: 1773 bytes 1309s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1309s # GLib-DEBUG: io-channel-basic: child writing 8+3440 bytes to 17 1309s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1309s # GLib-DEBUG: io-channel-basic: ...from 16: 3440 bytes 1309s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1309s # GLib-DEBUG: io-channel-basic: child writing 8+2586 bytes to 15 1309s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1309s # GLib-DEBUG: io-channel-basic: ...from 14: 2586 bytes 1309s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1309s # GLib-DEBUG: io-channel-basic: child writing 8+330 bytes to 13 1309s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1309s # GLib-DEBUG: io-channel-basic: ...from 12: 330 bytes 1309s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1309s # GLib-DEBUG: io-channel-basic: child writing 8+857 bytes to 11 1309s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1309s # GLib-DEBUG: io-channel-basic: ...from 10: 857 bytes 1309s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1309s # GLib-DEBUG: io-channel-basic: child writing 8+1251 bytes to 9 1309s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1309s # GLib-DEBUG: io-channel-basic: ...from 8: 1251 bytes 1309s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1309s # GLib-DEBUG: io-channel-basic: child writing 8+2087 bytes to 15 1309s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1309s # GLib-DEBUG: io-channel-basic: ...from 14: 2087 bytes 1309s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1309s # GLib-DEBUG: io-channel-basic: child writing 8+4371 bytes to 17 1309s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1309s # GLib-DEBUG: io-channel-basic: ...from 16: 4371 bytes 1309s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1309s # GLib-DEBUG: io-channel-basic: child writing 8+272 bytes to 13 1309s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1309s # GLib-DEBUG: io-channel-basic: ...from 12: 272 bytes 1309s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+2731 bytes to 11 1310s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 10: 2731 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+2674 bytes to 9 1310s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 8: 2674 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+827 bytes to 17 1310s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 16: 827 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+4889 bytes to 15 1310s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 14: 4889 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+1448 bytes to 13 1310s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 12: 1448 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+3424 bytes to 11 1310s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 10: 3424 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+3931 bytes to 9 1310s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 8: 3931 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+890 bytes to 15 1310s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 14: 890 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+706 bytes to 17 1310s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 16: 706 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+3406 bytes to 11 1310s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 10: 3406 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+4391 bytes to 13 1310s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 12: 4391 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+4189 bytes to 17 1310s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 16: 4189 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+456 bytes to 15 1310s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 14: 456 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+805 bytes to 9 1310s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 8: 805 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+491 bytes to 11 1310s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 10: 491 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+2333 bytes to 13 1310s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 12: 2333 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+1602 bytes to 17 1310s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 16: 1602 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+1261 bytes to 15 1310s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 14: 1261 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1310s # GLib-DEBUG: io-channel-basic: child writing 8+3558 bytes to 9 1310s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1310s # GLib-DEBUG: io-channel-basic: ...from 8: 3558 bytes 1310s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+1006 bytes to 11 1311s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 10: 1006 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+2517 bytes to 13 1311s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 12: 2517 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1311s # Executing: glib/io-channel-basic.test 1311s # GLib-DEBUG: io-channel-basic: child writing 8+3940 bytes to 15 1311s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 14: 3940 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+1152 bytes to 17 1311s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 16: 1152 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+1633 bytes to 9 1311s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 8: 1633 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+4659 bytes to 11 1311s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 10: 4659 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+3907 bytes to 13 1311s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 12: 3907 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+1020 bytes to 15 1311s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 14: 1020 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+515 bytes to 9 1311s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 8: 515 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+3899 bytes to 17 1311s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 16: 3899 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+4897 bytes to 11 1311s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 10: 4897 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+4712 bytes to 13 1311s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 12: 4712 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+1278 bytes to 15 1311s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 14: 1278 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+2573 bytes to 9 1311s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 8: 2573 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+2514 bytes to 17 1311s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 16: 2514 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+330 bytes to 11 1311s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 10: 330 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+4226 bytes to 13 1311s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 12: 4226 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+1705 bytes to 15 1311s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 14: 1705 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+1251 bytes to 9 1311s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 8: 1251 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1311s # GLib-DEBUG: io-channel-basic: child writing 8+3078 bytes to 17 1311s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1311s # GLib-DEBUG: io-channel-basic: ...from 16: 3078 bytes 1311s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+4192 bytes to 11 1312s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 10: 4192 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+2446 bytes to 13 1312s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 12: 2446 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+1132 bytes to 15 1312s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 14: 1132 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+4090 bytes to 9 1312s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 8: 4090 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+704 bytes to 17 1312s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 16: 704 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+2384 bytes to 11 1312s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 10: 2384 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+2183 bytes to 13 1312s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 12: 2183 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+189 bytes to 15 1312s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 14: 189 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+2887 bytes to 9 1312s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 8: 2887 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+4355 bytes to 17 1312s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 16: 4355 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+859 bytes to 11 1312s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 10: 859 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+1483 bytes to 13 1312s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 12: 1483 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+477 bytes to 15 1312s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 14: 477 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+695 bytes to 9 1312s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 8: 695 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+1449 bytes to 17 1312s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 16: 1449 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+74 bytes to 11 1312s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 10: 74 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+1155 bytes to 13 1312s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 12: 1155 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+1529 bytes to 15 1312s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 14: 1529 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+4808 bytes to 9 1312s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 8: 4808 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1312s # GLib-DEBUG: io-channel-basic: child writing 8+3516 bytes to 17 1312s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1312s # GLib-DEBUG: io-channel-basic: ...from 16: 3516 bytes 1312s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1313s # GLib-DEBUG: io-channel-basic: child writing 8+66 bytes to 11 1313s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1313s # GLib-DEBUG: io-channel-basic: ...from 10: 66 bytes 1313s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1313s # GLib-DEBUG: io-channel-basic: child writing 8+565 bytes to 13 1313s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1313s # GLib-DEBUG: io-channel-basic: ...from 12: 565 bytes 1313s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1313s # GLib-DEBUG: io-channel-basic: child writing 8+2116 bytes to 15 1313s # GLib-DEBUG: io-channel-basic: child exiting, closing 15 1313s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1313s # GLib-DEBUG: io-channel-basic: ...from 14: 2116 bytes 1313s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1313s # GLib-DEBUG: io-channel-basic: ...from 14: HUP 1313s # GLib-DEBUG: io-channel-basic: child writing 8+2986 bytes to 9 1313s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1313s # GLib-DEBUG: io-channel-basic: ...from 8: 2986 bytes 1313s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1313s # GLib-DEBUG: io-channel-basic: child writing 8+3007 bytes to 17 1313s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1313s # GLib-DEBUG: io-channel-basic: ...from 16: 3007 bytes 1313s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1313s # GLib-DEBUG: io-channel-basic: child writing 8+117 bytes to 11 1313s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1313s # GLib-DEBUG: io-channel-basic: ...from 10: 117 bytes 1313s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1313s # GLib-DEBUG: io-channel-basic: child writing 8+1355 bytes to 13 1313s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1313s # GLib-DEBUG: io-channel-basic: ...from 12: 1355 bytes 1313s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1313s # GLib-DEBUG: io-channel-basic: child writing 8+2600 bytes to 9 1313s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1313s # GLib-DEBUG: io-channel-basic: ...from 8: 2600 bytes 1313s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1313s # GLib-DEBUG: io-channel-basic: child writing 8+1579 bytes to 17 1313s # GLib-DEBUG: io-channel-basic: child exiting, closing 17 1313s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1313s # GLib-DEBUG: io-channel-basic: ...from 16: 1579 bytes 1313s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1313s # GLib-DEBUG: io-channel-basic: ...from 16: HUP 1313s # GLib-DEBUG: io-channel-basic: child writing 8+2539 bytes to 11 1313s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1313s # GLib-DEBUG: io-channel-basic: ...from 10: 2539 bytes 1313s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1313s # GLib-DEBUG: io-channel-basic: child writing 8+4418 bytes to 13 1313s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1313s # GLib-DEBUG: io-channel-basic: ...from 12: 4418 bytes 1313s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1313s # GLib-DEBUG: io-channel-basic: child writing 8+3468 bytes to 9 1313s # GLib-DEBUG: io-channel-basic: child exiting, closing 9 1313s # GLib-DEBUG: io-channel-basic: ...from 8: HUP IN 1313s # GLib-DEBUG: io-channel-basic: ...from 8: 3468 bytes 1313s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1313s # GLib-DEBUG: io-channel-basic: child writing 8+1140 bytes to 11 1313s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1313s # GLib-DEBUG: io-channel-basic: ...from 10: 1140 bytes 1313s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1313s # GLib-DEBUG: io-channel-basic: child writing 8+3138 bytes to 13 1313s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1313s # GLib-DEBUG: io-channel-basic: ...from 12: 3138 bytes 1313s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1314s # GLib-DEBUG: io-channel-basic: child writing 8+2116 bytes to 11 1314s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1314s # GLib-DEBUG: io-channel-basic: ...from 10: 2116 bytes 1314s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1314s # GLib-DEBUG: io-channel-basic: child writing 8+785 bytes to 13 1314s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1314s # GLib-DEBUG: io-channel-basic: ...from 12: 785 bytes 1314s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1314s # GLib-DEBUG: io-channel-basic: child writing 8+2885 bytes to 11 1314s # GLib-DEBUG: io-channel-basic: child exiting, closing 11 1314s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1314s # GLib-DEBUG: io-channel-basic: ...from 10: 2885 bytes 1314s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1314s # GLib-DEBUG: io-channel-basic: ...from 10: HUP 1314s # GLib-DEBUG: io-channel-basic: child writing 8+1422 bytes to 13 1314s # GLib-DEBUG: io-channel-basic: child exiting, closing 13 1314s # GLib-DEBUG: io-channel-basic: ...from 12: HUP IN 1314s # GLib-DEBUG: io-channel-basic: ...from 12: 1422 bytes 1314s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1314s ok 1 /gio/io-basics 1314s # slow test /gio/io-basics executed in 12.19 secs 1314s # End of gio tests 1314s ok - glib/io-channel-basic.test 1314s # Running test: glib/atomic-c-17.test 1314s TAP version 14 1314s # random seed: R02S3116b305144a99df4900b45b8b7b7aa3 1314s 1..2 1314s # Start of atomic tests 1314s ok 1 /atomic/types 1314s ok - glib/atomic-c-17.test 1314s ok 2 /atomic/threaded 1314s # End of atomic tests 1314s # Running test: glib/atomic-c-11.test 1314s TAP version 14 1314s # random seed: R02Sbf756bb518a8a14511d2e6c1e2e19e30 1314s 1..2 1314s # Start of atomic tests 1314s ok 1 /atomic/types 1314s ok - glib/atomic-c-11.test 1314s ok 2 /atomic/threaded 1314s # End of atomic tests 1314s # Running test: glib/resources.test 1314s TAP version 14 1314s # random seed: R02S339f4c56474b4e56a86e90ddd3afecbd 1314s 1..19 1314s # Start of resource tests 1314s ok 1 /resource/file 1314s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1314s ok 2 /resource/file-path 1314s ok 3 /resource/data 1314s ok 4 /resource/data_unaligned 1314s ok 5 /resource/data-corrupt 1314s # /resource/data-corrupt-compression summary: Test error handling for corrupt GResource files (specifically, corrupt zlib compression). 1314s ok 6 /resource/data-corrupt-compression 1314s ok 7 /resource/data-empty 1314s ok 8 /resource/registered 1314s ok 9 /resource/manual 1314s ok 10 /resource/manual2 1314s ok 11 /resource/automatic 1314s ok 12 /resource/module 1314s ok 13 /resource/binary-linked 1314s ok 14 /resource/64k 1314s GLib-GIO-Message: 19:20:42.473: Adding GResources overlay '/auto_loaded/test1.txt=/usr/libexec/installed-tests/glib/test1.overlay' 1314s GLib-GIO-Message: 19:20:42.473: Opened file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1314s GLib-GIO-Message: 19:20:42.473: Mapped file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1314s ok 15 /resource/overlay 1314s ok 16 /resource/digits 1314s ok 17 /resource/has-children 1314s ok - glib/resources.test 1314s # Start of uri tests 1314s ok 18 /resource/uri/query-info 1314s ok 19 /resource/uri/file 1314s # End of uri tests 1314s # End of resource tests 1314s # Running test: glib/win32-appinfo.test 1314s ok - glib/win32-appinfo.test 1314s # Running test: glib/charset.test 1314s ok - glib/charset.test 1314s # Running test: glib/properties-refcount1.test 1314s TAP version 14 1314s # random seed: R02Sbd07500978017e0fa0cb44d480292a80 1314s 1..5 1314s # Start of appinfo tests 1314s ok 1 /appinfo/utf16-strfuncs 1314s ok 2 /appinfo/win32-extract-executable 1314s ok 3 /appinfo/win32-rundll32-fixup 1314s ok 4 /appinfo/win32-parse-filename 1314s ok 5 /appinfo/win32-utf16-conversion-fail 1314s # Start of subprocess tests 1314s # End of subprocess tests 1314s # End of appinfo tests 1314s TAP version 14 1314s # random seed: R02S4526bdef685450d14000f3ce421875b0 1314s 1..2 1314s # Start of charset tests 1314s # Test 0 1314s # Test 1 1314s # Test 2 1314s # Test 3 1314s ok 1 /charset/language_names_with_category 1314s ok 2 /charset/language_names_with_category_async 1314s # End of charset tests 1314s TAP version 14 1314s # random seed: R02S975181958b610aa5565f45ff078a01e4 1314s 1..1 1314s # Start of gobject tests 1314s # Start of refcount tests 1314s # .d 1314s # .f 1314s # .b 1314s # .e 1314s # .c 1314s # .d 1314s # .b 1314s # .f 1314s # .d 1314s # .e 1314s # .b 1314s # .c 1314s # .f 1314s # .b 1314s # .d 1314s # .e 1314s # .d 1314s # .c 1314s # .b 1314s # .f 1314s # .e 1314s # .d 1314s # .f 1314s # .b 1314s # .c 1314s # .b 1314s # .e 1314s # .f 1314s # .b 1314s # .d 1314s # .c 1314s # .e 1314s # .f 1314s # .e 1314s # .c 1314s # .b 1314s # .f 1314s # .d 1314s # .e 1314s # .b 1314s # .d 1314s # .f 1314s # .e 1314s # .c 1314s # .b 1314s # .d 1314s # .f 1314s # .e 1314s # .b 1314s # .f 1314s # .d 1314s # .e 1314s # .b 1314s # .c 1314s # .f 1314s # .d 1315s # .b 1315s # .e 1315s # .f 1315s # .d 1315s # .b 1315s # .f 1315s # .b 1315s # .c 1315s # .d 1315s # .e 1315s # .e 1315s # .f 1315s # .b 1315s # .d 1315s # .e 1315s # .b 1315s # .f 1315s # .d 1315s # .e 1315s # .f 1315s # .b 1315s # .d 1315s # .e 1315s # .c 1315s # .b 1315s # .f 1315s # .e 1315s # .d 1315s # .b 1315s # .f 1315s # .b 1315s # .c 1315s # .e 1315s # .b 1315s # .d 1315s # .f 1315s # .b 1315s # .e 1315s # .f 1315s # .b 1315s # .c 1315s # .d 1315s # .d 1315s # .b 1315s # .e 1315s # .b 1315s # .f 1315s # .d 1315s # .b 1315s # .c 1315s # .f 1315s # .e 1315s # .b 1315s # .d 1315s # .b 1315s # .e 1315s # .f 1315s # .c 1315s # .d 1315s # .b 1315s # .c 1315s # .d 1315s # .f 1315s # .f 1315s # .e 1315s # .b 1315s # .d 1315s # .b 1315s # .d 1315s # .f 1315s # .c 1315s # .e 1315s # .b 1315s # .d 1315s # .b 1315s # .e 1315s # .f 1315s # .c 1315s # .b 1315s # .d 1315s # .f 1315s # .e 1315s # .b 1315s # .d 1315s # .c 1315s # .f 1315s # .e 1316s # .b 1316s # .d 1316s # .c 1316s # .f 1316s # Executing: glib/properties-refcount1.test 1316s # .e 1316s # .b 1316s # .d 1316s # .b 1316s # .f 1316s # .e 1316s # .c 1316s # .f 1316s # .b 1316s # .d 1316s # .e 1316s # .c 1316s # .b 1316s # .d 1316s # .f 1316s # .e 1316s # .b 1316s # .c 1316s # .d 1316s # .d 1316s # .f 1316s # .e 1316s # .b 1316s # .c 1316s # .f 1316s # .d 1316s # .b 1316s # .e 1316s # .e 1316s # .f 1316s # .d 1316s # .c 1316s # .b 1316s # .e 1316s # .d 1316s # .f 1316s # .e 1316s # .d 1316s # .b 1316s # .f 1316s # .c 1316s # .c 1316s # .d 1316s # .f 1316s # .e 1316s # .b 1316s # .c 1316s # .f 1316s # .f 1316s # .d 1316s # .b 1316s # .e 1316s # .c 1316s # .b 1316s # .f 1316s # .e 1316s # .d 1316s # .b 1316s # .f 1316s # .d 1316s # .c 1316s # .b 1316s # .e 1316s # .f 1316s # .d 1316s # .c 1316s # .e 1316s # .b 1316s # .f 1316s # .c 1316s # .e 1316s # .d 1316s # .b 1317s # .f 1317s # .c 1317s # .e 1317s # .d 1317s # .b 1317s # .f 1317s # .d 1317s # .b 1317s # .e 1317s # .c 1317s # .b 1317s # .f 1317s # .e 1317s # .d 1317s # .b 1317s # .d 1317s # .c 1317s # .e 1317s # .f 1317s # .b 1317s # .e 1317s # .d 1317s # .c 1317s # .b 1317s # .f 1317s # .f 1317s # .d 1317s # .c 1317s # .e 1317s # .b 1317s # .f 1317s # .d 1317s # .c 1317s # .f 1317s # .b 1317s # .c 1317s # .e 1317s # .d 1317s # .b 1317s # .f 1317s # .d 1317s ok 1 /gobject/refcount/properties-1 1317s # slow test /gobject/refcount/properties-1 executed in 3.00 secs 1317s # End of refcount tests 1317s # End of gobject tests 1317s ok - glib/properties-refcount1.test 1317s # Running test: glib/genmarshal.py.test 1317s TAP version 13 1317s ok 1 __main__.TestGenmarshal.test_empty_list 1317s # glib-genmarshal: /usr/bin/glib-genmarshal 1317s # tmpdir: /tmp/tmps0izxzs_ 1317s # /tmp/tmps0izxzs_/tmpwlbzsapr.list: 1317s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmps0izxzs_/tmpwlbzsapr.list', '--header', '--quiet'] 1317s # Return code: 0 1317s # Output: 1317s # /* 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. */ 1317s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1317s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1317s # 1317s # #include 1317s # 1317s # G_BEGIN_DECLS 1317s # 1317s # 1317s # G_END_DECLS 1317s # 1317s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1317s # Error: 1317s # 1317s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmps0izxzs_/tmpwlbzsapr.list', '--body', '--quiet'] 1317s # Return code: 0 1317s # Output: 1317s # /* 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. */ 1317s # #include 1317s # 1317s # #ifdef G_ENABLE_DEBUG 1317s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1317s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1317s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1317s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1317s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1317s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1317s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1317s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1317s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1317s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1317s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1317s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1317s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1317s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1317s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1317s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1317s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1317s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1317s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1317s # #else /* !G_ENABLE_DEBUG */ 1317s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1317s # * Do not access GValues directly in your code. Instead, use the 1317s # * g_value_get_*() functions 1317s # */ 1317s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1317s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1317s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1317s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1317s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1317s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1317s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1317s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1317s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1317s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1317s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1317s # #endif /* !G_ENABLE_DEBUG */ 1317s # Error: 1317s ok 2 __main__.TestGenmarshal.test_help 1317s # glib-genmarshal: /usr/bin/glib-genmarshal 1317s # tmpdir: /tmp/tmpxlnlx22b 1317s # Running: ['/usr/bin/glib-genmarshal', '--help'] 1317s # Return code: 0 1317s # Output: 1317s # usage: glib-genmarshal [-h] [--prefix STRING] [--output FILE] [--skip-source] 1317s # [--internal] [--valist-marshallers] [-v] 1317s # [--g-fatal-warnings] [--include-header [HEADER]] 1317s # [--pragma-once] [-D CPP_DEFINES] [-U CPP_UNDEFINES] 1317s # [--prototypes] [--header] [--body] [--stdinc | 1317s # --nostdinc] [--quiet | --verbose] 1317s # [FILE ...] 1317s # 1317s # Generate signal marshallers for GObject 1317s # 1317s # positional arguments: 1317s # FILE Files with lists of marshallers to generate, or "-" 1317s # for standard input 1317s # 1317s # options: 1317s # -h, --help show this help message and exit 1317s # --prefix STRING Specify marshaller prefix 1317s # --output FILE Write output into the specified file 1317s # --skip-source Skip source location comments 1317s # --internal Mark generated functions as internal 1317s # --valist-marshallers Generate va_list marshallers 1317s # -v, --version Print version information, and exit 1317s # --g-fatal-warnings Make warnings fatal 1317s # --include-header [HEADER] 1317s # Include the specified header in the body 1317s # --pragma-once Use "pragma once" as the inclusion guard 1317s # -D CPP_DEFINES Pre-processor define 1317s # -U CPP_UNDEFINES Pre-processor undefine 1317s # --prototypes Generate the marshallers prototype in the C code 1317s # --header Generate C headers 1317s # --body Generate C code 1317s # --stdinc Include standard marshallers 1317s # --nostdinc Use standard marshallers 1317s # --quiet Only print warnings and errors 1317s # --verbose Be verbose, and include debugging information 1317s # Error: 1317s ok 3 __main__.TestGenmarshal.test_no_args 1317s # glib-genmarshal: /usr/bin/glib-genmarshal 1317s # tmpdir: /tmp/tmpau3fq7ov 1317s # Running: ['/usr/bin/glib-genmarshal'] 1317s # Return code: 0 1317s # Output: 1317s # 1317s # Error: 1317s ok 4 __main__.TestGenmarshal.test_void_boolean 1317s # glib-genmarshal: /usr/bin/glib-genmarshal 1317s # tmpdir: /tmp/tmphxbb0z4m 1317s # /tmp/tmphxbb0z4m/tmplbyb14nx.list: VOID:BOOLEAN 1317s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmphxbb0z4m/tmplbyb14nx.list', '--header', '--quiet'] 1317s # Return code: 0 1317s # Output: 1317s # /* 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. */ 1317s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1317s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1317s # 1317s # #include 1317s # 1317s # G_BEGIN_DECLS 1317s # 1317s # /* VOID:BOOLEAN (/tmp/tmphxbb0z4m/tmplbyb14nx.list:1) */ 1317s # #define g_cclosure_user_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN 1317s # 1317s # 1317s # G_END_DECLS 1317s # 1317s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1317s # Error: 1317s # 1317s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmphxbb0z4m/tmplbyb14nx.list', '--body', '--quiet'] 1317s # Return code: 0 1317s # Output: 1317s # /* 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. */ 1317s # #include 1317s # 1317s # #ifdef G_ENABLE_DEBUG 1317s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1317s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1317s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1317s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1317s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1317s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1317s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1317s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1317s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1317s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1317s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1317s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1317s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1317s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1317s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1317s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1317s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1317s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1317s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1317s # #else /* !G_ENABLE_DEBUG */ 1317s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1317s # * Do not access GValues directly in your code. Instead, use the 1317s # * g_value_get_*() functions 1317s # */ 1317s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1317s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1317s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1317s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1317s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1317s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1317s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1317s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1317s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1317s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1317s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1317s # #endif /* !G_ENABLE_DEBUG */ 1317s # Error: 1317s ok 5 __main__.TestGenmarshal.test_void_boolean_int64 1317s # glib-genmarshal: /usr/bin/glib-genmarshal 1317s # tmpdir: /tmp/tmpysctc4pw 1317s # /tmp/tmpysctc4pw/tmp7ref1d6_.list: VOID:BOOLEAN,INT64 1317s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpysctc4pw/tmp7ref1d6_.list', '--header', '--quiet'] 1317s # Return code: 0 1317s # Output: 1317s # /* 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. */ 1317s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1317s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1317s # 1317s # #include 1317s # 1317s # G_BEGIN_DECLS 1317s # 1317s # /* VOID:BOOLEAN,INT64 (/tmp/tmpysctc4pw/tmp7ref1d6_.list:1) */ 1317s # extern 1317s # void g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1317s # GValue *return_value, 1317s # guint n_param_values, 1317s # const GValue *param_values, 1317s # gpointer invocation_hint, 1317s # gpointer marshal_data); 1317s # 1317s # 1317s # G_END_DECLS 1317s # 1317s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1317s # Error: 1317s # 1317s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpysctc4pw/tmp7ref1d6_.list', '--body', '--quiet'] 1317s # Return code: 0 1317s # Output: 1317s # /* 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. */ 1317s # #include 1317s # 1317s # #ifdef G_ENABLE_DEBUG 1317s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1317s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1317s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1317s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1317s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1317s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1317s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1317s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1317s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1317s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1317s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1317s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1317s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1317s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1317s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1317s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1317s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1317s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1317s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1317s # #else /* !G_ENABLE_DEBUG */ 1317s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1317s # * Do not access GValues directly in your code. Instead, use the 1317s # * g_value_get_*() functions 1317s # */ 1317s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1317s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1317s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1317s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1317s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1317s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1317s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1317s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1317s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1317s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1317s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1317s # #endif /* !G_ENABLE_DEBUG */ 1317s # 1317s # /* VOID:BOOLEAN,INT64 (/tmp/tmpysctc4pw/tmp7ref1d6_.list:1) */ 1317s # void 1317s # g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1317s # GValue *return_value G_GNUC_UNUSED, 1317s # guint n_param_values, 1317s # const GValue *param_values, 1317s # gpointer invocation_hint G_GNUC_UNUSED, 1317s # gpointer marshal_data) 1317s # { 1317s # typedef void (*GMarshalFunc_VOID__BOOLEAN_INT64) (gpointer data1, 1317s # gboolean arg1, 1317s # gint64 arg2, 1317s # gpointer data2); 1317s # GCClosure *cc = (GCClosure *) closure; 1317s # gpointer data1, data2; 1317s # GMarshalFunc_VOID__BOOLEAN_INT64 callback; 1317s # 1317s # g_return_if_fail (n_param_values == 3); 1317s # 1317s # if (G_CCLOSURE_SWAP_DATA (closure)) 1317s # { 1317s # data1 = closure->data; 1317s # data2 = g_value_peek_pointer (param_values + 0); 1317s # } 1317s # else 1317s # { 1317s # data1 = g_value_peek_pointer (param_values + 0); 1317s # data2 = closure->data; 1317s # } 1317s # callback = (GMarshalFunc_VOID__BOOLEAN_INT64) (marshal_data ? marshal_data : cc->callback); 1317s # 1317s # callback (data1, 1317s # g_marshal_value_peek_boolean (param_values + 1), 1317s # g_marshal_value_peek_int64 (param_values + 2), 1317s # data2); 1317s # } 1317s # Error: 1317s ok 6 __main__.TestGenmarshal.test_void_param_nostdinc 1317s # glib-genmarshal: /usr/bin/glib-genmarshal 1317s # tmpdir: /tmp/tmp_6eaowng 1317s # /tmp/tmp_6eaowng/tmpekbwn4ui.list: VOID:PARAM 1317s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp_6eaowng/tmpekbwn4ui.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1317s # Return code: 0 1317s # Output: 1317s # /* 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. */ 1317s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1317s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1317s # 1317s # G_BEGIN_DECLS 1317s # 1317s # /* VOID:PARAM (/tmp/tmp_6eaowng/tmpekbwn4ui.list:1) */ 1317s # extern 1317s # void g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1317s # GValue *return_value, 1317s # guint n_param_values, 1317s # const GValue *param_values, 1317s # gpointer invocation_hint, 1317s # gpointer marshal_data); 1317s # extern 1317s # void g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1317s # GValue *return_value, 1317s # gpointer instance, 1317s # va_list args, 1317s # gpointer marshal_data, 1317s # int n_params, 1317s # GType *param_types); 1317s # 1317s # 1317s # G_END_DECLS 1317s # 1317s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1317s # Error: 1317s # 1317s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp_6eaowng/tmpekbwn4ui.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1317s # Return code: 0 1317s # Output: 1317s # /* 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. */ 1317s # #ifdef G_ENABLE_DEBUG 1317s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1317s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1317s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1317s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1317s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1317s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1317s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1317s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1317s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1317s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1317s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1317s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1317s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1317s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1317s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1317s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1317s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1317s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1317s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1317s # #else /* !G_ENABLE_DEBUG */ 1317s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1317s # * Do not access GValues directly in your code. Instead, use the 1317s # * g_value_get_*() functions 1317s # */ 1317s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1317s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1317s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1317s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1317s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1317s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1317s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1317s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1317s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1317s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1317s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1317s # #endif /* !G_ENABLE_DEBUG */ 1317s # 1317s # /* VOID:PARAM (/tmp/tmp_6eaowng/tmpekbwn4ui.list:1) */ 1317s # void 1317s # g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1317s # GValue *return_value G_GNUC_UNUSED, 1317s # guint n_param_values, 1317s # const GValue *param_values, 1317s # gpointer invocation_hint G_GNUC_UNUSED, 1317s # gpointer marshal_data) 1317s # { 1317s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1317s # gpointer arg1, 1317s # gpointer data2); 1317s # GCClosure *cc = (GCClosure *) closure; 1317s # gpointer data1, data2; 1317s # GMarshalFunc_VOID__PARAM callback; 1317s # 1317s # g_return_if_fail (n_param_values == 2); 1317s # 1317s # if (G_CCLOSURE_SWAP_DATA (closure)) 1317s # { 1317s # data1 = closure->data; 1317s # data2 = g_value_peek_pointer (param_values + 0); 1317s # } 1317s # else 1317s # { 1317s # data1 = g_value_peek_pointer (param_values + 0); 1317s # data2 = closure->data; 1317s # } 1317s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1317s # 1317s # callback (data1, 1317s # g_marshal_value_peek_param (param_values + 1), 1317s # data2); 1317s # } 1317s # 1317s # void 1317s # g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1317s # GValue *return_value G_GNUC_UNUSED, 1317s # gpointer instance, 1317s # va_list args, 1317s # gpointer marshal_data, 1317s # int n_params, 1317s # GType *param_types) 1317s # { 1317s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1317s # gpointer arg1, 1317s # gpointer data2); 1317s # GCClosure *cc = (GCClosure *) closure; 1317s # gpointer data1, data2; 1317s # GMarshalFunc_VOID__PARAM callback; 1317s # gpointer arg0; 1317s # va_list args_copy; 1317s # 1317s # va_copy (args_copy, args); 1317s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1317s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1317s # arg0 = g_param_spec_ref (arg0); 1317s # va_end (args_copy); 1317s # 1317s # 1317s # if (G_CCLOSURE_SWAP_DATA (closure)) 1317s # { 1317s # data1 = closure->data; 1317s # data2 = instance; 1317s # } 1317s # else 1317s # { 1317s # data1 = instance; 1317s # data2 = closure->data; 1317s # } 1317s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1317s # 1317s # callback (data1, 1317s # arg0, 1317s # data2); 1317s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1317s # g_param_spec_unref (arg0); 1317s # } 1317s # Error: 1317s ok 7 __main__.TestGenmarshal.test_void_string_nostdinc 1317s # glib-genmarshal: /usr/bin/glib-genmarshal 1317s # tmpdir: /tmp/tmpibwuln3_ 1317s # /tmp/tmpibwuln3_/tmppcysbvqp.list: VOID:STRING 1317s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpibwuln3_/tmppcysbvqp.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1317s # Return code: 0 1317s # Output: 1317s # /* 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. */ 1317s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1317s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1317s # 1317s # G_BEGIN_DECLS 1317s # 1317s # /* VOID:STRING (/tmp/tmpibwuln3_/tmppcysbvqp.list:1) */ 1317s # extern 1317s # void g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1317s # GValue *return_value, 1317s # guint n_param_values, 1317s # const GValue *param_values, 1317s # gpointer invocation_hint, 1317s # gpointer marshal_data); 1317s # extern 1317s # void g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1317s # GValue *return_value, 1317s # gpointer instance, 1317s # va_list args, 1317s # gpointer marshal_data, 1317s # int n_params, 1317s # GType *param_types); 1317s # 1317s # 1317s # G_END_DECLS 1317s # 1317s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1317s # Error: 1317s # 1317s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpibwuln3_/tmppcysbvqp.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1317s # Return code: 0 1317s # Output: 1317s # /* 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. */ 1317s # #ifdef G_ENABLE_DEBUG 1317s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1317s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1317s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1317s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1317s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1317s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1317s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1317s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1317s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1317s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1317s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1317s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1317s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1317s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1317s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1317s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1317s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1317s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1317s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1317s # #else /* !G_ENABLE_DEBUG */ 1317s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1317s # * Do not access GValues directly in your code. Instead, use the 1317s # * g_value_get_*() functions 1317s # */ 1317s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1317s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1317s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1317s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1317s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1317s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1317s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1317s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1317s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1317s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1317s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1317s # #endif /* !G_ENABLE_DEBUG */ 1317s # 1317s # /* VOID:STRING (/tmp/tmpibwuln3_/tmppcysbvqp.list:1) */ 1317s # void 1317s # g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1317s # GValue *return_value G_GNUC_UNUSED, 1317s # guint n_param_values, 1317s # const GValue *param_values, 1317s # gpointer invocation_hint G_GNUC_UNUSED, 1317s # gpointer marshal_data) 1317s # { 1317s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1317s # gpointer arg1, 1317s # gpointer data2); 1317s # GCClosure *cc = (GCClosure *) closure; 1317s # gpointer data1, data2; 1317s # GMarshalFunc_VOID__STRING callback; 1317s # 1317s # g_return_if_fail (n_param_values == 2); 1317s # 1317s # if (G_CCLOSURE_SWAP_DATA (closure)) 1317s # { 1317s # data1 = closure->data; 1317s # data2 = g_value_peek_pointer (param_values + 0); 1317s # } 1317s # else 1317s # { 1317s # data1 = g_value_peek_pointer (param_values + 0); 1317s # data2 = closure->data; 1317s # } 1317s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1317s # 1317s # callback (data1, 1317s # g_marshal_value_peek_string (param_values + 1), 1317s # data2); 1317s # } 1317s # 1317s # void 1317s # g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1317s # GValue *return_value G_GNUC_UNUSED, 1317s # gpointer instance, 1317s # va_list args, 1317s # gpointer marshal_data, 1317s # int n_params, 1317s # GType *param_types) 1317s # { 1317s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1317s # gpointer arg1, 1317s # gpointer data2); 1317s # GCClosure *cc = (GCClosure *) closure; 1317s # gpointer data1, data2; 1317s # GMarshalFunc_VOID__STRING callback; 1317s # gpointer arg0; 1317s # va_list args_copy; 1317s # 1317s # va_copy (args_copy, args); 1317s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1317s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1317s # arg0 = g_strdup (arg0); 1317s # va_end (args_copy); 1317s # 1317s # 1317s # if (G_CCLOSURE_SWAP_DATA (closure)) 1317s # { 1317s # data1 = closure->data; 1317s # data2 = instance; 1317s # } 1317s # else 1317s # { 1317s # data1 = instance; 1317s # data2 = closure->data; 1317s # } 1317s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1317s # 1317s # callback (data1, 1317s # arg0, 1317s # data2); 1317s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1317s # g_free (arg0); 1317s # } 1317s # Error: 1317s ok 8 __main__.TestGenmarshal.test_void_variant_nostdinc_valist_marshaller 1317s # glib-genmarshal: /usr/bin/glib-genmarshal 1317s # tmpdir: /tmp/tmpzap1q6ci 1317s # /tmp/tmpzap1q6ci/tmpcya71jcw.list: VOID:VARIANT 1317s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpzap1q6ci/tmpcya71jcw.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1317s # Return code: 0 1317s # Output: 1317s # /* 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. */ 1317s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1317s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1317s # 1317s # G_BEGIN_DECLS 1317s # 1317s # /* VOID:VARIANT (/tmp/tmpzap1q6ci/tmpcya71jcw.list:1) */ 1317s # extern 1317s # void g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1317s # GValue *return_value, 1317s # guint n_param_values, 1317s # const GValue *param_values, 1317s # gpointer invocation_hint, 1317s # gpointer marshal_data); 1317s # extern 1317s # void g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1317s # GValue *return_value, 1317s # gpointer instance, 1317s # va_list args, 1317s # gpointer marshal_data, 1317s # int n_params, 1317s # GType *param_types); 1317s # 1317s # 1317s # G_END_DECLS 1317s # 1317s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1317s # Error: 1317s # 1317s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpzap1q6ci/tmpcya71jcw.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1317s # Return code: 0 1317s # Output: 1317s # /* 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. */ 1317s # #ifdef G_ENABLE_DEBUG 1317s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1317s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1317s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1317s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1317s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1317s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1317s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1317s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1317s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1317s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1317s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1317s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1317s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1317s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1317s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1317s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1317s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1317s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1317s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1317s # #else /* !G_ENABLE_DEBUG */ 1317s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1317s # * Do not access GValues directly in your code. Instead, use the 1317s # * g_value_get_*() functions 1317s # */ 1317s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1317s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1317s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1317s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1317s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1317s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1317s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1317s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1317s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1317s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1317s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1317s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1317s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1317s # #endif /* !G_ENABLE_DEBUG */ 1317s # 1317s # /* VOID:VARIANT (/tmp/tmpzap1q6ci/tmpcya71jcw.list:1) */ 1317s # void 1317s # g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1317s # GValue *return_value G_GNUC_UNUSED, 1317s # guint n_param_values, 1317s # const GValue *param_values, 1317s # gpointer invocation_hint G_GNUC_UNUSED, 1317s # gpointer marshal_data) 1317s # { 1317s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1317s # gpointer arg1, 1317s # gpointer data2); 1317s # GCClosure *cc = (GCClosure *) closure; 1317s # gpointer data1, data2; 1317s # GMarshalFunc_VOID__VARIANT callback; 1317s # 1317s # g_return_if_fail (n_param_values == 2); 1317s # 1317s # if (G_CCLOSURE_SWAP_DATA (closure)) 1317s # { 1317s # data1 = closure->data; 1317s # data2 = g_value_peek_pointer (param_values + 0); 1317s # } 1317s # else 1317s # { 1317s # data1 = g_value_peek_pointer (param_values + 0); 1317s # data2 = closure->data; 1317s # } 1317s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1317s # 1317s # callback (data1, 1317s # g_marshal_value_peek_variant (param_values + 1), 1317s # data2); 1317s # } 1317s # 1317s # void 1317s # g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1317s # GValue *return_value G_GNUC_UNUSED, 1317s # gpointer instance, 1317s # va_list args, 1317s # gpointer marshal_data, 1317s # int n_params, 1317s # GType *param_types) 1317s # { 1317s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1317s # gpointer arg1, 1317s # gpointer data2); 1317s # GCClosure *cc = (GCClosure *) closure; 1317s # gpointer data1, data2; 1317s # GMarshalFunc_VOID__VARIANT callback; 1317s # gpointer arg0; 1317s # va_list args_copy; 1317s # 1317s # va_copy (args_copy, args); 1317s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1317s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1317s # arg0 = g_variant_ref_sink (arg0); 1317s # va_end (args_copy); 1317s # 1317s # 1317s # if (G_CCLOSURE_SWAP_DATA (closure)) 1317s # { 1317s # data1 = closure->data; 1317s # data2 = instance; 1317s # } 1317s # else 1317s # { 1317s # data1 = instance; 1317s # data2 = closure->data; 1317s # } 1317s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1317s # 1317s # callback (data1, 1317s # arg0, 1317s # data2); 1317s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1317s # g_variant_unref (arg0); 1317s # } 1317s # Error: 1317s 1..8 1317s ok - glib/genmarshal.py.test 1317s # Running test: glib/rwlock.test 1317s TAP version 14 1317s # random seed: R02Scdd4bb8f93bdd58bc497e7f3a22f28b9 1317s 1..8 1317s # Start of thread tests 1317s ok 1 /thread/rwlock1 1317s ok 2 /thread/rwlock2 1317s ok 3 /thread/rwlock3 1317s ok 4 /thread/rwlock4 1317s ok 5 /thread/rwlock5 1317s ok 6 /thread/rwlock6 1320s ok 7 /thread/rwlock7 1320s # slow test /thread/rwlock7 executed in 2.65 secs 1320s ok 8 /thread/rwlock8 1320s # End of thread tests 1320s ok - glib/rwlock.test 1320s # Running test: glib/volumemonitor.test 1320s TAP version 14 1320s # random seed: R02S84bebf8ec4717f894bb8d3d39449c76d 1320s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1320s 1..3 1320s # Start of volumemonitor tests 1320s ok 1 /volumemonitor/connected_drives 1320s ok 2 /volumemonitor/volumes 1320s ok - glib/volumemonitor.test 1320s # Running test: glib/markup-parse.test 1320s ok 3 /volumemonitor/mounts 1320s # End of volumemonitor tests 1320s TAP version 14 1320s # random seed: R02Sc07eddb5d76141e7cc447355bf0f5005 1320s 1..71 1320s # Start of markup tests 1320s # Start of parse tests 1320s ok 1 /markup/parse/fail-44.gmarkup 1320s ok 2 /markup/parse/fail-10.gmarkup 1320s ok 3 /markup/parse/fail-7.gmarkup 1320s ok 4 /markup/parse/fail-9.gmarkup 1320s ok 5 /markup/parse/fail-3.gmarkup 1320s ok 6 /markup/parse/valid-9.gmarkup 1320s ok 7 /markup/parse/fail-37.gmarkup 1320s ok 8 /markup/parse/fail-28.gmarkup 1320s ok 9 /markup/parse/fail-5.gmarkup 1320s ok 10 /markup/parse/fail-42.gmarkup 1320s ok 11 /markup/parse/fail-40.gmarkup 1320s ok 12 /markup/parse/valid-13.gmarkup 1320s ok 13 /markup/parse/fail-54.gmarkup 1320s ok 14 /markup/parse/valid-2.gmarkup 1320s ok 15 /markup/parse/valid-5.gmarkup 1320s ok 16 /markup/parse/fail-31.gmarkup 1320s ok 17 /markup/parse/valid-10.gmarkup 1320s ok 18 /markup/parse/fail-50.gmarkup 1320s ok 19 /markup/parse/valid-12.gmarkup 1320s ok 20 /markup/parse/fail-19.gmarkup 1320s ok 21 /markup/parse/valid-4.gmarkup 1320s ok 22 /markup/parse/fail-45.gmarkup 1320s ok 23 /markup/parse/fail-4.gmarkup 1320s ok 24 /markup/parse/fail-17.gmarkup 1320s ok 25 /markup/parse/fail-30.gmarkup 1320s ok 26 /markup/parse/fail-1.gmarkup 1320s ok 27 /markup/parse/fail-48.gmarkup 1320s ok 28 /markup/parse/fail-43.gmarkup 1320s ok 29 /markup/parse/valid-11.gmarkup 1320s ok 30 /markup/parse/valid-1.gmarkup 1320s ok 31 /markup/parse/valid-3.gmarkup 1320s ok 32 /markup/parse/fail-24.gmarkup 1320s ok 33 /markup/parse/fail-51.gmarkup 1320s ok 34 /markup/parse/fail-47.gmarkup 1320s ok 35 /markup/parse/fail-27.gmarkup 1320s ok 36 /markup/parse/fail-11.gmarkup 1320s ok 37 /markup/parse/fail-33.gmarkup 1320s ok 38 /markup/parse/fail-35.gmarkup 1320s ok 39 /markup/parse/fail-46.gmarkup 1320s ok 40 /markup/parse/fail-53.gmarkup 1320s ok 41 /markup/parse/fail-16.gmarkup 1320s ok 42 /markup/parse/fail-23.gmarkup 1320s ok 43 /markup/parse/valid-7.gmarkup 1320s ok 44 /markup/parse/fail-41.gmarkup 1320s ok 45 /markup/parse/fail-13.gmarkup 1320s ok 46 /markup/parse/fail-20.gmarkup 1320s ok 47 /markup/parse/fail-29.gmarkup 1320s ok 48 /markup/parse/fail-2.gmarkup 1320s ok 49 /markup/parse/fail-52.gmarkup 1320s ok 50 /markup/parse/fail-12.gmarkup 1320s ok 51 /markup/parse/fail-36.gmarkup 1320s ok 52 /markup/parse/valid-8.gmarkup 1320s ok 53 /markup/parse/fail-15.gmarkup 1320s ok 54 /markup/parse/fail-32.gmarkup 1320s ok 55 /markup/parse/fail-6.gmarkup 1320s ok 56 /markup/parse/valid-14.gmarkup 1320s ok 57 /markup/parse/fail-38.gmarkup 1320s ok 58 /markup/parse/fail-26.gmarkup 1320s ok 59 /markup/parse/valid-15.gmarkup 1320s ok 60 /markup/parse/fail-25.gmarkup 1320s ok 61 /markup/parse/valid-6.gmarkup 1320s ok 62 /markup/parse/fail-21.gmarkup 1320s ok 63 /markup/parse/valid-16.gmarkup 1320s ok 64 /markup/parse/fail-8.gmarkup 1320s ok 65 /markup/parse/valid-17.gmarkup 1320s ok 66 /markup/parse/fail-49.gmarkup 1320s ok - glib/markup-parse.test 1320s # Running test: glib/object.test 1320s ok - glib/object.test 1320s # Running test: glib/file-enumerator.test 1320s ok - glib/file-enumerator.test 1320s # Running test: glib/fileutils.test 1320s ok 67 /markup/parse/fail-14.gmarkup 1320s ok 68 /markup/parse/fail-34.gmarkup 1320s ok 69 /markup/parse/fail-22.gmarkup 1320s ok 70 /markup/parse/fail-39.gmarkup 1320s ok 71 /markup/parse/fail-18.gmarkup 1320s # End of parse tests 1320s # End of markup tests 1320s TAP version 14 1320s # random seed: R02S16fa440b1df2a54df2df8956496c769e 1320s 1..2 1320s # Start of object tests 1320s # Start of constructor tests 1320s ok 1 /object/constructor/singleton 1320s ok 2 /object/constructor/infanticide # SKIP skip tests that rely on debug-only warnings 1320s # End of constructor tests 1320s # End of object tests 1320s TAP version 14 1320s # random seed: R02S6e03af62e6f6e23cddd40b3825234b7b 1320s 1..1 1320s # Start of file-enumerator tests 1320s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1320s ok 1 /file-enumerator/close-on-dispose 1320s # End of file-enumerator tests 1320s TAP version 14 1320s # random seed: R02S2c8abdceafc7d9cf226a7cff35d8e151 1320s 1..27 1320s # Start of fileutils tests 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/paths/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/paths/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/paths/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/paths/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/paths/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/paths/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/paths/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/paths/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/paths/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/paths/.dirs/runtime 1320s ok 1 /fileutils/paths 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-path/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-path/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/build-path/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/build-path/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-path/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/build-path/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/build-path/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-path/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-path/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/build-path/.dirs/runtime 1320s ok 2 /fileutils/build-path 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-pathv/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-pathv/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/build-pathv/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/build-pathv/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-pathv/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/build-pathv/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/build-pathv/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-pathv/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-pathv/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/build-pathv/.dirs/runtime 1320s ok 3 /fileutils/build-pathv 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-filename/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-filename/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/build-filename/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/build-filename/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-filename/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/build-filename/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/build-filename/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-filename/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-filename/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/build-filename/.dirs/runtime 1320s ok 4 /fileutils/build-filename 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-filenamev/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-filenamev/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/build-filenamev/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/build-filenamev/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-filenamev/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/build-filenamev/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/build-filenamev/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-filenamev/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/build-filenamev/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/build-filenamev/.dirs/runtime 1320s ok 5 /fileutils/build-filenamev 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents/.dirs/runtime 1320s # We do not have CAP_DAC_OVERRIDE or equivalent 1320s # Checking g_mkdir_with_parents() in subdir ./hum/ 1320s # Checking g_mkdir_with_parents() in subdir ./hii///haa/hee/ 1320s ok 6 /fileutils/mkdir-with-parents 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents-permission/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents-permission/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents-permission/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents-permission/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents-permission/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents-permission/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents-permission/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents-permission/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents-permission/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/mkdir-with-parents-permission/.dirs/runtime 1320s # We do not have CAP_DAC_OVERRIDE or equivalent 1320s ok 7 /fileutils/mkdir-with-parents-permission 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/format-size-for-display/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/format-size-for-display/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/format-size-for-display/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/format-size-for-display/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/format-size-for-display/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/format-size-for-display/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/format-size-for-display/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/format-size-for-display/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/format-size-for-display/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/format-size-for-display/.dirs/runtime 1320s ok 8 /fileutils/format-size-for-display 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/errors/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/errors/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/errors/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/errors/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/errors/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/errors/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/errors/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/errors/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/errors/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/errors/.dirs/runtime 1320s ok 9 /fileutils/errors 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/basename/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/basename/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/basename/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/basename/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/basename/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/basename/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/basename/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/basename/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/basename/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/basename/.dirs/runtime 1320s ok 10 /fileutils/basename 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/get-basename/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/get-basename/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/get-basename/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/get-basename/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/get-basename/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/get-basename/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/get-basename/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/get-basename/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/get-basename/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/get-basename/.dirs/runtime 1320s ok 11 /fileutils/get-basename 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/dirname/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/dirname/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/dirname/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/dirname/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/dirname/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/dirname/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/dirname/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/dirname/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/dirname/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/dirname/.dirs/runtime 1320s ok 12 /fileutils/dirname 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/dir-make-tmp/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/dir-make-tmp/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/dir-make-tmp/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/dir-make-tmp/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/dir-make-tmp/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/dir-make-tmp/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/dir-make-tmp/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/dir-make-tmp/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/dir-make-tmp/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/dir-make-tmp/.dirs/runtime 1320s ok 13 /fileutils/dir-make-tmp 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/file-open-tmp/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/file-open-tmp/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/file-open-tmp/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/file-open-tmp/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/file-open-tmp/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/file-open-tmp/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/file-open-tmp/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/file-open-tmp/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/file-open-tmp/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/file-open-tmp/.dirs/runtime 1320s ok 14 /fileutils/file-open-tmp 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/file-test/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/file-test/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/file-test/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/file-test/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/file-test/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/file-test/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/file-test/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/file-test/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/file-test/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/file-test/.dirs/runtime 1320s ok 15 /fileutils/file-test 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkstemp/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkstemp/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/mkstemp/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/mkstemp/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkstemp/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/mkstemp/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/mkstemp/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkstemp/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkstemp/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/mkstemp/.dirs/runtime 1320s ok 16 /fileutils/mkstemp 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkdtemp/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkdtemp/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/mkdtemp/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/mkdtemp/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkdtemp/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/mkdtemp/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/mkdtemp/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkdtemp/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/mkdtemp/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/mkdtemp/.dirs/runtime 1320s ok 17 /fileutils/mkdtemp 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/get-contents/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/get-contents/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/get-contents/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/get-contents/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/get-contents/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/get-contents/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/get-contents/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/get-contents/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/get-contents/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/get-contents/.dirs/runtime 1320s ok 18 /fileutils/get-contents 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/get-contents-large-file/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/get-contents-large-file/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/get-contents-large-file/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/get-contents-large-file/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/get-contents-large-file/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/get-contents-large-file/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/get-contents-large-file/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/get-contents-large-file/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/get-contents-large-file/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/get-contents-large-file/.dirs/runtime 1320s ok 19 /fileutils/get-contents-large-file # SKIP Skipping slow largefile test 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/set-contents/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/set-contents/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/set-contents/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/set-contents/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/set-contents/.dirs/runtime 1320s ok 20 /fileutils/set-contents 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/.dirs/runtime 1320s # /fileutils/set-contents-full summary: Test g_file_set_contents_full() with various flags 1320s # Flags 0 and test 0 1320s # Flags 0 and test 1 1320s # Flags 0 and test 2 1320s # Flags 0 and test 3 1320s # Flags 0 and test 4 1320s # Flags 0 and test 5 1320s # Flags 0 and test 6 1320s # Flags 1 and test 0 1320s # Flags 1 and test 1 1320s # Flags 1 and test 2 1320s # Flags 1 and test 3 1320s # Flags 1 and test 4 1320s # Flags 1 and test 5 1320s # Flags 1 and test 6 1320s # Flags 2 and test 0 1320s # Flags 2 and test 1 1320s # Flags 2 and test 2 1320s # Flags 2 and test 3 1320s # Flags 2 and test 4 1320s # Flags 2 and test 5 1320s # Flags 2 and test 6 1320s # Flags 3 and test 0 1320s # Flags 3 and test 1 1320s # Flags 3 and test 2 1320s # Flags 3 and test 3 1320s # Flags 3 and test 4 1320s # Flags 3 and test 5 1320s # Flags 3 and test 6 1320s # Flags 4 and test 0 1320s # Flags 4 and test 1 1320s # Flags 4 and test 2 1320s # Flags 4 and test 3 1320s # Flags 4 and test 4 1320s # Flags 4 and test 5 1320s # Flags 4 and test 6 1320s # Flags 5 and test 0 1320s # Flags 5 and test 1 1320s # Flags 5 and test 2 1320s # Flags 5 and test 3 1320s # Flags 5 and test 4 1320s # Flags 5 and test 5 1320s # Flags 5 and test 6 1320s # Flags 6 and test 0 1320s # Flags 6 and test 1 1320s # Flags 6 and test 2 1320s # Flags 6 and test 3 1320s # Flags 6 and test 4 1320s # Flags 6 and test 5 1320s # Flags 6 and test 6 1320s ok 21 /fileutils/set-contents-full 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/read-link/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/read-link/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/read-link/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/read-link/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/read-link/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/read-link/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/read-link/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/read-link/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/read-link/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/read-link/.dirs/runtime 1320s ok 22 /fileutils/read-link 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/stdio-wrappers/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/stdio-wrappers/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/stdio-wrappers/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/stdio-wrappers/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/stdio-wrappers/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/stdio-wrappers/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/stdio-wrappers/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/stdio-wrappers/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/stdio-wrappers/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/stdio-wrappers/.dirs/runtime 1320s # We do not have CAP_DAC_OVERRIDE or equivalent 1320s ok 23 /fileutils/stdio-wrappers 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/fopen-modes/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/fopen-modes/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/fopen-modes/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/fopen-modes/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/fopen-modes/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/fopen-modes/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/fopen-modes/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/fopen-modes/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/fopen-modes/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/fopen-modes/.dirs/runtime 1320s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/119 1320s # Testing fopen() mode 'w' 1320s # Testing fopen() mode 'r' 1320s # Testing fopen() mode 'a' 1320s # Testing fopen() mode 'w+' 1320s # Testing fopen() mode 'r+' 1320s # Testing fopen() mode 'a+' 1320s # Testing fopen() mode 'wb' 1320s # Testing fopen() mode 'rb' 1320s # Testing fopen() mode 'ab' 1320s # Testing fopen() mode 'w+b' 1320s # Testing fopen() mode 'r+b' 1320s # Testing fopen() mode 'a+b' 1320s # Testing fopen() mode 'wb+' 1320s # Testing fopen() mode 'rb+' 1320s # Testing fopen() mode 'ab+' 1320s # Testing fopen() mode 'we' 1320s # Testing fopen() mode 're' 1320s # Testing fopen() mode 'ae' 1320s # Testing fopen() mode 'w+e' 1320s # Testing fopen() mode 'r+e' 1320s # Testing fopen() mode 'a+e' 1320s # Testing fopen() mode 'wbe' 1320s # Testing fopen() mode 'rbe' 1320s # Testing fopen() mode 'abe' 1320s # Testing fopen() mode 'w+be' 1320s # Testing fopen() mode 'r+be' 1320s # Testing fopen() mode 'a+be' 1320s # Testing fopen() mode 'wb+e' 1320s # Testing fopen() mode 'rb+e' 1320s # Testing fopen() mode 'ab+e' 1320s # Testing fopen() mode 'web' 1320s # Testing fopen() mode 'reb' 1320s # Testing fopen() mode 'aeb' 1320s # Testing fopen() mode 'w+eb' 1320s # Testing fopen() mode 'r+eb' 1320s # Testing fopen() mode 'a+eb' 1320s # Testing fopen() mode 'web+' 1320s # Testing fopen() mode 'reb+' 1320s # Testing fopen() mode 'aeb+' 1320s ok 24 /fileutils/fopen-modes 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/clear-fd/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/clear-fd/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/clear-fd/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/clear-fd/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/clear-fd/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/clear-fd/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/clear-fd/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/clear-fd/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/clear-fd/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/clear-fd/.dirs/runtime 1320s # /fileutils/clear-fd summary: Test g_clear_fd() and g_autofd 1320s # Will be closed by autocleanup: 3, -42 1320s # Testing error handling 1320s ok 25 /fileutils/clear-fd 1320s # Start of set-contents-full tests 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-file/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-file/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-file/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-file/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-file/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-file/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-file/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-file/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-file/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-file/.dirs/runtime 1320s # We do not have CAP_DAC_OVERRIDE or equivalent 1320s # /fileutils/set-contents-full/read-only-file summary: Test g_file_set_contents_full() on a read-only file 1320s ok 26 /fileutils/set-contents-full/read-only-file 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-directory/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-directory/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-directory/.dirs/system-config1:/tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-directory/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-directory/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-directory/.dirs/system-data1:/tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-directory/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-directory/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-directory/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_I6TZB3/fileutils/set-contents-full/read-only-directory/.dirs/runtime 1320s # /fileutils/set-contents-full/read-only-directory summary: Test g_file_set_contents_full() on a file in a read-only directory 1320s # Flags 0 1320s # We do not have CAP_DAC_OVERRIDE or equivalent 1320s # Flags 1 1320s # We do not have CAP_DAC_OVERRIDE or equivalent 1320s # Flags 2 1320s # We do not have CAP_DAC_OVERRIDE or equivalent 1320s # Flags 3 1320s # We do not have CAP_DAC_OVERRIDE or equivalent 1320s # Flags 4 1320s # We do not have CAP_DAC_OVERRIDE or equivalent 1320s # Flags 5 1320s # We do not have CAP_DAC_OVERRIDE or equivalent 1320s # Flags 6 1320s # We do not have CAP_DAC_OVERRIDE or equivalent 1320s ok 27 /fileutils/set-contents-full/read-only-directory 1320s # End of set-contents-full tests 1320s # Start of clear-fd tests 1320s # Start of subprocess tests 1320s # End of subprocess tests 1320s # End of clear-fd tests 1320s # End of fileutils tests 1320s Unable to clean up temporary directory /tmp/test_fileutils_I6TZB3/glib-file-set-contents-full-rodir-D793B3: Directory not empty 1320s Unable to clean up temporary directory /tmp/test_fileutils_I6TZB3/glib-file-set-contents-full-rodir-9973B3: Directory not empty 1320s Unable to clean up temporary directory /tmp/test_fileutils_I6TZB3/glib-file-set-contents-full-rodir-Z6G4B3: Directory not empty 1320s Unable to clean up temporary directory /tmp/test_fileutils_I6TZB3/glib-file-set-contents-full-rodir-5663B3: Directory not empty 1320s Unable to clean up temporary directory /tmp/test_fileutils_I6TZB3/glib-file-set-contents-full-rodir-QLI4B3: Directory not empty 1320s Unable to clean up temporary directory /tmp/test_fileutils_I6TZB3/glib-file-set-contents-full-rodir-FN73B3: Directory not empty 1320s Unable to clean up temporary directory /tmp/test_fileutils_I6TZB3/glib-file-set-contents-full-rodir-8OJ4B3: Directory not empty 1320s Unable to clean up temporary directory /tmp/test_fileutils_I6TZB3: Directory not empty 1320s TAP version 14 1320s # random seed: R02S5996d83a4f063230b0e7bdb9697d18e1 1320s 1..1 1320s # Start of option tests 1320s ok 1 /option/argv0 1320s # End of option tests 1320s TAP version 14 1320s # random seed: R02S286d3de8b04b383a4be148d2b26095ec 1320s 1..8 1320s # Start of gdbus tests 1320s # Start of codegen tests 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/annotations/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/annotations/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/annotations/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/annotations/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/annotations/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/annotations/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/annotations/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/annotations/.dirs/runtime 1320s ok 1 /gdbus/codegen/annotations 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/interface_stability/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/interface_stability/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/interface_stability/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/interface_stability/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/interface_stability/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/interface_stability/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/interface_stability/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/interface_stability/.dirs/runtime 1320s ok 2 /gdbus/codegen/interface_stability 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/object-manager/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/object-manager/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/object-manager/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/object-manager/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/object-manager/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/object-manager/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/object-manager/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/object-manager/.dirs/runtime 1320s ok 3 /gdbus/codegen/object-manager 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/property-naming/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/property-naming/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/property-naming/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/property-naming/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/property-naming/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/property-naming/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/property-naming/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/property-naming/.dirs/runtime 1320s ok 4 /gdbus/codegen/property-naming 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/autocleanups/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/autocleanups/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/autocleanups/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/autocleanups/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/autocleanups/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/autocleanups/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/autocleanups/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/autocleanups/.dirs/runtime 1320s ok 5 /gdbus/codegen/autocleanups 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/deprecations/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/deprecations/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/deprecations/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/deprecations/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/deprecations/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/deprecations/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/deprecations/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/deprecations/.dirs/runtime 1320s ok 6 /gdbus/codegen/deprecations 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/standalone-interface-info/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/standalone-interface-info/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/standalone-interface-info/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/standalone-interface-info/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/standalone-interface-info/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/standalone-interface-info/.dirs/runtime 1320s ok 7 /gdbus/codegen/standalone-interface-info 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/unix-fd-list/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/unix-fd-list/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/unix-fd-list/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/unix-fd-list/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/unix-fd-list/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/unix-fd-list/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/unix-fd-list/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_NSC4B3/gdbus/codegen/unix-fd-list/.dirs/runtime 1320s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1320s ok 8 /gdbus/codegen/unix-fd-list 1320s # End of codegen tests 1320s # End of gdbus tests 1320s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1320s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1320s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1320s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1320s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1320s TAP version 14 1320s # random seed: R02Sbf8349e631b0419bfaf4b1f87357c31c 1320s 1..14 1320s # Start of glib tests 1320s # Start of markup tests 1320s # Start of subparser tests 1320s # Start of success tests 1320s ok 1 /glib/markup/subparser/success/0 1320s ok 2 /glib/markup/subparser/success/1 1320s ok 3 /glib/markup/subparser/success/2 1320s ok 4 /glib/markup/subparser/success/3 1320s ok 5 /glib/markup/subparser/success/4 1320s ok 6 /glib/markup/subparser/success/5 1320s ok 7 /glib/markup/subparser/success/6 1320s # End of success tests 1320s # Start of failure tests 1320s ok 8 /glib/markup/subparser/failure/0 1320s ok 9 /glib/markup/subparser/failure/1 1320s ok 10 /glib/markup/subparser/failure/2 1320s ok 11 /glib/markup/subparser/failure/3 1320s ok 12 /glib/markup/subparser/failure/4 1320s ok 13 /glib/markup/subparser/failure/5 1320s ok 14 /glib/markup/subparser/failure/6 1320s # End of failure tests 1320s # End of subparser tests 1320s # End of markup tests 1320s # End of glib tests 1320s ok - glib/fileutils.test 1320s # Running test: glib/option-argv0.test 1320s ok - glib/option-argv0.test 1320s # Running test: glib/gdbus-test-codegen-old.test 1320s ok - glib/gdbus-test-codegen-old.test 1320s # Running test: glib/markup-subparser.test 1320s ok - glib/markup-subparser.test 1320s # Running test: glib/assert-msg-test.py.test 1320s TAP version 13 1320s ok 1 __main__.TestAssertMessage.test_gassert 1320s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 1320s # tmpdir: /tmp/tmp55t1f_w3 1320s # Running: ['/usr/libexec/installed-tests/glib/assert-msg-test'] 1320s # Return code: -6 1320s # Output: 1320s # Bail out! GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 1320s # Error: 1320s # ** 1320s # GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 1320s ok 2 __main__.TestAssertMessage.test_gdb_gassert # SKIP GDB is not installed, skipping this test! 1320s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 1320s # tmpdir: /tmp/tmp9bhg4xz2 1320s ok - glib/assert-msg-test.py.test 1320s # Running test: glib/unix.test 1320s 1..2 1320s TAP version 14 1320s # random seed: R02Sd776d524fcfaf0ba1d47f8483686bd0b 1320s 1..20 1320s # Start of glib-unix tests 1320s # /glib-unix/closefrom summary: Test g_closefrom(), g_fdwalk_set_cloexec() 1320s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3247 1320s ok 1 /glib-unix/closefrom 1320s ok 2 /glib-unix/pipe 1320s # /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 1320s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2795 1320s ok 3 /glib-unix/pipe-stdio-overwrite 1320s # /glib-unix/pipe-struct summary: Test GUnixPipe structure 1320s ok 4 /glib-unix/pipe-struct 1320s # /glib-unix/pipe-struct-auto summary: Test g_auto(GUnixPipe) 1320s ok 5 /glib-unix/pipe-struct-auto 1320s ok 6 /glib-unix/error 1320s ok 7 /glib-unix/nonblocking 1321s # Executing: glib/unix.test 1321s ok 8 /glib-unix/sighup 1321s # slow test /glib-unix/sighup executed in 0.50 secs 1321s ok 9 /glib-unix/sigterm 1321s # slow test /glib-unix/sigterm executed in 0.50 secs 1322s ok 10 /glib-unix/sighup_again 1322s # slow test /glib-unix/sighup_again executed in 0.50 secs 1322s ok 11 /glib-unix/sighup_add_remove 1322s ok 12 /glib-unix/sighup_nested 1324s ok 13 /glib-unix/callback_after_signal 1324s # slow test /glib-unix/callback_after_signal executed in 2.00 secs 1324s ok 14 /glib-unix/child-wait 1324s # Start of closefrom tests 1324s # Start of subprocess tests 1324s # End of subprocess tests 1324s # End of closefrom tests 1324s # Start of pipe tests 1324s # /glib-unix/pipe/fd-cloexec summary: Test that FD_CLOEXEC is still accepted as an argument to g_unix_open_pipe() 1324s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3459 1324s # GLib-DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead 1324s ok 15 /glib-unix/pipe/fd-cloexec 1324s # End of pipe tests 1324s # Start of sighup tests 1325s ok 16 /glib-unix/sighup/alternate-stack 1325s # slow test /glib-unix/sighup/alternate-stack executed in 1.00 secs 1325s # End of sighup tests 1325s # Start of sigterm tests 1326s # Executing: glib/unix.test 1326s ok 17 /glib-unix/sigterm/alternate-stack 1326s # slow test /glib-unix/sigterm/alternate-stack executed in 1.00 secs 1326s # End of sigterm tests 1326s # Start of sighup_again tests 1327s ok 18 /glib-unix/sighup_again/alternate-stack 1327s # slow test /glib-unix/sighup_again/alternate-stack executed in 1.00 secs 1327s # End of sighup_again tests 1327s # Start of get-passwd-entry tests 1327s # /glib-unix/get-passwd-entry/root summary: Tests that g_unix_get_passwd_entry() works for a known-existing username. 1327s ok 19 /glib-unix/get-passwd-entry/root 1327s # /glib-unix/get-passwd-entry/nonexistent summary: Tests that g_unix_get_passwd_entry() returns an error for a nonexistent username. 1327s ok - glib/unix.test 1327s ok 20 /glib-unix/get-passwd-entry/nonexistent 1327s # End of get-passwd-entry tests 1327s # End of glib-unix tests 1327s # Running test: glib/unicode-normalize.test 1327s TAP version 14 1327s # random seed: R02S59755ab882c74d5729c86407a3f9c773 1327s 1..3 1327s # Start of unicode tests 1327s # Processing Part0 # Specific cases 1327s # Processing Part1 # Character by character test 1327s # Processing Part2 # Canonical Order Test 1327s # Processing Part3 # PRI #29 Test 1327s # Processing Part4 # Canonical closures (excluding Hangul) 1327s # Processing Part5 # Chained primary composites 1327s ok 1 /unicode/normalize 1327s # Invalid UTF-8 vector 0 1327s # Invalid UTF-8 vector 1 1327s # Invalid UTF-8 vector 2 1327s # Invalid UTF-8 vector 3 1327s # Invalid UTF-8 vector 4 1327s # Invalid UTF-8 vector 5 1327s # Invalid UTF-8 vector 6 1327s # Invalid UTF-8 vector 7 1327s # Invalid UTF-8 vector 8 1327s # Invalid UTF-8 vector 9 1327s # Invalid UTF-8 vector 10 1327s # Invalid UTF-8 vector 11 1327s # Invalid UTF-8 vector 12 1327s ok 2 /unicode/normalize-invalid 1327s # Start of normalize tests 1327s ok - glib/unicode-normalize.test 1327s # Running test: glib/gsocketclient-slow.test 1327s ok 3 /unicode/normalize/bad-length 1327s # End of normalize tests 1327s # End of unicode tests 1327s TAP version 14 1327s # random seed: R02S13022d403233b8a7309066c670bcc09c 1327s 1..4 1327s # Start of socket-client tests 1327s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3184 1327s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1327s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa162684d0 and GSocketClientAsyncConnectData 0x2aa16263110 1327s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1327s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1327s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa1626c130 for GSocketClientAsyncConnectData 0x2aa16263110 1327s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1328s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1328s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1328s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1328s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1328s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1328s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa1626c130 for GSocketClientAsyncConnectData 0x2aa16263110 1328s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1328s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1328s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1328s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Could not connect to localhost: Connection refused 1328s ok 1 /socket-client/connection-fail 1328s # slow test /socket-client/connection-fail executed in 1.20 secs 1328s # Start of happy-eyeballs tests 1328s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa1626acc0 and GSocketClientAsyncConnectData 0x2aa1626bc60 1328s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1328s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1328s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa1626ef30 for GSocketClientAsyncConnectData 0x2aa1626bc60 1328s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1329s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1329s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1329s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1329s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1329s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1329s ok 2 /socket-client/happy-eyeballs/slow 1329s # slow test /socket-client/happy-eyeballs/slow executed in 0.60 secs 1329s # Start of cancellation tests 1329s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa1626b940 and GSocketClientAsyncConnectData 0x2aa1626f1d0 1329s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1329s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Operation was cancelled 1329s ok 3 /socket-client/happy-eyeballs/cancellation/instant 1329s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa1626abe0 and GSocketClientAsyncConnectData 0x2aa1626eb90 1329s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1329s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1329s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa1626f790 for GSocketClientAsyncConnectData 0x2aa1626eb90 1329s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1329s ok - glib/gsocketclient-slow.test 1329s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1329s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1329s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1329s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1329s # GLib-GIO-DEBUG: GSocketClient: Connection cancelled! 1329s ok 4 /socket-client/happy-eyeballs/cancellation/delayed 1329s # slow test /socket-client/happy-eyeballs/cancellation/delayed executed in 0.60 secs 1329s # End of cancellation tests 1329s # End of happy-eyeballs tests 1329s # End of socket-client tests 1329s TAP version 14 1329s # random seed: R02S39298ffc95cd21eed85dfdf03749f6fb 1329s 1..1 1329s # Start of png-thumbs tests 1329s ok 1 /png-thumbs/validity 1329s # End of png-thumbs tests 1329s # Running test: glib/thumbnail-verification.test 1329s ok - glib/thumbnail-verification.test 1329s # Running test: glib/deftype.test 1329s ok - glib/deftype.test 1329s # Running test: glib/gio-tool.py.test 1329s TAP version 13 1329s ok 1 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_folder 1329s # gio: /usr/bin/gio 1329s # tmpdir: /tmp/tmpb7ufd5qp 1329s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmpb7ufd5qp/folder/desktop.entry'] 1329s # Working Directory: /tmp/tmpb7ufd5qp/folder 1329s # Return code: 0 1329s # Output: 1329s # /tmp/tmpb7ufd5qp/folder/desktop.entry 1329s # Error: 1329s ok 2 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_parent 1329s # gio: /usr/bin/gio 1329s # tmpdir: /tmp/tmpti4chh4k 1329s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmpti4chh4k/folder/desktop.entry'] 1329s # Working Directory: /tmp/tmpti4chh4k 1329s # Return code: 0 1329s # Output: 1329s # /tmp/tmpti4chh4k/folder/desktop.entry 1329s # Error: 1329s ok 3 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_sibling 1329s # gio: /usr/bin/gio 1329s # tmpdir: /tmp/tmpvmswiivv 1329s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmpvmswiivv/folder/desktop.entry'] 1329s # Working Directory: /tmp/tmpvmswiivv/sibling 1329s # Return code: 0 1329s # Output: 1329s # /tmp/tmpvmswiivv/folder/desktop.entry 1329s # Error: 1330s ok 4 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_folder 1330s # gio: /usr/bin/gio 1330s # tmpdir: /tmp/tmp9d201mkv 1330s # Running: ['/usr/bin/gio', 'launch', 'desktop.entry'] 1330s # Working Directory: /tmp/tmp9d201mkv/folder 1330s # Return code: 0 1330s # Output: 1330s # /tmp/tmp9d201mkv/folder/desktop.entry 1330s # Error: 1330s ok 5 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_parent 1330s # gio: /usr/bin/gio 1330s # tmpdir: /tmp/tmpvjtep94n 1330s # Running: ['/usr/bin/gio', 'launch', 'folder/desktop.entry'] 1330s # Working Directory: /tmp/tmpvjtep94n 1330s # Return code: 0 1330s # Output: 1330s # /tmp/tmpvjtep94n/folder/desktop.entry 1330s # Error: 1330s ok 6 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_sibling 1330s # gio: /usr/bin/gio 1330s # tmpdir: /tmp/tmpxh46krrd 1330s # Running: ['/usr/bin/gio', 'launch', '../folder/desktop.entry'] 1330s # Working Directory: /tmp/tmpxh46krrd/sibling 1330s # Return code: 0 1330s # Output: 1330s # /tmp/tmpxh46krrd/folder/desktop.entry 1330s # Error: 1330s ok 7 __main__.TestGioTool.test_help 1330s # gio: /usr/bin/gio 1330s # tmpdir: /tmp/tmpdut07psq 1330s # Running: ['/usr/bin/gio', '--help'] 1330s # Return code: 0 1330s # Output: 1330s # Usage: 1330s # gio COMMAND [ARGS…] 1330s # 1330s # Commands: 1330s # help Print help 1330s # version Print version 1330s # cat Concatenate files to standard output 1330s # copy Copy one or more files 1330s # info Show information about locations 1330s # launch Launch an application from a desktop file 1330s # list List the contents of locations 1330s # mime Get or set the handler for a mimetype 1330s # mkdir Create directories 1330s # monitor Monitor files and directories for changes 1330s # mount Mount or unmount the locations 1330s # move Move one or more files 1330s # open Open files with the default application 1330s # rename Rename a file 1330s # remove Delete one or more files 1330s # save Read from standard input and save 1330s # set Set a file attribute 1330s # trash Move files or directories to the trash 1330s # tree Lists the contents of locations in a tree 1330s # 1330s # Use “gio help COMMAND” to get detailed help. 1330s # Error: 1330s # 1330s # Running: ['/usr/bin/gio', 'help'] 1330s # Return code: 0 1330s # Output: 1330s # Usage: 1330s # gio COMMAND [ARGS…] 1330s # 1330s # Commands: 1330s # help Print help 1330s # version Print version 1330s # cat Concatenate files to standard output 1330s # copy Copy one or more files 1330s # info Show information about locations 1330s # launch Launch an application from a desktop file 1330s # list List the contents of locations 1330s # mime Get or set the handler for a mimetype 1330s # mkdir Create directories 1330s # monitor Monitor files and directories for changes 1330s # mount Mount or unmount the locations 1330s # move Move one or more files 1330s # open Open files with the default application 1330s # rename Rename a file 1330s # remove Delete one or more files 1330s # save Read from standard input and save 1330s # set Set a file attribute 1330s # trash Move files or directories to the trash 1330s # tree Lists the contents of locations in a tree 1330s # 1330s # Use “gio help COMMAND” to get detailed help. 1330s # Error: 1330s ok 8 __main__.TestGioTool.test_info_non_default_attributes 1330s # gio: /usr/bin/gio 1330s # tmpdir: /tmp/tmpqhxbvwbc 1330s # Running: ['/usr/bin/gio', 'info', '--attributes=standard::content-type', '/tmp/tmpqhxbvwbc/tmpa_tklxy1'] 1330s # Return code: 0 1330s # Output: 1330s # uri: file:///tmp/tmpqhxbvwbc/tmpa_tklxy1 1330s # local path: /tmp/tmpqhxbvwbc/tmpa_tklxy1 1330s # unix mount: /dev/vda1 / ext4 rw,relatime,discard,errors=remount-ro,commit=30 1330s # attributes: 1330s # standard::content-type: application/x-zerosize 1330s # Error: 1330s ok 9 __main__.TestGioTool.test_no_args 1330s # gio: /usr/bin/gio 1330s # tmpdir: /tmp/tmpb4kwh2a5 1330s # Running: ['/usr/bin/gio'] 1330s # Return code: 1 1330s # Output: 1330s # 1330s # Error: 1330s # Usage: 1330s # gio COMMAND [ARGS…] 1330s # 1330s # Commands: 1330s # help Print help 1330s # version Print version 1330s # cat Concatenate files to standard output 1330s # copy Copy one or more files 1330s # info Show information about locations 1330s # launch Launch an application from a desktop file 1330s # list List the contents of locations 1330s # mime Get or set the handler for a mimetype 1330s # mkdir Create directories 1330s # monitor Monitor files and directories for changes 1330s # mount Mount or unmount the locations 1330s # move Move one or more files 1330s # open Open files with the default application 1330s # rename Rename a file 1330s # remove Delete one or more files 1330s # save Read from standard input and save 1330s # set Set a file attribute 1330s # trash Move files or directories to the trash 1330s # tree Lists the contents of locations in a tree 1330s # 1330s # Use “gio help COMMAND” to get detailed help. 1330s 1..9 1330s ok - glib/gio-tool.py.test 1330s # Running test: glib/gmenumodel.test 1330s TAP version 14 1330s # random seed: R02Sf75973a1669135988814b1991b19abac 1330s 1..15 1330s # Start of gmenu tests 1330s ok 1 /gmenu/equality 1331s ok 2 /gmenu/random 1331s # slow test /gmenu/random executed in 0.51 secs 1331s ok 3 /gmenu/attributes 1331s ok 4 /gmenu/links 1331s ok 5 /gmenu/mutable 1331s ok 6 /gmenu/convenience 1331s ok 7 /gmenu/menuitem 1331s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1331s # Executing: glib/gmenumodel.test 1331s ok 8 /gmenu/input-validation 1331s # Start of dbus tests 1332s ok 9 /gmenu/dbus/roundtrip 1332s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 1332s ok 10 /gmenu/dbus/subscriptions 1332s ok 11 /gmenu/dbus/threaded 1332s # Start of peer tests 1334s ok 12 /gmenu/dbus/peer/roundtrip 1334s # slow test /gmenu/dbus/peer/roundtrip executed in 1.01 secs 1334s ok 13 /gmenu/dbus/peer/subscriptions 1334s # End of peer tests 1334s # Start of export tests 1334s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1334s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1334s ok 14 /gmenu/dbus/export/error-handling 1334s # End of export tests 1334s # End of dbus tests 1334s # Start of attributes tests 1334s ok 15 /gmenu/attributes/iterate 1334s ok - glib/gmenumodel.test 1334s # Running test: glib/hmac.test 1334s ok - glib/hmac.test 1334s # Running test: glib/types.test 1334s ok - glib/types.test 1334s # Running test: glib/network-monitor.test 1334s ok - glib/network-monitor.test 1334s # Running test: glib/spawn-singlethread.test 1334s ok - glib/spawn-singlethread.test 1334s # Running test: glib/struct-info.test 1334s # End of attributes tests 1334s # End of gmenu tests 1334s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1334s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1334s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1334s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1334s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1334s TAP version 14 1334s # random seed: R02Scfb5a0cc66e20aae5db5759e06b38b6b 1334s 1..37 1334s # Start of hmac tests 1334s ok 1 /hmac/sha1-1 1334s ok 2 /hmac/sha1-2 1334s ok 3 /hmac/sha1-3 1334s ok 4 /hmac/sha1-4 1334s ok 5 /hmac/sha1-5 1334s ok 6 /hmac/sha1-6 1334s ok 7 /hmac/sha1-7 1334s ok 8 /hmac/sha256-1 1334s ok 9 /hmac/sha256-2 1334s ok 10 /hmac/sha256-3 1334s ok 11 /hmac/sha256-4 1334s ok 12 /hmac/sha256-5 1334s ok 13 /hmac/sha256-6 1334s ok 14 /hmac/sha384-1 1334s ok 15 /hmac/sha384-2 1334s ok 16 /hmac/sha384-3 1334s ok 17 /hmac/sha384-4 1334s ok 18 /hmac/sha384-5 1334s ok 19 /hmac/sha384-6 1334s ok 20 /hmac/sha512-1 1334s ok 21 /hmac/sha512-2 1334s ok 22 /hmac/sha512-3 1334s ok 23 /hmac/sha512-4 1334s ok 24 /hmac/sha512-5 1334s ok 25 /hmac/sha512-6 1334s ok 26 /hmac/md5-1 1334s ok 27 /hmac/md5-2 1334s ok 28 /hmac/md5-3 1334s ok 29 /hmac/md5-4 1334s ok 30 /hmac/md5-5 1334s ok 31 /hmac/md5-6 1334s ok 32 /hmac/md5-7 1334s ok 33 /hmac/ref-unref 1334s ok 34 /hmac/copy 1334s ok 35 /hmac/for-data 1334s ok 36 /hmac/for-string 1334s ok 37 /hmac/for-bytes 1334s # End of hmac tests 1334s TAP version 14 1334s # random seed: R02S8f17ea38fb16b5888d11c9ac207f33c8 1334s 1..1 1334s # Start of types tests 1334s ok 1 /types/basic_types 1334s # End of types tests 1334s TAP version 14 1334s # random seed: R02S0103d86b10285810355e5b2d9a1ddb92 1334s 1..4 1334s # Start of network-monitor tests 1334s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 1334s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 1334s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ‘gio-network-monitor’ 1334s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1334s ok 1 /network-monitor/default 1334s ok 2 /network-monitor/remove_default 1334s ok 3 /network-monitor/add_networks 1334s ok 4 /network-monitor/remove_networks 1334s # End of network-monitor tests 1334s TAP version 14 1334s # random seed: R02Sc825448f5c78e88837a5878da2013e01 1334s 1..9 1334s # Start of gthread tests 1334s ok 1 /gthread/spawn-single-sync 1334s # /gthread/spawn-stderr-socket summary: Test calling g_spawn_sync() with its stderr FD set to a socket 1334s ok 2 /gthread/spawn-stderr-socket 1334s ok 3 /gthread/spawn-single-async 1334s # thread 1 1334s # thread 1 1334s ok 4 /gthread/spawn-single-async-with-fds 1334s ok 5 /gthread/spawn-async-with-invalid-fds 1334s ok 6 /gthread/spawn-script 1334s ok 7 /gthread/spawn-posix-spawn 1334s # Start of spawn tests 1334s ok 8 /gthread/spawn/nonexistent 1334s # FD map: 1334s # • 5 → 15 1334s # • 6 → 16 1334s # • 7 → 17 1334s # • 8 → 18 1334s # • 9 → 19 1334s # • 10 → 20 1334s # • 11 → 21 1334s # • 12 → 22 1334s # • 13 → 23 1334s # • 3 → 13 1334s ok 9 /gthread/spawn/fd-assignment-clash 1334s # End of spawn tests 1334s # End of gthread tests 1334s TAP version 14 1334s # random seed: R02Sdd893a4ea9e1f47548138125855deeba 1334s 1..4 1334s # Start of struct-info tests 1334s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_PROLC3/struct-info/field-iterators/.dirs/home 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_PROLC3/struct-info/field-iterators/.dirs/cache 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_PROLC3/struct-info/field-iterators/.dirs/system-config1:/tmp/test_struct-info_PROLC3/struct-info/field-iterators/.dirs/system-config2 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_PROLC3/struct-info/field-iterators/.dirs/config 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_PROLC3/struct-info/field-iterators/.dirs/system-data1:/tmp/test_struct-info_PROLC3/struct-info/field-iterators/.dirs/system-data2 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_PROLC3/struct-info/field-iterators/.dirs/data 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_PROLC3/struct-info/field-iterators/.dirs/state 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_PROLC3/struct-info/field-iterators/.dirs/runtime 1334s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1334s # /struct-info/field-iterators summary: Test iterating through a struct's fields with gi_struct_info_get_field() 1334s ok 1 /struct-info/field-iterators 1334s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_PROLC3/struct-info/sizeof-gvalue/.dirs/home 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_PROLC3/struct-info/sizeof-gvalue/.dirs/cache 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_PROLC3/struct-info/sizeof-gvalue/.dirs/system-config1:/tmp/test_struct-info_PROLC3/struct-info/sizeof-gvalue/.dirs/system-config2 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_PROLC3/struct-info/sizeof-gvalue/.dirs/config 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_PROLC3/struct-info/sizeof-gvalue/.dirs/system-data1:/tmp/test_struct-info_PROLC3/struct-info/sizeof-gvalue/.dirs/system-data2 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_PROLC3/struct-info/sizeof-gvalue/.dirs/data 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_PROLC3/struct-info/sizeof-gvalue/.dirs/state 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_PROLC3/struct-info/sizeof-gvalue/.dirs/runtime 1334s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1334s # /struct-info/sizeof-gvalue summary: Test that gi_struct_info_get_size() reports the correct sizeof GValue 1334s ok 2 /struct-info/sizeof-gvalue 1334s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_PROLC3/struct-info/is-pointer-for-struct-method-arg/.dirs/home 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_PROLC3/struct-info/is-pointer-for-struct-method-arg/.dirs/cache 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_PROLC3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config1:/tmp/test_struct-info_PROLC3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config2 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_PROLC3/struct-info/is-pointer-for-struct-method-arg/.dirs/config 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_PROLC3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data1:/tmp/test_struct-info_PROLC3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data2 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_PROLC3/struct-info/is-pointer-for-struct-method-arg/.dirs/data 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_PROLC3/struct-info/is-pointer-for-struct-method-arg/.dirs/state 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_PROLC3/struct-info/is-pointer-for-struct-method-arg/.dirs/runtime 1334s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1334s # /struct-info/is-pointer-for-struct-method-arg summary: Test that a struct method reports the correct type with gi_type_info_is_pointer() 1334s ok 3 /struct-info/is-pointer-for-struct-method-arg 1334s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_PROLC3/struct-info/boxed/.dirs/home 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_PROLC3/struct-info/boxed/.dirs/cache 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_PROLC3/struct-info/boxed/.dirs/system-config1:/tmp/test_struct-info_PROLC3/struct-info/boxed/.dirs/system-config2 1334s ok - glib/struct-info.test 1334s # Running test: glib/gdbus-connection-loss.test 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_PROLC3/struct-info/boxed/.dirs/config 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_PROLC3/struct-info/boxed/.dirs/system-data1:/tmp/test_struct-info_PROLC3/struct-info/boxed/.dirs/system-data2 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_PROLC3/struct-info/boxed/.dirs/data 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_PROLC3/struct-info/boxed/.dirs/state 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_PROLC3/struct-info/boxed/.dirs/runtime 1334s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1334s # /struct-info/boxed summary: Test that a boxed struct is recognised as such 1334s ok 4 /struct-info/boxed 1334s # End of struct-info tests 1334s TAP version 14 1334s # random seed: R02S4915eda9ac49a46bec9e26fb23ccf685 1334s 1..1 1334s # Start of gdbus tests 1334s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-loss_97PLC3/gdbus/connection-loss/.dirs/home 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-loss_97PLC3/gdbus/connection-loss/.dirs/cache 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-loss_97PLC3/gdbus/connection-loss/.dirs/system-config1:/tmp/test_gdbus-connection-loss_97PLC3/gdbus/connection-loss/.dirs/system-config2 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-loss_97PLC3/gdbus/connection-loss/.dirs/config 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-loss_97PLC3/gdbus/connection-loss/.dirs/system-data1:/tmp/test_gdbus-connection-loss_97PLC3/gdbus/connection-loss/.dirs/system-data2 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-loss_97PLC3/gdbus/connection-loss/.dirs/data 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-loss_97PLC3/gdbus/connection-loss/.dirs/state 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-loss_97PLC3/gdbus/connection-loss/.dirs/runtime 1334s ok - glib/gdbus-connection-loss.test 1334s ok 1 /gdbus/connection-loss 1334s # End of gdbus tests 1334s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1334s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1334s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1334s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1334s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1334s # Running test: glib/gdbus-proxy-threads.test 1334s TAP version 14 1334s # random seed: R02S29c8b29af82ac824004dd44a482a21de 1334s 1..1 1334s # Start of gdbus tests 1334s # Start of proxy tests 1334s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-threads_PNFJC3/gdbus/proxy/vs-threads/.dirs/home 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-threads_PNFJC3/gdbus/proxy/vs-threads/.dirs/cache 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-threads_PNFJC3/gdbus/proxy/vs-threads/.dirs/system-config1:/tmp/test_gdbus-proxy-threads_PNFJC3/gdbus/proxy/vs-threads/.dirs/system-config2 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-threads_PNFJC3/gdbus/proxy/vs-threads/.dirs/config 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-threads_PNFJC3/gdbus/proxy/vs-threads/.dirs/system-data1:/tmp/test_gdbus-proxy-threads_PNFJC3/gdbus/proxy/vs-threads/.dirs/system-data2 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-threads_PNFJC3/gdbus/proxy/vs-threads/.dirs/data 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-threads_PNFJC3/gdbus/proxy/vs-threads/.dirs/state 1334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-threads_PNFJC3/gdbus/proxy/vs-threads/.dirs/runtime 1334s ok - glib/gdbus-proxy-threads.test 1334s ok 1 /gdbus/proxy/vs-threads 1334s # End of proxy tests 1334s # End of gdbus tests 1334s cleaning up pid 30704 1334s # Running test: glib/timeout.test 1334s TAP version 14 1334s # random seed: R02Sce41edd1f9e2077e7f00c5b7e5ba80e3 1334s 1..5 1334s # Start of timeout tests 1334s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1336s # Executing: glib/timeout.test 1336s ok 1 /timeout/seconds 1336s # slow test /timeout/seconds executed in 2.10 secs 1338s ok 2 /timeout/seconds-once 1338s # slow test /timeout/seconds-once executed in 2.10 secs 1338s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1341s # Executing: glib/timeout.test 1341s ok 3 /timeout/weeks-overflow 1341s # slow test /timeout/weeks-overflow executed in 2.10 secs 1341s ok 4 /timeout/far-future-ready-time 1346s # Executing: glib/timeout.test 1351s # Executing: glib/timeout.test 1351s ok 5 /timeout/rounding 1351s # slow test /timeout/rounding executed in 10.07 secs 1351s # End of timeout tests 1351s ok - glib/timeout.test 1351s # Running test: glib/portal-support-flatpak-gsettings-only.test 1351s TAP version 14 1351s # random seed: R02Sf3fea3308799125b70ad5ba8074b1ede 1351s 1..1 1351s # Start of portal-support tests 1351s # Start of flatpak tests 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-gsettings-only_DLLAC3/portal-support/flatpak/gsettings/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_DLLAC3/portal-support/flatpak/gsettings/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_DLLAC3/portal-support/flatpak/gsettings/.dirs/system-config1:/tmp/test_portal-support-flatpak-gsettings-only_DLLAC3/portal-support/flatpak/gsettings/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-gsettings-only_DLLAC3/portal-support/flatpak/gsettings/.dirs/config 1351s ok - glib/portal-support-flatpak-gsettings-only.test 1351s # Running test: glib/memory-monitor.test 1351s ok - glib/memory-monitor.test 1351s # Running test: glib/module-test-plugin.test 1351s ok - glib/module-test-plugin.test 1351s # Running test: glib/macros-c-99.test 1351s ok - glib/macros-c-99.test 1351s # Running test: glib/logging.test 1351s ok - glib/logging.test 1351s # Running test: glib/bookmarkfile.test 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_DLLAC3/portal-support/flatpak/gsettings/.dirs/system-data1:/tmp/test_portal-support-flatpak-gsettings-only_DLLAC3/portal-support/flatpak/gsettings/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-gsettings-only_DLLAC3/portal-support/flatpak/gsettings/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_DLLAC3/portal-support/flatpak/gsettings/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-gsettings-only_DLLAC3/portal-support/flatpak/gsettings/.dirs/runtime 1351s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-gsettings-only_DLLAC3/portal-support/flatpak/gsettings/.dirs/runtime/.flatpak-info 1351s ok 1 /portal-support/flatpak/gsettings 1351s # End of flatpak tests 1351s # End of portal-support tests 1351s TAP version 14 1351s # random seed: R02Se40e359b46884b0b1d9c27dde72444a7 1351s 1..1 1351s # Start of memory-monitor tests 1351s # GLib-GIO-DEBUG: Failed to initialize portal (GMemoryMonitorPortal) for gio-memory-monitor: Not using portals 1351s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GMemoryMonitorDBus) for ‘gio-memory-monitor’ 1351s ok 1 /memory-monitor/default 1351s # End of memory-monitor tests 1351s TAP version 14 1351s # random seed: R02S9c8abe82f90f393157aca2a0ef2410f8 1351s 1..3 1351s # Start of module tests 1351s ok 1 /module/basics 1351s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 1351s ok 2 /module/invalid-libtool-archive 1351s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 1351s ok 3 /module/local-binding 1351s # End of module tests 1351s TAP version 14 1351s # random seed: R02S2237e0bc10351c004a9e29a9c11e8614 1351s 1..4 1351s # Start of C tests 1351s ok 1 /C/standard-99 1351s # End of C tests 1351s # Start of alignof tests 1351s ok 2 /alignof/fallback 1351s # End of alignof tests 1351s # Start of assert tests 1351s ok 3 /assert/static 1351s # End of assert tests 1351s # Start of struct tests 1351s ok 4 /struct/sizeof_member 1351s # End of struct tests 1351s TAP version 14 1351s # random seed: R02Sc1758f7f214e1647e051ccd4bc050c47 1351s 1..19 1351s # Start of logging tests 1351s ok 1 /logging/default-handler 1351s ok 2 /logging/journald-handler 1351s ok 3 /logging/warnings 1351s ok 4 /logging/fatal-log-mask 1351s ok 5 /logging/always-fatal 1351s # bu-DEBUG: message 1351s # ba-DEBUG: message 1351s # ba-INFO: message 1351s ok 6 /logging/set-handler 1351s ok 7 /logging/print-handler 1351s ok 8 /logging/printerr-handler 1351s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=653052 1351s # The Log Message Handler 1351s # 1351s # The Good Fail Message Handler 1351s # 1351s ok 9 /logging/653052 1351s ok 10 /logging/gibberish 1351s # Start of default-handler tests 1351s # Start of subprocess tests 1351s # End of subprocess tests 1351s # End of default-handler tests 1351s # End of logging tests 1351s # Start of structured-logging tests 1351s ok 11 /structured-logging/no-state 1351s ok 12 /structured-logging/some-state 1351s ok 13 /structured-logging/robustness 1351s ok 14 /structured-logging/roundtrip1 1351s ok 15 /structured-logging/roundtrip2 1351s ok 16 /structured-logging/roundtrip3 1351s ok 17 /structured-logging/variant1 1351s ok 18 /structured-logging/variant2 1351s ok 19 /structured-logging/set-writer-func-twice 1351s # End of structured-logging tests 1351s TAP version 14 1351s # random seed: R02S13a9def71dd2e0a0e25e9b8f5789e139 1351s 1..96 1351s # Start of bookmarks tests 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/load-from-data-dirs/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/load-from-data-dirs/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/load-from-data-dirs/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/load-from-data-dirs/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/load-from-data-dirs/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/load-from-data-dirs/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/load-from-data-dirs/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/load-from-data-dirs/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/load-from-data-dirs/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/load-from-data-dirs/.dirs/runtime 1351s ok 1 /bookmarks/load-from-data-dirs 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/to-file/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/to-file/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/to-file/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/to-file/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/to-file/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/to-file/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/to-file/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/to-file/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/to-file/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/to-file/.dirs/runtime 1351s # Roundtrip from newly created bookmark file /tmp/test_bookmarkfile_4SCFC3/bookmarkfile-test-IJCFC3.xbel 1351s # Roundtrip from a valid bookmark file 1351s ok 2 /bookmarks/to-file 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/move-item/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/move-item/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/move-item/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/move-item/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/move-item/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/move-item/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/move-item/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/move-item/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/move-item/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/move-item/.dirs/runtime 1351s ok 3 /bookmarks/move-item 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/corner-cases/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/corner-cases/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/corner-cases/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/corner-cases/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/corner-cases/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/corner-cases/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/corner-cases/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/corner-cases/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/corner-cases/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/corner-cases/.dirs/runtime 1351s ok 4 /bookmarks/corner-cases 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/misc/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/misc/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/misc/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/misc/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/misc/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/misc/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/misc/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/misc/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/misc/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/misc/.dirs/runtime 1351s ok 5 /bookmarks/misc 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/deprecated/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/deprecated/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/deprecated/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/deprecated/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/deprecated/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/deprecated/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/deprecated/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/deprecated/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/deprecated/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/deprecated/.dirs/runtime 1351s ok 6 /bookmarks/deprecated 1351s # Start of parse tests 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-08.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-08.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-08.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-08.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-08.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-08.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-08.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-08.xbel/.dirs/runtime 1351s ok 7 /bookmarks/parse/fail-08.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-40.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-40.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-40.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-40.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-40.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-40.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-40.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-40.xbel/.dirs/runtime 1351s ok 8 /bookmarks/parse/fail-40.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-28.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-28.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-28.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-28.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-28.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-28.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-28.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-28.xbel/.dirs/runtime 1351s ok 9 /bookmarks/parse/fail-28.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-17.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-17.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-17.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-17.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-17.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-17.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-17.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-17.xbel/.dirs/runtime 1351s ok 10 /bookmarks/parse/fail-17.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-06.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-06.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-06.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-06.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-06.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-06.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-06.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-06.xbel/.dirs/runtime 1351s ok 11 /bookmarks/parse/fail-06.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-09.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-09.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-09.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-09.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-09.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-09.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-09.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-09.xbel/.dirs/runtime 1351s ok 12 /bookmarks/parse/fail-09.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-37.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-37.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-37.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-37.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-37.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-37.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-37.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-37.xbel/.dirs/runtime 1351s ok 13 /bookmarks/parse/fail-37.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-14.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-14.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-14.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-14.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-14.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-14.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-14.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-14.xbel/.dirs/runtime 1351s ok 14 /bookmarks/parse/fail-14.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-26.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-26.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-26.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-26.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-26.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-26.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-26.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-26.xbel/.dirs/runtime 1351s ok 15 /bookmarks/parse/fail-26.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-38.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-38.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-38.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-38.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-38.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-38.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-38.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-38.xbel/.dirs/runtime 1351s ok 16 /bookmarks/parse/fail-38.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-11.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-11.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-11.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-11.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-11.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-11.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-11.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-11.xbel/.dirs/runtime 1351s ok 17 /bookmarks/parse/fail-11.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-25.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-25.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-25.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-25.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-25.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-25.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-25.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-25.xbel/.dirs/runtime 1351s ok 18 /bookmarks/parse/fail-25.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-02.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-02.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-02.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-02.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-02.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-02.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-02.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-02.xbel/.dirs/runtime 1351s ok 19 /bookmarks/parse/fail-02.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-33.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-33.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-33.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-33.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-33.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-33.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-33.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-33.xbel/.dirs/runtime 1351s ok 20 /bookmarks/parse/fail-33.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-27.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-27.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-27.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-27.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-27.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-27.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-27.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-27.xbel/.dirs/runtime 1351s ok 21 /bookmarks/parse/fail-27.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-34.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-34.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-34.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-34.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-34.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-34.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-34.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-34.xbel/.dirs/runtime 1351s ok 22 /bookmarks/parse/fail-34.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-41.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-41.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-41.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-41.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-41.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-41.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-41.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-41.xbel/.dirs/runtime 1351s ok 23 /bookmarks/parse/fail-41.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-24.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-24.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-24.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-24.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-24.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-24.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-24.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-24.xbel/.dirs/runtime 1351s ok 24 /bookmarks/parse/fail-24.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-10.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-10.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-10.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-10.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-10.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-10.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-10.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-10.xbel/.dirs/runtime 1351s ok 25 /bookmarks/parse/fail-10.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-16.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-16.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-16.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-16.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-16.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-16.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-16.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-16.xbel/.dirs/runtime 1351s ok 26 /bookmarks/parse/fail-16.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-39.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-39.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-39.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-39.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-39.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-39.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-39.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-39.xbel/.dirs/runtime 1351s ok 27 /bookmarks/parse/fail-39.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-30.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-30.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-30.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-30.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-30.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-30.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-30.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-30.xbel/.dirs/runtime 1351s ok 28 /bookmarks/parse/fail-30.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-23.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-23.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-23.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-23.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-23.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-23.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-23.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-23.xbel/.dirs/runtime 1351s ok 29 /bookmarks/parse/fail-23.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-31.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-31.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-31.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-31.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-31.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-31.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-31.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-31.xbel/.dirs/runtime 1351s ok 30 /bookmarks/parse/fail-31.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-42.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-42.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-42.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-42.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-42.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-42.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-42.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-42.xbel/.dirs/runtime 1351s ok 31 /bookmarks/parse/fail-42.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-12.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-12.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-12.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-12.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-12.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-12.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-12.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-12.xbel/.dirs/runtime 1351s ok 32 /bookmarks/parse/fail-12.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-18.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-18.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-18.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-18.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-18.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-18.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-18.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-18.xbel/.dirs/runtime 1351s ok 33 /bookmarks/parse/fail-18.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-03.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-03.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-03.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-03.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-03.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-03.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-03.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-03.xbel/.dirs/runtime 1351s ok 34 /bookmarks/parse/fail-03.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-13.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-13.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-13.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-13.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-13.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-13.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-13.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-13.xbel/.dirs/runtime 1351s ok 35 /bookmarks/parse/fail-13.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-01.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-01.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-01.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-01.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-01.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-01.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-01.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-01.xbel/.dirs/runtime 1351s ok 36 /bookmarks/parse/valid-01.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-35.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-35.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-35.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-35.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-35.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-35.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-35.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-35.xbel/.dirs/runtime 1351s ok 37 /bookmarks/parse/fail-35.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-21.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-21.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-21.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-21.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-21.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-21.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-21.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-21.xbel/.dirs/runtime 1351s ok 38 /bookmarks/parse/fail-21.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-01.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-01.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-01.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-01.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-01.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-01.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-01.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-01.xbel/.dirs/runtime 1351s ok 39 /bookmarks/parse/fail-01.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-22.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-22.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-22.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-22.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-22.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-22.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-22.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-22.xbel/.dirs/runtime 1351s ok 40 /bookmarks/parse/fail-22.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-04.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-04.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-04.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-04.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-04.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-04.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-04.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-04.xbel/.dirs/runtime 1351s ok 41 /bookmarks/parse/fail-04.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-07.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-07.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-07.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-07.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-07.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-07.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-07.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-07.xbel/.dirs/runtime 1351s ok 42 /bookmarks/parse/fail-07.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-19.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-19.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-19.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-19.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-19.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-19.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-19.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-19.xbel/.dirs/runtime 1351s ok 43 /bookmarks/parse/fail-19.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-05.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-05.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-05.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-05.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-05.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-05.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-05.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-05.xbel/.dirs/runtime 1351s ok 44 /bookmarks/parse/fail-05.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-03.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-03.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-03.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-03.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-03.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-03.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-03.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-03.xbel/.dirs/runtime 1351s ok 45 /bookmarks/parse/valid-03.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-29.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-29.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-29.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-29.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-29.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-29.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-29.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-29.xbel/.dirs/runtime 1351s ok 46 /bookmarks/parse/fail-29.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-02.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-02.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-02.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-02.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-02.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-02.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-02.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/valid-02.xbel/.dirs/runtime 1351s ok 47 /bookmarks/parse/valid-02.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-20.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-20.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-20.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-20.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-20.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-20.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-20.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-20.xbel/.dirs/runtime 1351s ok 48 /bookmarks/parse/fail-20.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-15.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-15.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-15.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-15.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-15.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-15.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-15.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-15.xbel/.dirs/runtime 1351s ok 49 /bookmarks/parse/fail-15.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-36.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-36.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-36.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-36.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-36.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-36.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-36.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-36.xbel/.dirs/runtime 1351s ok 50 /bookmarks/parse/fail-36.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-32.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-32.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-32.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-32.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-32.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-32.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-32.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/parse/fail-32.xbel/.dirs/runtime 1351s ok 51 /bookmarks/parse/fail-32.xbel 1351s # End of parse tests 1351s # Start of copy tests 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-08.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-08.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-08.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-08.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-08.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-08.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-08.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-08.xbel/.dirs/runtime 1351s ok 52 /bookmarks/copy/fail-08.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-40.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-40.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-40.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-40.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-40.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-40.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-40.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-40.xbel/.dirs/runtime 1351s ok 53 /bookmarks/copy/fail-40.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-28.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-28.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-28.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-28.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-28.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-28.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-28.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-28.xbel/.dirs/runtime 1351s ok 54 /bookmarks/copy/fail-28.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-17.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-17.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-17.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-17.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-17.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-17.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-17.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-17.xbel/.dirs/runtime 1351s ok 55 /bookmarks/copy/fail-17.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-06.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-06.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-06.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-06.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-06.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-06.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-06.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-06.xbel/.dirs/runtime 1351s ok 56 /bookmarks/copy/fail-06.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-09.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-09.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-09.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-09.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-09.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-09.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-09.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-09.xbel/.dirs/runtime 1351s ok 57 /bookmarks/copy/fail-09.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-37.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-37.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-37.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-37.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-37.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-37.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-37.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-37.xbel/.dirs/runtime 1351s ok 58 /bookmarks/copy/fail-37.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-14.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-14.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-14.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-14.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-14.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-14.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-14.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-14.xbel/.dirs/runtime 1351s ok 59 /bookmarks/copy/fail-14.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-26.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-26.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-26.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-26.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-26.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-26.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-26.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-26.xbel/.dirs/runtime 1351s ok 60 /bookmarks/copy/fail-26.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-38.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-38.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-38.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-38.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-38.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-38.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-38.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-38.xbel/.dirs/runtime 1351s ok 61 /bookmarks/copy/fail-38.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-11.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-11.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-11.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-11.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-11.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-11.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-11.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-11.xbel/.dirs/runtime 1351s ok 62 /bookmarks/copy/fail-11.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-25.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-25.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-25.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-25.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-25.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-25.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-25.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-25.xbel/.dirs/runtime 1351s ok 63 /bookmarks/copy/fail-25.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-02.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-02.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-02.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-02.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-02.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-02.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-02.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-02.xbel/.dirs/runtime 1351s ok 64 /bookmarks/copy/fail-02.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-33.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-33.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-33.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-33.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-33.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-33.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-33.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-33.xbel/.dirs/runtime 1351s ok 65 /bookmarks/copy/fail-33.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-27.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-27.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-27.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-27.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-27.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-27.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-27.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-27.xbel/.dirs/runtime 1351s ok 66 /bookmarks/copy/fail-27.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-34.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-34.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-34.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-34.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-34.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-34.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-34.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-34.xbel/.dirs/runtime 1351s ok 67 /bookmarks/copy/fail-34.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-41.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-41.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-41.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-41.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-41.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-41.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-41.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-41.xbel/.dirs/runtime 1351s ok 68 /bookmarks/copy/fail-41.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-24.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-24.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-24.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-24.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-24.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-24.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-24.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-24.xbel/.dirs/runtime 1351s ok 69 /bookmarks/copy/fail-24.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-10.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-10.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-10.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-10.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-10.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-10.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-10.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-10.xbel/.dirs/runtime 1351s ok 70 /bookmarks/copy/fail-10.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-16.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-16.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-16.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-16.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-16.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-16.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-16.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-16.xbel/.dirs/runtime 1351s ok 71 /bookmarks/copy/fail-16.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-39.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-39.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-39.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-39.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-39.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-39.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-39.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-39.xbel/.dirs/runtime 1351s ok 72 /bookmarks/copy/fail-39.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-30.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-30.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-30.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-30.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-30.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-30.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-30.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-30.xbel/.dirs/runtime 1351s ok 73 /bookmarks/copy/fail-30.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-23.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-23.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-23.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-23.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-23.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-23.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-23.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-23.xbel/.dirs/runtime 1351s ok 74 /bookmarks/copy/fail-23.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-31.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-31.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-31.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-31.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-31.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-31.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-31.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-31.xbel/.dirs/runtime 1351s ok 75 /bookmarks/copy/fail-31.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-42.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-42.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-42.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-42.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-42.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-42.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-42.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-42.xbel/.dirs/runtime 1351s ok 76 /bookmarks/copy/fail-42.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-12.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-12.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-12.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-12.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-12.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-12.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-12.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-12.xbel/.dirs/runtime 1351s ok 77 /bookmarks/copy/fail-12.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-18.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-18.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-18.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-18.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-18.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-18.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-18.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-18.xbel/.dirs/runtime 1351s ok 78 /bookmarks/copy/fail-18.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-03.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-03.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-03.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-03.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-03.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-03.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-03.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-03.xbel/.dirs/runtime 1351s ok 79 /bookmarks/copy/fail-03.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-13.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-13.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-13.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-13.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-13.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-13.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-13.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-13.xbel/.dirs/runtime 1351s ok 80 /bookmarks/copy/fail-13.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-01.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-01.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-01.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-01.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-01.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-01.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-01.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-01.xbel/.dirs/runtime 1351s ok 81 /bookmarks/copy/valid-01.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-35.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-35.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-35.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-35.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-35.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-35.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-35.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-35.xbel/.dirs/runtime 1351s ok 82 /bookmarks/copy/fail-35.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-21.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-21.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-21.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-21.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-21.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-21.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-21.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-21.xbel/.dirs/runtime 1351s ok 83 /bookmarks/copy/fail-21.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-01.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-01.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-01.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-01.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-01.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-01.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-01.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-01.xbel/.dirs/runtime 1351s ok 84 /bookmarks/copy/fail-01.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-22.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-22.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-22.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-22.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-22.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-22.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-22.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-22.xbel/.dirs/runtime 1351s ok 85 /bookmarks/copy/fail-22.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-04.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-04.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-04.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-04.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-04.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-04.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-04.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-04.xbel/.dirs/runtime 1351s ok 86 /bookmarks/copy/fail-04.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-07.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-07.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-07.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-07.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-07.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-07.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-07.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-07.xbel/.dirs/runtime 1351s ok 87 /bookmarks/copy/fail-07.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-19.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-19.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-19.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-19.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-19.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-19.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-19.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-19.xbel/.dirs/runtime 1351s ok 88 /bookmarks/copy/fail-19.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-05.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-05.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-05.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-05.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-05.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-05.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-05.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-05.xbel/.dirs/runtime 1351s ok 89 /bookmarks/copy/fail-05.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-03.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-03.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-03.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-03.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-03.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-03.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-03.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-03.xbel/.dirs/runtime 1351s ok 90 /bookmarks/copy/valid-03.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-29.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-29.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-29.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-29.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-29.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-29.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-29.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-29.xbel/.dirs/runtime 1351s ok 91 /bookmarks/copy/fail-29.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-02.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-02.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-02.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-02.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-02.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-02.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-02.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/valid-02.xbel/.dirs/runtime 1351s ok 92 /bookmarks/copy/valid-02.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-20.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-20.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-20.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-20.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-20.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-20.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-20.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-20.xbel/.dirs/runtime 1351s ok 93 /bookmarks/copy/fail-20.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-15.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-15.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-15.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-15.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-15.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-15.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-15.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-15.xbel/.dirs/runtime 1351s ok 94 /bookmarks/copy/fail-15.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-36.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-36.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-36.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-36.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-36.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-36.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-36.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-36.xbel/.dirs/runtime 1351s ok 95 /bookmarks/copy/fail-36.xbel 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-32.xbel/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-32.xbel/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-32.xbel/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-32.xbel/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-32.xbel/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-32.xbel/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-32.xbel/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_4SCFC3/bookmarks/copy/fail-32.xbel/.dirs/runtime 1351s ok 96 /bookmarks/copy/fail-32.xbel 1351s # End of copy tests 1351s # End of bookmarks tests 1351s ok - glib/bookmarkfile.test 1351s # Running test: glib/gdbus-export.test 1351s TAP version 14 1351s # random seed: R02Sa439e1f0e49575a3143a306a49b5a246 1351s 1..7 1351s # Start of gdbus tests 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration/.dirs/system-config1:/tmp/test_gdbus-export_0WWEC3/gdbus/object-registration/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration/.dirs/system-data1:/tmp/test_gdbus-export_0WWEC3/gdbus/object-registration/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration/.dirs/runtime 1351s ok 1 /gdbus/object-registration 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures/.dirs/system-config1:/tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures/.dirs/system-data1:/tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures/.dirs/runtime 1351s ok 2 /gdbus/object-registration-with-closures 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures2/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures2/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures2/.dirs/system-config1:/tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures2/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures2/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures2/.dirs/system-data1:/tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures2/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures2/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures2/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_0WWEC3/gdbus/object-registration-with-closures2/.dirs/runtime 1351s ok 3 /gdbus/object-registration-with-closures2 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/registered-interfaces/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/registered-interfaces/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_0WWEC3/gdbus/registered-interfaces/.dirs/system-config1:/tmp/test_gdbus-export_0WWEC3/gdbus/registered-interfaces/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/registered-interfaces/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_0WWEC3/gdbus/registered-interfaces/.dirs/system-data1:/tmp/test_gdbus-export_0WWEC3/gdbus/registered-interfaces/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/registered-interfaces/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/registered-interfaces/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_0WWEC3/gdbus/registered-interfaces/.dirs/runtime 1351s ok 4 /gdbus/registered-interfaces 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/async-properties/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/async-properties/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_0WWEC3/gdbus/async-properties/.dirs/system-config1:/tmp/test_gdbus-export_0WWEC3/gdbus/async-properties/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/async-properties/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_0WWEC3/gdbus/async-properties/.dirs/system-data1:/tmp/test_gdbus-export_0WWEC3/gdbus/async-properties/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/async-properties/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/async-properties/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_0WWEC3/gdbus/async-properties/.dirs/runtime 1351s ok 5 /gdbus/async-properties 1351s # Start of threaded-unregistration tests 1351s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/object/.dirs/home 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/object/.dirs/cache 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/object/.dirs/system-config1:/tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/object/.dirs/system-config2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/object/.dirs/config 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/object/.dirs/system-data1:/tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/object/.dirs/system-data2 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/object/.dirs/data 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/object/.dirs/state 1351s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/object/.dirs/runtime 1351s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1351s # /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 1352s ok 6 /gdbus/threaded-unregistration/object # SKIP Failed to reproduce race (0 iterations with unregistration first, 1000 with call first); skipping test 1352s # slow test /gdbus/threaded-unregistration/object executed in 0.77 secs 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/subtree/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/subtree/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/subtree/.dirs/system-config1:/tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/subtree/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/subtree/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/subtree/.dirs/system-data1:/tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/subtree/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/subtree/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/subtree/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_0WWEC3/gdbus/threaded-unregistration/subtree/.dirs/runtime 1352s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1352s # /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 1352s ok 7 /gdbus/threaded-unregistration/subtree # SKIP Failed to reproduce race (0 iterations with unregistration first, 1000 with call first); skipping test 1352s # slow test /gdbus/threaded-unregistration/subtree executed in 0.77 secs 1352s # End of threaded-unregistration tests 1352s # End of gdbus tests 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s ok - glib/gdbus-export.test 1352s # Running test: glib/application-command-line.test 1352s TAP version 14 1352s # random seed: R02Sfd1389d10eaf9fb797c355402c972a8a 1352s 1..1 1352s # Start of application-command-line tests 1352s ok 1 /application-command-line/basic-properties 1352s # End of application-command-line tests 1352s ok - glib/application-command-line.test 1352s # Running test: glib/gobject-private.test 1352s ok - glib/gobject-private.test 1352s # Running test: glib/references.test 1352s ok - glib/references.test 1352s # Running test: glib/converter.test 1352s ok - glib/converter.test 1352s # Running test: glib/stream-rw_all.test 1352s ok - glib/stream-rw_all.test 1352s # Running test: glib/gdbus-message.test 1352s ok - glib/gdbus-message.test 1352s # Running test: glib/bytes.test 1352s ok - glib/bytes.test 1352s # Running test: glib/refcount-macro.test 1352s ok - glib/refcount-macro.test 1352s # Running test: glib/hash.test 1352s TAP version 14 1352s # random seed: R02S2db9cbedc1b838badf72bad07d6d15a2 1352s 1..3 1352s # Start of private tests 1352s ok 1 /private/instance 1352s ok 2 /private/derived-instance 1352s ok 3 /private/mixed-derived-instance 1352s # End of private tests 1352s TAP version 14 1352s # random seed: R02S1931539f28ff81d2a72101782abaa98d 1352s 1..4 1352s # Start of gobject tests 1352s ok 1 /gobject/references 1352s ok 2 /gobject/references-many 1352s ok 3 /gobject/references_two 1352s ok 4 /gobject/references_run_dispose 1352s # End of gobject tests 1352s TAP version 14 1352s # random seed: R02S1072062fec202067ed99d203de7db01c 1352s 1..3 1352s # Start of converter tests 1352s ok 1 /converter/bytes 1352s ok 2 /converter/extra-bytes-at-end 1352s ok 3 /converter/gzip-os-property 1352s # End of converter tests 1352s TAP version 14 1352s # random seed: R02Sf50524517e61c8c7d71351a90a6f4cb0 1352s 1..3 1352s # Start of stream tests 1352s # Start of read_all_async tests 1352s ok 1 /stream/read_all_async/memory 1352s # End of read_all_async tests 1352s # Start of write_all_async tests 1352s ok 2 /stream/write_all_async/memory 1352s # End of write_all_async tests 1352s # Start of read_write_all_async tests 1352s ok 3 /stream/read_write_all_async/pipe 1352s # End of read_write_all_async tests 1352s # End of stream tests 1352s TAP version 14 1352s # random seed: R02Sb2516c6246df877a11a3db78f920166e 1352s 1..3 1352s # Start of gdbus tests 1352s # Start of message tests 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_ATK2B3/gdbus/message/lock/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_ATK2B3/gdbus/message/lock/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_ATK2B3/gdbus/message/lock/.dirs/system-config1:/tmp/test_gdbus-message_ATK2B3/gdbus/message/lock/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_ATK2B3/gdbus/message/lock/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_ATK2B3/gdbus/message/lock/.dirs/system-data1:/tmp/test_gdbus-message_ATK2B3/gdbus/message/lock/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_ATK2B3/gdbus/message/lock/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_ATK2B3/gdbus/message/lock/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_ATK2B3/gdbus/message/lock/.dirs/runtime 1352s ok 1 /gdbus/message/lock 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_ATK2B3/gdbus/message/copy/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_ATK2B3/gdbus/message/copy/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_ATK2B3/gdbus/message/copy/.dirs/system-config1:/tmp/test_gdbus-message_ATK2B3/gdbus/message/copy/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_ATK2B3/gdbus/message/copy/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_ATK2B3/gdbus/message/copy/.dirs/system-data1:/tmp/test_gdbus-message_ATK2B3/gdbus/message/copy/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_ATK2B3/gdbus/message/copy/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_ATK2B3/gdbus/message/copy/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_ATK2B3/gdbus/message/copy/.dirs/runtime 1352s ok 2 /gdbus/message/copy 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_ATK2B3/gdbus/message/bytes-needed/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_ATK2B3/gdbus/message/bytes-needed/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_ATK2B3/gdbus/message/bytes-needed/.dirs/system-config1:/tmp/test_gdbus-message_ATK2B3/gdbus/message/bytes-needed/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_ATK2B3/gdbus/message/bytes-needed/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_ATK2B3/gdbus/message/bytes-needed/.dirs/system-data1:/tmp/test_gdbus-message_ATK2B3/gdbus/message/bytes-needed/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_ATK2B3/gdbus/message/bytes-needed/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_ATK2B3/gdbus/message/bytes-needed/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_ATK2B3/gdbus/message/bytes-needed/.dirs/runtime 1352s # Vector: 0 1352s # Vector: 1 1352s # Vector: 2 1352s # Vector: 3 1352s # Vector: 4 1352s # Vector: 5 1352s ok 3 /gdbus/message/bytes-needed 1352s # End of message tests 1352s # End of gdbus tests 1352s TAP version 14 1352s # random seed: R02Sf0bc9a73df260f91b26e994e1157f8a2 1352s 1..21 1352s # Start of bytes tests 1352s ok 1 /bytes/new 1352s ok 2 /bytes/new-take 1352s ok 3 /bytes/new-static 1352s ok 4 /bytes/new-with-free-func 1352s ok 5 /bytes/new-from-bytes 1352s ok 6 /bytes/new-from-bytes-slice 1352s ok 7 /bytes/new-from-bytes-shared-ref 1352s ok 8 /bytes/hash 1352s ok 9 /bytes/equal 1352s ok 10 /bytes/compare 1352s ok 11 /bytes/null 1352s ok 12 /bytes/get-region 1352s # /bytes/unref-null summary: Test that calling g_bytes_unref() on NULL is a no-op 1352s ok 13 /bytes/unref-null 1352s # Start of to-data tests 1352s ok 14 /bytes/to-data/transferred 1352s ok 15 /bytes/to-data/two-refs 1352s ok 16 /bytes/to-data/non-malloc 1352s ok 17 /bytes/to-data/different-free-func 1352s # End of to-data tests 1352s # Start of to-array tests 1352s ok 18 /bytes/to-array/transferred 1352s ok 19 /bytes/to-array/two-refs 1352s ok 20 /bytes/to-array/non-malloc 1352s # Start of transferred tests 1352s # g_bytes_unref_to_array() can only take GBytes up to G_MAXUINT in length; test that longer ones are rejected 1352s ok 21 /bytes/to-array/transferred/oversize 1352s # End of transferred tests 1352s # End of to-array tests 1352s # End of bytes tests 1352s TAP version 14 1352s # random seed: R02Sccdaf87c6fa47e971c788581f262dc05 1352s 1..4 1352s # Start of refcount tests 1352s ok 1 /refcount/grefcount 1352s ok 2 /refcount/gatomicrefcount 1352s # Start of grefcount tests 1352s ok 3 /refcount/grefcount/saturation 1352s # End of grefcount tests 1352s # Start of gatomicrefcount tests 1352s ok 4 /refcount/gatomicrefcount/saturation 1352s # End of gatomicrefcount tests 1352s # End of refcount tests 1352s TAP version 14 1352s # random seed: R02S26fe863b422613b8bfd50ab002115038 1352s 1..34 1352s # Start of hash tests 1352s ok 1 /hash/misc 1352s ok 2 /hash/one 1352s ok 3 /hash/honeyman 1352s ok 4 /hash/direct 1352s ok 5 /hash/direct2 1352s ok 6 /hash/int 1352s ok 7 /hash/int64 1352s ok 8 /hash/double 1352s ok 9 /hash/string 1352s ok 10 /hash/set 1352s ok 11 /hash/set-ref 1352s ok 12 /hash/ref 1352s ok 13 /hash/remove-all 1352s ok 14 /hash/recursive-remove-all 1352s ok 15 /hash/find 1352s ok 16 /hash/foreach 1352s ok 17 /hash/foreach-steal 1352s ok 18 /hash/steal-extended 1352s ok 19 /hash/steal-all-keys 1352s ok 20 /hash/steal-all-values 1352s ok 21 /hash/lookup-extended 1352s ok 22 /hash/new-similar 1352s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642944 1352s ok 23 /hash/lookup-null-key 1352s ok - glib/hash.test 1352s # Running test: glib/autoptr-gio.test 1352s ok - glib/autoptr-gio.test 1352s # Running test: glib/macros.test 1352s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=650459 1352s ok 24 /hash/destroy-modify 1352s ok 25 /hash/consistency 1352s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=662544 1352s ok 26 /hash/iter-replace 1352s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=692815 1352s ok 27 /hash/set-insert-corruption 1352s ok 28 /hash/set-to-strv 1352s ok 29 /hash/get-keys-as-ptr-array 1352s ok 30 /hash/get-values-as-ptr-array 1352s ok 31 /hash/primes 1352s # Start of int64 tests 1352s # /hash/int64/collisions summary: Check int64 Hash collisions caused by ignoring high word 1352s ok 32 /hash/int64/collisions 1352s # End of int64 tests 1352s # Start of double tests 1352s # /hash/double/collisions summary: Check double Hash collisions caused by int conversion and by numbers larger than 2^64-1 (G_MAXUINT64) 1352s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2771 1352s ok 33 /hash/double/collisions 1352s # End of double tests 1352s # Start of recursive-remove-all tests 1352s # End of recursive-remove-all tests 1352s # Start of steal-extended tests 1352s ok 34 /hash/steal-extended/optional 1352s # End of steal-extended tests 1352s # End of hash tests 1352s TAP version 14 1352s # random seed: R02Sa1385987a715b153b3f56ec7de5caec4 1352s 1..1 1352s # Start of autoptr tests 1352s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1352s ok 1 /autoptr/autoptr 1352s # End of autoptr tests 1352s ok - glib/macros.test 1352s # Running test: glib/async-splice-output-stream.test 1352s ok - glib/async-splice-output-stream.test 1352s # Running test: glib/array-test.test 1352s TAP version 14 1352s # random seed: R02S29f30e734832f190b452d0b36a561967 1352s 1..3 1352s # Start of alignof tests 1352s ok 1 /alignof/fallback 1352s # End of alignof tests 1352s # Start of assert tests 1352s ok 2 /assert/static 1352s # End of assert tests 1352s # Start of struct tests 1352s ok 3 /struct/sizeof_member 1352s # End of struct tests 1352s TAP version 14 1352s # random seed: R02Sff840d25a355c441ed5f7c18cc625f3d 1352s 1..5 1352s # Start of async-splice tests 1352s ok 1 /async-splice/copy-chunks 1352s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1352s ok 2 /async-splice/copy-chunks-threaded-input 1352s ok 3 /async-splice/copy-chunks-threaded-output 1352s ok 4 /async-splice/copy-chunks-threaded 1352s ok 5 /async-splice/cancelled 1352s # End of async-splice tests 1352s TAP version 14 1352s # random seed: R02S5dc68bd1505c91f8c33e95a9b14db6f0 1352s 1..120 1352s # Start of array tests 1352s ok 1 /array/ref-count 1352s ok 2 /array/steal 1352s ok 3 /array/clear-func 1352s ok 4 /array/binary-search 1352s ok 5 /array/overflow-append-vals 1352s ok 6 /array/overflow-set-size 1352s # Start of new tests 1352s ok 7 /array/new/zero-terminated 1352s ok 8 /array/new/take 1352s ok 9 /array/new/take-zero-terminated 1352s # Start of take tests 1352s ok 10 /array/new/take/empty 1352s ok 11 /array/new/take/overflow 1352s ok 12 /array/new/take/zero-size 1352s # End of take tests 1352s # Start of take-zero-terminated tests 1352s ok 13 /array/new/take-zero-terminated/zero-size 1352s ok 14 /array/new/take-zero-terminated/null 1352s # End of take-zero-terminated tests 1352s # End of new tests 1352s # Start of copy tests 1352s # /array/copy/sized summary: Test that copying a newly-allocated sized array works. 1352s ok 15 /array/copy/sized 1352s ok 16 /array/copy/zero-terminated 1352s ok 17 /array/copy/non-zero-terminated-no-clear 1352s ok 18 /array/copy/non-zero-terminated-clear 1352s ok 19 /array/copy/zero-terminated-no-clear 1352s ok 20 /array/copy/zero-terminated-clear 1352s # End of copy tests 1352s # Start of remove-range tests 1352s ok 21 /array/remove-range/zero-terminated-null 1352s ok 22 /array/remove-range/non-zero-terminated-no-clear 1352s ok 23 /array/remove-range/non-zero-terminated-clear 1352s ok 24 /array/remove-range/zero-terminated-no-clear 1352s ok 25 /array/remove-range/zero-terminated-clear 1352s # End of remove-range tests 1352s # Start of set-size tests 1352s ok 26 /array/set-size/zero-terminated-null 1352s ok 27 /array/set-size/non-zero-terminated-no-clear 1352s ok 28 /array/set-size/non-zero-terminated-clear 1352s ok 29 /array/set-size/zero-terminated-no-clear 1352s ok 30 /array/set-size/zero-terminated-clear 1352s # Start of sized tests 1352s ok 31 /array/set-size/sized/non-zero-terminated-no-clear 1352s ok 32 /array/set-size/sized/non-zero-terminated-clear 1352s ok 33 /array/set-size/sized/zero-terminated-no-clear 1352s ok 34 /array/set-size/sized/zero-terminated-clear 1352s # End of sized tests 1352s # End of set-size tests 1352s # Start of append-val tests 1352s ok 35 /array/append-val/non-zero-terminated-no-clear 1352s ok 36 /array/append-val/non-zero-terminated-clear 1352s ok 37 /array/append-val/zero-terminated-no-clear 1352s ok 38 /array/append-val/zero-terminated-clear 1352s # End of append-val tests 1352s # Start of prepend-val tests 1352s ok 39 /array/prepend-val/non-zero-terminated-no-clear 1352s ok 40 /array/prepend-val/non-zero-terminated-clear 1352s ok 41 /array/prepend-val/zero-terminated-no-clear 1352s ok 42 /array/prepend-val/zero-terminated-clear 1352s # End of prepend-val tests 1352s # Start of prepend-vals tests 1352s ok 43 /array/prepend-vals/non-zero-terminated-no-clear 1352s ok 44 /array/prepend-vals/non-zero-terminated-clear 1352s ok 45 /array/prepend-vals/zero-terminated-no-clear 1352s ok 46 /array/prepend-vals/zero-terminated-clear 1352s # End of prepend-vals tests 1352s # Start of insert-vals tests 1352s ok 47 /array/insert-vals/non-zero-terminated-no-clear 1352s ok 48 /array/insert-vals/non-zero-terminated-clear 1352s ok 49 /array/insert-vals/zero-terminated-no-clear 1352s ok 50 /array/insert-vals/zero-terminated-clear 1352s # End of insert-vals tests 1352s # Start of remove-index tests 1352s ok 51 /array/remove-index/non-zero-terminated-no-clear 1352s ok 52 /array/remove-index/non-zero-terminated-clear 1352s ok 53 /array/remove-index/zero-terminated-no-clear 1352s ok 54 /array/remove-index/zero-terminated-clear 1352s # End of remove-index tests 1352s # Start of remove-index-fast tests 1352s ok 55 /array/remove-index-fast/non-zero-terminated-no-clear 1352s ok 56 /array/remove-index-fast/non-zero-terminated-clear 1352s ok 57 /array/remove-index-fast/zero-terminated-no-clear 1352s ok 58 /array/remove-index-fast/zero-terminated-clear 1352s # End of remove-index-fast tests 1352s # Start of sort tests 1352s ok 59 /array/sort/non-zero-terminated-no-clear 1352s ok 60 /array/sort/non-zero-terminated-clear 1352s ok 61 /array/sort/zero-terminated-no-clear 1352s ok 62 /array/sort/zero-terminated-clear 1352s # End of sort tests 1352s # Start of sort-with-data tests 1352s ok 63 /array/sort-with-data/non-zero-terminated-no-clear 1352s ok 64 /array/sort-with-data/non-zero-terminated-clear 1352s ok 65 /array/sort-with-data/zero-terminated-no-clear 1352s ok 66 /array/sort-with-data/zero-terminated-clear 1352s # End of sort-with-data tests 1352s # End of array tests 1352s # Start of pointerarray tests 1352s ok 67 /pointerarray/add 1352s ok 68 /pointerarray/insert 1352s ok 69 /pointerarray/new-take 1352s ok 70 /pointerarray/new-take-null-terminated 1352s ok 71 /pointerarray/new-from-array 1352s ok 72 /pointerarray/new-from-null-terminated-array 1352s ok 73 /pointerarray/free-func 1352s ok 74 /pointerarray/array_extend_and_steal 1352s ok 75 /pointerarray/sort 1352s ok 76 /pointerarray/sort-with-data 1352s ok 77 /pointerarray/sort-values 1352s ok 78 /pointerarray/sort-values-with-data 1352s ok 79 /pointerarray/remove-range 1352s ok 80 /pointerarray/steal 1352s # Start of free tests 1352s # /pointerarray/free/null-terminated summary: Check that g_ptr_array_free() on an empty array returns a NULL-terminated empty array 1352s ok 81 /pointerarray/free/null-terminated 1352s # End of free tests 1352s # Start of new-take tests 1352s ok 82 /pointerarray/new-take/empty 1352s ok 83 /pointerarray/new-take/overflow 1352s ok 84 /pointerarray/new-take/with-free-func 1352s # End of new-take tests 1352s # Start of new-take-null-terminated tests 1352s ok 85 /pointerarray/new-take-null-terminated/empty 1352s ok 86 /pointerarray/new-take-null-terminated/with-free-func 1352s ok 87 /pointerarray/new-take-null-terminated/from-gstrv 1352s # End of new-take-null-terminated tests 1352s # Start of new-from-array tests 1352s ok 88 /pointerarray/new-from-array/empty 1352s ok 89 /pointerarray/new-from-array/overflow 1352s ok 90 /pointerarray/new-from-array/with-copy-and-free-func 1352s # End of new-from-array tests 1352s # Start of new-from-null-terminated-array tests 1352s ok 91 /pointerarray/new-from-null-terminated-array/empty 1352s ok 92 /pointerarray/new-from-null-terminated-array/with-copy-and-free-func 1352s ok 93 /pointerarray/new-from-null-terminated-array/from-gstrv 1352s # End of new-from-null-terminated-array tests 1352s # Start of ref-count tests 1352s ok 94 /pointerarray/ref-count/not-null-terminated 1352s ok 95 /pointerarray/ref-count/null-terminated 1352s # End of ref-count tests 1352s # Start of array_copy tests 1352s # /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 1352s ok 96 /pointerarray/array_copy/not-null-terminated 1352s # /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 1352s ok 97 /pointerarray/array_copy/null-terminated 1352s # End of array_copy tests 1352s # Start of array_extend tests 1352s ok 98 /pointerarray/array_extend/not-null-terminated 1352s ok - glib/array-test.test 1352s # Running test: glib/gdbus-names.test 1352s ok 99 /pointerarray/array_extend/null-terminated 1352s # End of array_extend tests 1352s # Start of sort tests 1352s # /pointerarray/sort/example summary: Check that the doc-comment for g_ptr_array_sort() is correct 1352s ok 100 /pointerarray/sort/example 1352s # End of sort tests 1352s # Start of sort-with-data tests 1352s # /pointerarray/sort-with-data/example summary: Check that the doc-comment for g_ptr_array_sort_with_data() is correct 1352s ok 101 /pointerarray/sort-with-data/example 1352s # End of sort-with-data tests 1352s # Start of sort-values tests 1352s ok 102 /pointerarray/sort-values/example 1352s # End of sort-values tests 1352s # Start of sort-values-with-data tests 1352s ok 103 /pointerarray/sort-values-with-data/example 1352s # End of sort-values-with-data tests 1352s # Start of find tests 1352s ok 104 /pointerarray/find/empty 1352s ok 105 /pointerarray/find/non-empty 1352s # End of find tests 1352s # Start of steal_index tests 1352s ok 106 /pointerarray/steal_index/not-null-terminated 1352s ok 107 /pointerarray/steal_index/null-terminated 1352s # End of steal_index tests 1352s # End of pointerarray tests 1352s # Start of bytearray tests 1352s ok 108 /bytearray/steal 1352s ok 109 /bytearray/append 1352s ok 110 /bytearray/prepend 1352s ok 111 /bytearray/remove 1352s ok 112 /bytearray/remove-fast 1352s ok 113 /bytearray/remove-range 1352s ok 114 /bytearray/ref-count 1352s ok 115 /bytearray/set-size 1352s ok 116 /bytearray/sort 1352s ok 117 /bytearray/sort-with-data 1352s ok 118 /bytearray/new-take 1352s ok 119 /bytearray/new-take-overflow 1352s ok 120 /bytearray/free-to-bytes 1352s # End of bytearray tests 1352s TAP version 14 1352s # random seed: R02S220855d36d376129ead783927e968cf8 1352s 1..10 1352s # Start of gdbus tests 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/validate-names/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/validate-names/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/validate-names/.dirs/system-config1:/tmp/test_gdbus-names_4NP6B3/gdbus/validate-names/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/validate-names/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/validate-names/.dirs/system-data1:/tmp/test_gdbus-names_4NP6B3/gdbus/validate-names/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/validate-names/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/validate-names/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_4NP6B3/gdbus/validate-names/.dirs/runtime 1352s ok 1 /gdbus/validate-names 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-own-name/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-own-name/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-own-name/.dirs/system-config1:/tmp/test_gdbus-names_4NP6B3/gdbus/bus-own-name/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-own-name/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-own-name/.dirs/system-data1:/tmp/test_gdbus-names_4NP6B3/gdbus/bus-own-name/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-own-name/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-own-name/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-own-name/.dirs/runtime 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s ok 2 /gdbus/bus-own-name 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name/.dirs/system-config1:/tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name/.dirs/system-data1:/tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name/.dirs/runtime 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s ok 3 /gdbus/bus-watch-name 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start/.dirs/runtime 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s ok 4 /gdbus/bus-watch-name-auto-start 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config1:/tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data1:/tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/runtime 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1352s dbus-daemon[32836]: [session uid=1000 pid=32836 pidfd=4] Activating service name='org.gtk.GDBus.FakeService' requested by ':1.0' (uid=1000 pid=32826 comm="/usr/libexec/installed-tests/glib/gdbus-names" label="unconfined") 1352s # Acquired a message bus connection 1352s dbus-daemon[32836]: [session uid=1000 pid=32836 pidfd=4] Successfully activated service 'org.gtk.GDBus.FakeService' 1352s # Acquired the name org.gtk.GDBus.FakeService 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s ok 5 /gdbus/bus-watch-name-auto-start-service-exist 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures/.dirs/system-config1:/tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures/.dirs/system-data1:/tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures/.dirs/runtime 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s ok - glib/gdbus-names.test 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s ok 6 /gdbus/bus-watch-name-closures 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures-auto-start/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures-auto-start/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures-auto-start/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures-auto-start/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures-auto-start/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-name-closures-auto-start/.dirs/runtime 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s ok 7 /gdbus/bus-watch-name-closures-auto-start 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-different-context/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-different-context/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-different-context/.dirs/system-config1:/tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-different-context/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-different-context/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-different-context/.dirs/system-data1:/tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-different-context/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-different-context/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-different-context/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-watch-different-context/.dirs/runtime 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s ok 8 /gdbus/bus-watch-different-context 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-unwatch-early/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-unwatch-early/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-unwatch-early/.dirs/system-config1:/tmp/test_gdbus-names_4NP6B3/gdbus/bus-unwatch-early/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-unwatch-early/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-unwatch-early/.dirs/system-data1:/tmp/test_gdbus-names_4NP6B3/gdbus/bus-unwatch-early/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-unwatch-early/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-unwatch-early/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_4NP6B3/gdbus/bus-unwatch-early/.dirs/runtime 1352s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/604 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s ok 9 /gdbus/bus-unwatch-early 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/escape-object-path/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/escape-object-path/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/escape-object-path/.dirs/system-config1:/tmp/test_gdbus-names_4NP6B3/gdbus/escape-object-path/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/escape-object-path/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_4NP6B3/gdbus/escape-object-path/.dirs/system-data1:/tmp/test_gdbus-names_4NP6B3/gdbus/escape-object-path/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/escape-object-path/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_4NP6B3/gdbus/escape-object-path/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_4NP6B3/gdbus/escape-object-path/.dirs/runtime 1352s ok 10 /gdbus/escape-object-path 1352s # End of gdbus tests 1352s # Running test: glib/defaultvalue.test 1352s ok - glib/defaultvalue.test 1352s # Running test: glib/tls-interaction.test 1352s TAP version 14 1352s # random seed: R02Sfbfc41b1e3a52c8c60a8f19aaed8ea9f 1352s 1..84 1352s # Start of Default Values tests 1352s ok 1 /Default Values/GAppInfoMonitor # SKIP singleton 1352s ok 2 /Default Values/GAppLaunchContext 1352s ok 3 /Default Values/GApplicationCommandLine 1352s # skipping GApplication:is-remote 1352s ok 4 /Default Values/GApplication 1352s ok 5 /Default Values/GBinding # SKIP mandatory construct params 1352s ok 6 /Default Values/GBindingGroup 1352s ok 7 /Default Values/GBufferedInputStream # SKIP mandatory construct params 1352s ok 8 /Default Values/GBufferedOutputStream # SKIP mandatory construct params 1352s ok 9 /Default Values/GBytesIcon 1352s ok 10 /Default Values/GCancellable 1352s ok 11 /Default Values/GCharsetConverter # SKIP mandatory construct params 1352s ok 12 /Default Values/GConverterInputStream # SKIP mandatory construct params 1352s ok 13 /Default Values/GConverterOutputStream # SKIP mandatory construct params 1352s ok 14 /Default Values/GCredentials 1352s ok 15 /Default Values/GDataInputStream # SKIP mandatory construct params 1352s ok 16 /Default Values/GDataOutputStream # SKIP mandatory construct params 1352s ok 17 /Default Values/GDBusActionGroup # SKIP mandatory construct params 1352s ok 18 /Default Values/GDBusAuthObserver 1352s ok 19 /Default Values/GDBusConnection # SKIP mandatory construct params 1352s ok 20 /Default Values/GDBusMenuModel # SKIP crash in finalize 1352s ok 21 /Default Values/GDBusMessage 1352s ok 22 /Default Values/GDBusMethodInvocation # SKIP crash in finalize 1352s ok 23 /Default Values/GDBusObjectManagerClient # SKIP mandatory construct params 1352s ok 24 /Default Values/GDBusObjectManagerServer # SKIP mandatory construct params 1352s ok 25 /Default Values/GDBusObjectProxy 1352s ok 26 /Default Values/GDBusObjectSkeleton 1352s ok 27 /Default Values/GDBusProxy # SKIP mandatory construct params 1352s ok 28 /Default Values/GDBusServer # SKIP mandatory construct params 1352s ok 29 /Default Values/GEmblem 1352s ok 30 /Default Values/GEmblemedIcon 1352s ok 31 /Default Values/GFileEnumerator # SKIP should be abstract 1352s ok 32 /Default Values/GFileInfo 1352s ok 33 /Default Values/GFileInputStream 1352s ok 34 /Default Values/GFileIOStream # SKIP should be abstract 1352s ok 35 /Default Values/GFileOutputStream 1352s ok 36 /Default Values/GFilenameCompleter 1352s ok 37 /Default Values/GInetAddress # SKIP mandatory construct params 1352s ok 38 /Default Values/GInetAddressMask # SKIP initialization failed 1352s ok 39 /Default Values/GInetSocketAddress # SKIP mandatory construct params 1352s ok 40 /Default Values/GInitiallyUnowned 1352s ok 41 /Default Values/GIOModule 1352s ok 42 /Default Values/GListStore 1352s ok 43 /Default Values/GMemoryInputStream 1352s ok 44 /Default Values/GMemoryOutputStream 1352s ok 45 /Default Values/GMenu 1352s ok 46 /Default Values/GMenuItem 1352s ok 47 /Default Values/GMountOperation 1352s ok 48 /Default Values/GNativeSocketAddress 1352s ok 49 /Default Values/GNetworkAddress 1352s ok 50 /Default Values/GNetworkService 1352s ok 51 /Default Values/GNotification 1352s ok 52 /Default Values/GObject 1352s ok 53 /Default Values/GPropertyAction # SKIP mandatory construct params 1352s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1352s # skipping GProxyAddressEnumerator:proxy-resolver 1352s ok 54 /Default Values/GProxyAddressEnumerator 1352s ok 55 /Default Values/GProxyAddress # SKIP mandatory construct params 1352s ok 56 /Default Values/GSettings # SKIP mandatory construct params 1352s ok 57 /Default Values/GSignalGroup 1352s ok 58 /Default Values/GSimpleAction 1352s ok 59 /Default Values/GSimpleActionGroup 1352s ok 60 /Default Values/GSimpleAsyncResult 1352s ok 61 /Default Values/GSimpleIOStream # SKIP mandatory construct params 1352s ok 62 /Default Values/GSimplePermission 1352s ok 63 /Default Values/GSimpleProxyResolver 1352s # skipping GSocketClient:proxy-resolver 1352s ok 64 /Default Values/GSocketClient 1352s ok 65 /Default Values/GSocketConnection # SKIP mandatory construct params 1352s ok 66 /Default Values/GSocket # SKIP initialization failed 1352s ok 67 /Default Values/GSocketListener 1352s ok 68 /Default Values/GSocketService 1352s ok 69 /Default Values/GSubprocess # SKIP initialization failed 1352s ok 70 /Default Values/GSubprocessLauncher 1352s # GLib-GIO-DEBUG: GTask 0x2aa2e1ac660 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1352s ok 71 /Default Values/GTask 1352s ok 72 /Default Values/GTcpConnection # SKIP mandatory construct params 1352s ok 73 /Default Values/GTcpWrapperConnection # SKIP mandatory construct params 1352s ok 74 /Default Values/GTestDBus 1352s ok 75 /Default Values/GThemedIcon # SKIP mandatory construct params 1352s ok 76 /Default Values/GThreadedSocketService 1352s ok 77 /Default Values/GTlsInteraction 1352s ok 78 /Default Values/GTlsPassword 1352s ok 79 /Default Values/GUnixConnection # SKIP mandatory construct params 1352s ok 80 /Default Values/GUnixFDList 1352s ok 81 /Default Values/GVfs 1352s ok 82 /Default Values/GVolumeMonitor 1352s ok 83 /Default Values/GZlibCompressor 1352s ok 84 /Default Values/GZlibDecompressor 1352s # End of Default Values tests 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1352s TAP version 14 1352s # random seed: R02S7bae7f4a6eeb9203df301fcaf8dc6eec 1352s 1..42 1352s # Start of tls-interaction tests 1352s # Start of ask-password tests 1352s # Start of invoke-with-loop tests 1352s ok 1 /tls-interaction/ask-password/invoke-with-loop/unhandled-implementation 1352s ok 2 /tls-interaction/ask-password/invoke-with-loop/async-implementation-success 1352s ok 3 /tls-interaction/ask-password/invoke-with-loop/async-implementation-failure 1352s ok 4 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-success 1352s ok 5 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-failure 1352s # End of invoke-with-loop tests 1352s # Start of invoke-without-loop tests 1352s ok 6 /tls-interaction/ask-password/invoke-without-loop/unhandled-implementation 1352s ok 7 /tls-interaction/ask-password/invoke-without-loop/async-implementation-success 1352s ok 8 /tls-interaction/ask-password/invoke-without-loop/async-implementation-failure 1352s ok 9 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-success 1352s ok 10 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-failure 1352s # End of invoke-without-loop tests 1352s # Start of invoke-in-loop tests 1352s ok 11 /tls-interaction/ask-password/invoke-in-loop/unhandled-implementation 1352s ok 12 /tls-interaction/ask-password/invoke-in-loop/async-implementation-success 1352s ok 13 /tls-interaction/ask-password/invoke-in-loop/async-implementation-failure 1352s ok 14 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-success 1352s ok 15 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-failure 1352s # End of invoke-in-loop tests 1352s # Start of sync tests 1352s ok 16 /tls-interaction/ask-password/sync/unhandled-implementation 1352s ok - glib/tls-interaction.test 1352s # Running test: glib/gthash.test 1352s ok - glib/gthash.test 1352s # Running test: glib/test-printf.test 1352s ok - glib/test-printf.test 1352s # Running test: glib/gutils-user-database.test 1352s ok - glib/gutils-user-database.test 1352s # Running test: glib/mem-overflow.test 1352s ok 17 /tls-interaction/ask-password/sync/sync-implementation-success 1352s ok 18 /tls-interaction/ask-password/sync/sync-implementation-failure 1352s # End of sync tests 1352s # Start of async tests 1352s ok 19 /tls-interaction/ask-password/async/unhandled-implementation 1352s ok 20 /tls-interaction/ask-password/async/async-implementation-success 1352s ok 21 /tls-interaction/ask-password/async/async-implementation-failure 1352s # End of async tests 1352s # End of ask-password tests 1352s # Start of request-certificate tests 1352s # Start of invoke-with-loop tests 1352s ok 22 /tls-interaction/request-certificate/invoke-with-loop/unhandled-implementation 1352s ok 23 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-success 1352s ok 24 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-failure 1352s ok 25 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-success 1352s ok 26 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-failure 1352s # End of invoke-with-loop tests 1352s # Start of invoke-without-loop tests 1352s ok 27 /tls-interaction/request-certificate/invoke-without-loop/unhandled-implementation 1352s ok 28 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-success 1352s ok 29 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-failure 1352s ok 30 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-success 1352s ok 31 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-failure 1352s # End of invoke-without-loop tests 1352s # Start of invoke-in-loop tests 1352s ok 32 /tls-interaction/request-certificate/invoke-in-loop/unhandled-implementation 1352s ok 33 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-success 1352s ok 34 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-failure 1352s ok 35 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-success 1352s ok 36 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-failure 1352s # End of invoke-in-loop tests 1352s # Start of sync tests 1352s ok 37 /tls-interaction/request-certificate/sync/unhandled-implementation 1352s ok 38 /tls-interaction/request-certificate/sync/sync-implementation-success 1352s ok 39 /tls-interaction/request-certificate/sync/sync-implementation-failure 1352s # End of sync tests 1352s # Start of async tests 1352s ok 40 /tls-interaction/request-certificate/async/unhandled-implementation 1352s ok 41 /tls-interaction/request-certificate/async/async-implementation-success 1352s ok 42 /tls-interaction/request-certificate/async/async-implementation-failure 1352s # End of async tests 1352s # End of request-certificate tests 1352s # End of tls-interaction tests 1352s TAP version 14 1352s # random seed: R02S8b2bda7881be2e0100fbf8f46e2c7551 1352s 1..1 1352s # Start of gthash tests 1352s ok 1 /gthash/build-retrieve 1352s # End of gthash tests 1352s TAP version 14 1352s # random seed: R02S3e0fa196ca70ac9ad3baf93c317bb69a 1352s 1..22 1352s # Start of snprintf tests 1352s ok 1 /snprintf/retval-and-trunc 1352s ok 2 /snprintf/%d 1352s ok 3 /snprintf/%d-invalid 1352s ok 4 /snprintf/%o 1352s ok 5 /snprintf/%u 1352s ok 6 /snprintf/%x 1352s ok 7 /snprintf/%X 1352s ok 8 /snprintf/%f 1352s ok 9 /snprintf/%e 1352s ok 10 /snprintf/%c 1352s ok 11 /snprintf/%s 1352s ok 12 /snprintf/%n 1352s ok 13 /snprintf/test-percent 1352s ok 14 /snprintf/test-positional-params 1352s ok 15 /snprintf/test-64bit 1352s # End of snprintf tests 1352s # Start of printf tests 1352s ok 16 /printf/test-percent 1352s ok 17 /printf/test-positional-params 1352s ok 18 /printf/test-64bit 1352s # Start of test-64bit tests 1352s # Start of subprocess tests 1352s # End of subprocess tests 1352s # End of test-64bit tests 1352s # End of printf tests 1352s # Start of sprintf tests 1352s ok 19 /sprintf/test-positional-params 1352s ok 20 /sprintf/upper-bound 1352s # End of sprintf tests 1352s # Start of vasprintf tests 1352s # /vasprintf/invalid-format-placeholder summary: Test error handling for invalid format placeholder in g_vasprintf() 1352s ok 21 /vasprintf/invalid-format-placeholder 1352s # /vasprintf/invalid-wide-string summary: Test error handling for invalid wide strings in g_vasprintf() 1352s ok 22 /vasprintf/invalid-wide-string 1352s # End of vasprintf tests 1352s TAP version 14 1352s # random seed: R02Sadf02867315c05110865654b57d5748f 1352s 1..1 1352s # Start of gutils tests 1352s ok 1 /gutils/get_user_database_entry 1352s # End of gutils tests 1352s TAP version 14 1352s # random seed: R02Sa60aeb3880e4f7fb752d03dd2ed07750 1352s 1..2 1352s # Start of mem tests 1352s ok 1 /mem/overflow 1352s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=615379 1352s ok 2 /mem/empty-alloc 1352s # Start of overflow tests 1352s # Start of subprocess tests 1352s # End of subprocess tests 1352s # End of overflow tests 1352s # Start of empty-alloc tests 1352s # End of empty-alloc tests 1352s ok - glib/mem-overflow.test 1352s # Running test: glib/data-output-stream.test 1352s ok - glib/data-output-stream.test 1352s # Running test: glib/callable-info.test 1352s # End of mem tests 1352s TAP version 14 1352s # random seed: R02S957a318ce08ca1d8fcec9b85c94ee220 1352s 1..7 1352s # Start of data-output-stream tests 1352s ok 1 /data-output-stream/basic 1352s ok 2 /data-output-stream/write-lines-LF 1352s ok 3 /data-output-stream/write-lines-CR 1352s ok 4 /data-output-stream/write-lines-CR-LF 1352s ok 5 /data-output-stream/write-int 1352s ok 6 /data-output-stream/seek 1352s ok 7 /data-output-stream/truncate 1352s # End of data-output-stream tests 1352s TAP version 14 1352s # random seed: R02S3551d3652f211f24ce02b6026ca10cc4 1352s 1..5 1352s # Start of callable-info tests 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_RXB5B3/callable-info/sync-function/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_RXB5B3/callable-info/sync-function/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_RXB5B3/callable-info/sync-function/.dirs/system-config1:/tmp/test_callable-info_RXB5B3/callable-info/sync-function/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_RXB5B3/callable-info/sync-function/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_RXB5B3/callable-info/sync-function/.dirs/system-data1:/tmp/test_callable-info_RXB5B3/callable-info/sync-function/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_RXB5B3/callable-info/sync-function/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_RXB5B3/callable-info/sync-function/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_RXB5B3/callable-info/sync-function/.dirs/runtime 1352s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1352s ok 1 /callable-info/sync-function 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_RXB5B3/callable-info/async-function/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_RXB5B3/callable-info/async-function/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_RXB5B3/callable-info/async-function/.dirs/system-config1:/tmp/test_callable-info_RXB5B3/callable-info/async-function/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_RXB5B3/callable-info/async-function/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_RXB5B3/callable-info/async-function/.dirs/system-data1:/tmp/test_callable-info_RXB5B3/callable-info/async-function/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_RXB5B3/callable-info/async-function/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_RXB5B3/callable-info/async-function/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_RXB5B3/callable-info/async-function/.dirs/runtime 1352s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1352s ok 2 /callable-info/async-function 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_RXB5B3/callable-info/is-method/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_RXB5B3/callable-info/is-method/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_RXB5B3/callable-info/is-method/.dirs/system-config1:/tmp/test_callable-info_RXB5B3/callable-info/is-method/.dirs/system-config2 1352s ok - glib/callable-info.test 1352s # Running test: glib/cxx-11.test 1352s ok - glib/cxx-11.test 1352s # Running test: glib/function-info.test 1352s ok - glib/function-info.test 1352s # Running test: glib/utf8-private.test 1352s ok - glib/utf8-private.test 1352s # Running test: glib/null-settings-backend.test 1352s ok - glib/null-settings-backend.test 1352s # Running test: glib/properties-introspection.test 1352s ok - glib/properties-introspection.test 1352s # Running test: glib/gobject-query.py.test 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_RXB5B3/callable-info/is-method/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_RXB5B3/callable-info/is-method/.dirs/system-data1:/tmp/test_callable-info_RXB5B3/callable-info/is-method/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_RXB5B3/callable-info/is-method/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_RXB5B3/callable-info/is-method/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_RXB5B3/callable-info/is-method/.dirs/runtime 1352s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1352s ok 3 /callable-info/is-method 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_RXB5B3/callable-info/static-method/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_RXB5B3/callable-info/static-method/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_RXB5B3/callable-info/static-method/.dirs/system-config1:/tmp/test_callable-info_RXB5B3/callable-info/static-method/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_RXB5B3/callable-info/static-method/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_RXB5B3/callable-info/static-method/.dirs/system-data1:/tmp/test_callable-info_RXB5B3/callable-info/static-method/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_RXB5B3/callable-info/static-method/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_RXB5B3/callable-info/static-method/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_RXB5B3/callable-info/static-method/.dirs/runtime 1352s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1352s ok 4 /callable-info/static-method 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_RXB5B3/callable-info/static-vfunc/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_RXB5B3/callable-info/static-vfunc/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_RXB5B3/callable-info/static-vfunc/.dirs/system-config1:/tmp/test_callable-info_RXB5B3/callable-info/static-vfunc/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_RXB5B3/callable-info/static-vfunc/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_RXB5B3/callable-info/static-vfunc/.dirs/system-data1:/tmp/test_callable-info_RXB5B3/callable-info/static-vfunc/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_RXB5B3/callable-info/static-vfunc/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_RXB5B3/callable-info/static-vfunc/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_RXB5B3/callable-info/static-vfunc/.dirs/runtime 1352s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1352s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/361 1352s ok 5 /callable-info/static-vfunc # SKIP g-ir-scanner is not new enough 1352s # End of callable-info tests 1352s TAP version 14 1352s # random seed: R02See565be01c73500f6e4a67195896dfb4 1352s 1..2 1352s # Start of gtask tests 1352s # 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. 1352s ok 1 /gtask/name 1352s # Start of name tests 1352s # 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. 1352s ok 2 /gtask/name/macro-wrapper 1352s # End of name tests 1352s # End of gtask tests 1352s TAP version 14 1352s # random seed: R02S9e7a4bc8ef53cbaa3d3d38b893058db1 1352s 1..1 1352s # Start of function-info tests 1352s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_function-info_TUD5B3/function-info/invoker/.dirs/home 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_function-info_TUD5B3/function-info/invoker/.dirs/cache 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_function-info_TUD5B3/function-info/invoker/.dirs/system-config1:/tmp/test_function-info_TUD5B3/function-info/invoker/.dirs/system-config2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_function-info_TUD5B3/function-info/invoker/.dirs/config 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_function-info_TUD5B3/function-info/invoker/.dirs/system-data1:/tmp/test_function-info_TUD5B3/function-info/invoker/.dirs/system-data2 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_function-info_TUD5B3/function-info/invoker/.dirs/data 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_function-info_TUD5B3/function-info/invoker/.dirs/state 1352s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_function-info_TUD5B3/function-info/invoker/.dirs/runtime 1352s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1352s # /function-info/invoker summary: Test preparing a function invoker 1352s ok 1 /function-info/invoker 1352s # End of function-info tests 1352s TAP version 14 1352s # random seed: R02S59c706a0dae7ff813e9bbbf129b4182f 1352s 1..2 1352s # Start of utf8 tests 1352s ok 1 /utf8/utf8-to-utf16-make-valid 1352s ok 2 /utf8/utf8-to-utf16-make-valid-backtrack 1352s # End of utf8 tests 1352s TAP version 14 1352s # random seed: R02S82d1231d5b578467528f9c11461f821a 1352s 1..1 1352s # Start of null-settings-backend tests 1352s ok 1 /null-settings-backend/extension-point-registered 1352s # End of null-settings-backend tests 1352s TAP version 14 1352s # random seed: R02Sfcc294cf615ad64c7a6243575f8038de 1352s 1..2 1352s # Start of properties tests 1352s # /properties/introspection summary: Verify that introspecting properties on an interface initializes the GParamSpecPool. 1352s ok 1 /properties/introspection 1352s # /properties/collision summary: Verify that multiple threads create a single GParamSpecPool. 1352s ok 2 /properties/collision 1352s # End of properties tests 1352s TAP version 13 1352s ok 1 __main__.TestGobjectQuery.test_froots 1352s # gobject-query: /usr/bin/gobject-query 1352s # tmpdir: /tmp/tmpld6wvpqa 1352s # Running: ['/usr/bin/gobject-query', 'froots'] 1352s # Return code: 0 1352s # Output: 1352s # ├void 1352s # ├GInterface 1352s # │ └GTypePlugin 1352s # ├gchar 1352s # ├guchar 1352s # ├gboolean 1352s # ├gint 1352s # ├guint 1352s # ├glong 1352s # ├gulong 1352s # ├gint64 1352s # ├guint64 1352s # ├GEnum 1352s # ├GFlags 1352s # ├gfloat 1352s # ├gdouble 1352s # ├gchararray 1352s # ├gpointer 1352s # │ └GType 1352s # ├GBoxed 1352s # │ └GValueArray 1352s # ├GParam 1352s # │ ├GParamChar 1352s # │ ├GParamUChar 1352s # │ ├GParamBoolean 1352s # │ ├GParamInt 1352s # │ ├GParamUInt 1352s # │ ├GParamLong 1352s # │ ├GParamULong 1352s # │ ├GParamInt64 1352s # │ ├GParamUInt64 1352s # │ ├GParamUnichar 1352s # │ ├GParamEnum 1352s # │ ├GParamFlags 1352s # │ ├GParamFloat 1352s # │ ├GParamDouble 1352s # │ ├GParamString 1352s # │ ├GParamParam 1352s # │ ├GParamBoxed 1352s # │ ├GParamPointer 1352s # │ ├GParamValueArray 1352s # │ ├GParamObject 1352s # │ ├GParamOverride 1352s # │ ├GParamGType 1352s # │ └GParamVariant 1352s # ├GObject 1352s # └GVariant 1352s # Error: 1352s ok 2 __main__.TestGobjectQuery.test_help 1352s # gobject-query: /usr/bin/gobject-query 1352s # tmpdir: /tmp/tmp_s5xlov6 1352s # Running: ['/usr/bin/gobject-query', '--help'] 1352s # Return code: 0 1352s # Output: 1352s # usage: gobject-query [-r ] [-{i|b} ""] [-s #] [-{h|x|y}] 1352s # -r specify root type 1352s # -n don't descend type tree 1352s # -h show help 1352s # -b specify indent string 1352s # -i specify incremental indent string 1352s # -s specify line spacing 1352s # qualifiers: 1352s # froots iterate over fundamental roots 1352s # tree print type tree 1352s # Error: 1352s ok 3 __main__.TestGobjectQuery.test_tree 1352s # gobject-query: /usr/bin/gobject-query 1352s # tmpdir: /tmp/tmpg04qgzt4 1352s # Running: ['/usr/bin/gobject-query', 'tree'] 1352s # Return code: 0 1352s # Output: 1352s # GObject 1352s # Error: 1352s ok 4 __main__.TestGobjectQuery.test_version 1352s # gobject-query: /usr/bin/gobject-query 1352s # tmpdir: /tmp/tmp8e_8zg39 1352s # Running: ['/usr/bin/gobject-query', '--version'] 1352s # Return code: 0 1352s # Output: 1352s # 2.85.3 1352s # Error: 1352s 1..4 1352s ok - glib/gobject-query.py.test 1352s # Running test: glib/gi-compile-repository.py.test 1353s TAP version 13 1353s ok 1 __main__.TestGICompileRepository.test_open_failure 1353s # gir path set to [PosixPath('/usr/lib/s390x-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1353s # gi-compile-repository: /usr/bin/gi-compile-repository 1353s # tmpdir: /tmp/tmps1a7g72i 1353s # Running: ['/usr/bin/gi-compile-repository', 'this-is/not/a-file.gir', '--output', '/tmp/tmps1a7g72i/invalid.typelib'] 1353s # Return code: 1 1353s # Output: 1353s # 1353s # Error: 1353s # Error parsing file ‘this-is/not/a-file.gir’: Failed to open file “this-is/not/a-file.gir”: No such file or directory 1353s ok 2 __main__.TestGICompileRepositoryForGLib.test_compile 1353s # gir path set to [PosixPath('/usr/lib/s390x-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1353s # gi-compile-repository: /usr/bin/gi-compile-repository 1353s # tmpdir: /tmp/tmp3gafu9vr 1353s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/s390x-linux-gnu/gir-1.0/GLib-2.0.gir', '--output', '/tmp/tmp3gafu9vr/GLib-2.typelib'] 1353s # Return code: 0 1353s # Output: 1353s # 1353s # Error: 1353s ok 3 __main__.TestGICompileRepositoryForGLib.test_write_failure 1353s # gi-compile-repository: /usr/bin/gi-compile-repository 1353s # tmpdir: /tmp/tmpai98yb0c 1353s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/s390x-linux-gnu/gir-1.0/GLib-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib'] 1353s # Return code: 1 1353s # Output: 1353s # 1353s # Error: 1353s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1353s ok 4 __main__.TestGICompileRepositoryForGObject.test_compile 1353s # gir path set to [PosixPath('/usr/lib/s390x-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1353s # gi-compile-repository: /usr/bin/gi-compile-repository 1353s # tmpdir: /tmp/tmpf10r3n2k 1353s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', '/tmp/tmpf10r3n2k/GObject-2.typelib', '--includedir', '/usr/lib/s390x-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1353s # Return code: 0 1353s # Output: 1353s # 1353s # Error: 1353s ok 5 __main__.TestGICompileRepositoryForGObject.test_write_failure 1353s # gi-compile-repository: /usr/bin/gi-compile-repository 1353s # tmpdir: /tmp/tmpzlkqfru0 1353s # 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/s390x-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1353s # Return code: 1 1353s # Output: 1353s # 1353s # Error: 1353s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1354s ok 6 __main__.TestGICompileRepositoryForGio.test_compile 1354s # gir path set to [PosixPath('/usr/lib/s390x-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1354s # gi-compile-repository: /usr/bin/gi-compile-repository 1354s # tmpdir: /tmp/tmpoi1xrbm6 1354s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', '/tmp/tmpoi1xrbm6/Gio-2.typelib', '--includedir', '/usr/lib/s390x-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1354s # Return code: 0 1354s # Output: 1354s # 1354s # Error: 1354s ok 7 __main__.TestGICompileRepositoryForGio.test_write_failure 1354s # gi-compile-repository: /usr/bin/gi-compile-repository 1354s # tmpdir: /tmp/tmp8yiyxvcj 1354s # 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/s390x-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1354s # Return code: 1 1354s # Output: 1354s # 1354s # Error: 1354s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1354s 1..7 1354s ok - glib/gi-compile-repository.py.test 1354s # Running test: glib/markup-escape.test 1354s TAP version 14 1354s # random seed: R02S3bfd7fbb5b9fc1f74ef78dee849fa56d 1354s 1..41 1354s # Start of markup tests 1354s ok 1 /markup/format 1354s # Start of escape-text tests 1354s ok 2 /markup/escape-text/0 1354s ok 3 /markup/escape-text/1 1354s ok 4 /markup/escape-text/2 1354s ok 5 /markup/escape-text/3 1354s ok 6 /markup/escape-text/4 1354s ok 7 /markup/escape-text/5 1354s ok 8 /markup/escape-text/6 1354s ok 9 /markup/escape-text/7 1354s ok 10 /markup/escape-text/8 1354s ok 11 /markup/escape-text/9 1354s ok 12 /markup/escape-text/10 1354s ok 13 /markup/escape-text/11 1354s ok 14 /markup/escape-text/12 1354s ok 15 /markup/escape-text/13 1354s ok 16 /markup/escape-text/14 1354s ok 17 /markup/escape-text/15 1354s ok 18 /markup/escape-text/16 1354s ok 19 /markup/escape-text/17 1354s ok - glib/markup-escape.test 1354s # Running test: glib/guuid.test 1354s ok - glib/guuid.test 1354s # Running test: glib/mutex.test 1354s ok 20 /markup/escape-text/18 1354s ok 21 /markup/escape-text/19 1354s ok 22 /markup/escape-text/20 1354s ok 23 /markup/escape-text/21 1354s ok 24 /markup/escape-text/22 1354s # End of escape-text tests 1354s # Start of escape-unichar tests 1354s ok 25 /markup/escape-unichar/0 1354s ok 26 /markup/escape-unichar/1 1354s ok 27 /markup/escape-unichar/2 1354s ok 28 /markup/escape-unichar/3 1354s ok 29 /markup/escape-unichar/4 1354s ok 30 /markup/escape-unichar/5 1354s ok 31 /markup/escape-unichar/6 1354s ok 32 /markup/escape-unichar/7 1354s ok 33 /markup/escape-unichar/8 1354s ok 34 /markup/escape-unichar/9 1354s ok 35 /markup/escape-unichar/10 1354s ok 36 /markup/escape-unichar/11 1354s ok 37 /markup/escape-unichar/12 1354s ok 38 /markup/escape-unichar/13 1354s ok 39 /markup/escape-unichar/14 1354s ok 40 /markup/escape-unichar/15 1354s ok 41 /markup/escape-unichar/16 1354s # End of escape-unichar tests 1354s # End of markup tests 1354s TAP version 14 1354s # random seed: R02S7d9dd44a005201aa196d2a08e62cb738 1354s 1..2 1354s # Start of uuid tests 1354s ok 1 /uuid/string 1354s ok 2 /uuid/random 1354s # End of uuid tests 1354s TAP version 14 1354s # random seed: R02S2b9b32659358f32ad5f56725f82908fd 1354s 1..17 1354s # Start of thread tests 1354s ok 1 /thread/mutex1 1354s ok 2 /thread/mutex2 1354s ok 3 /thread/mutex3 1354s ok 4 /thread/mutex4 1356s # Executing: glib/mutex.test 1357s ok 5 /thread/mutex5 1357s # slow test /thread/mutex5 executed in 2.79 secs 1357s # Start of mutex tests 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1357s ok 6 /thread/mutex/errno 1357s # Start of perf tests 1357s # max perf: inf mips 1357s ok 7 /thread/mutex/perf/uncontended 1357s # Start of contended tests 1357s # max perf: inf mips 1357s ok 8 /thread/mutex/perf/contended/1 1357s # max perf: inf mips 1357s ok 9 /thread/mutex/perf/contended/2 1357s # max perf: inf mips 1357s ok 10 /thread/mutex/perf/contended/3 1357s # max perf: inf mips 1357s ok 11 /thread/mutex/perf/contended/4 1357s # max perf: 6.000000 mips 1357s ok 12 /thread/mutex/perf/contended/5 1357s # max perf: 7.000000 mips 1357s ok 13 /thread/mutex/perf/contended/6 1357s # max perf: inf mips 1357s ok 14 /thread/mutex/perf/contended/7 1357s # max perf: 9.000000 mips 1357s ok 15 /thread/mutex/perf/contended/8 1357s # max perf: 10.000000 mips 1357s ok 16 /thread/mutex/perf/contended/9 1357s # max perf: 11.000000 mips 1357s ok 17 /thread/mutex/perf/contended/10 1357s # End of contended tests 1357s # End of perf tests 1357s # End of mutex tests 1357s # End of thread tests 1357s ok - glib/mutex.test 1357s # Running test: glib/tls-database.test 1357s ok - glib/tls-database.test 1357s TAP version 14 1357s # random seed: R02S2ec0a43e9d4c0d2f4904643ca3549071 1357s 1..1 1357s # Start of tls-backend tests 1357s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1357s ok 1 /tls-backend/set-default-database 1357s # End of tls-backend tests 1357s # Running test: glib/slist.test 1357s TAP version 14 1357s # random seed: R02Sd87b5a6798452e64a0453460f4e7f6a1 1357s 1..14 1357s # Start of slist tests 1357s ok 1 /slist/sort 1357s ok 2 /slist/sort-with-data 1357s ok 3 /slist/insert-sorted 1357s ok 4 /slist/insert-sorted-with-data 1357s ok 5 /slist/reverse 1357s ok 6 /slist/nth 1357s ok 7 /slist/remove 1357s ok 8 /slist/remove-all 1357s ok 9 /slist/insert 1357s ok 10 /slist/position 1357s ok 11 /slist/concat 1357s ok 12 /slist/copy 1357s # Start of sort tests 1357s ok 13 /slist/sort/stable 1357s # End of sort tests 1357s # Start of copy tests 1357s ok 14 /slist/copy/deep 1357s # End of copy tests 1357s # End of slist tests 1357s ok - glib/slist.test 1357s # Running test: glib/mapping.test 1357s TAP version 14 1357s # random seed: R02Sd2f44b665496c8e4616ffdcec0f79afb 1357s 1..3 1357s # Start of mapping tests 1357s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_7ADGC3/mapping/flags/.dirs/home 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_7ADGC3/mapping/flags/.dirs/cache 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_7ADGC3/mapping/flags/.dirs/system-config1:/tmp/test_mapping_7ADGC3/mapping/flags/.dirs/system-config2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_7ADGC3/mapping/flags/.dirs/config 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_7ADGC3/mapping/flags/.dirs/system-data1:/tmp/test_mapping_7ADGC3/mapping/flags/.dirs/system-data2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_7ADGC3/mapping/flags/.dirs/data 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_7ADGC3/mapping/flags/.dirs/state 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_7ADGC3/mapping/flags/.dirs/runtime 1357s # test_mapping: ok 1357s ok 1 /mapping/flags 1357s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_7ADGC3/mapping/private/.dirs/home 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_7ADGC3/mapping/private/.dirs/cache 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_7ADGC3/mapping/private/.dirs/system-config1:/tmp/test_mapping_7ADGC3/mapping/private/.dirs/system-config2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_7ADGC3/mapping/private/.dirs/config 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_7ADGC3/mapping/private/.dirs/system-data1:/tmp/test_mapping_7ADGC3/mapping/private/.dirs/system-data2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_7ADGC3/mapping/private/.dirs/data 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_7ADGC3/mapping/private/.dirs/state 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_7ADGC3/mapping/private/.dirs/runtime 1357s ok 2 /mapping/private 1357s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_7ADGC3/mapping/private-child/.dirs/home 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_7ADGC3/mapping/private-child/.dirs/cache 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_7ADGC3/mapping/private-child/.dirs/system-config1:/tmp/test_mapping_7ADGC3/mapping/private-child/.dirs/system-config2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_7ADGC3/mapping/private-child/.dirs/config 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_7ADGC3/mapping/private-child/.dirs/system-data1:/tmp/test_mapping_7ADGC3/mapping/private-child/.dirs/system-data2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_7ADGC3/mapping/private-child/.dirs/data 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_7ADGC3/mapping/private-child/.dirs/state 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_7ADGC3/mapping/private-child/.dirs/runtime 1357s # test_child_private: child spawned 1357s # Subtest: /usr/libexec/installed-tests/glib/mapping 1357s # random seed: R02S84c9aec03c106636601cb4b86a500b66 1357s # test_child_private: received first child signal 1357s # test_child_private: received parent signal 1357s # Child exited with status 0 1357s ok - glib/mapping.test 1357s # Running test: glib/relation.test 1357s ok - glib/relation.test 1357s # Running test: glib/mimeapps.test 1357s # test_child_private: received second child signal 1357s ok 3 /mapping/private-child 1357s # End of mapping tests 1357s TAP version 14 1357s # random seed: R02Sec7be102b55671272ca76a5bb1d04bc8 1357s 1..1 1357s # Start of glib tests 1357s ok 1 /glib/relation 1357s # End of glib tests 1357s TAP version 14 1357s # random seed: R02S810cac195e56f417e1c3bd03a4c3205e 1357s 1..7 1357s # Start of appinfo tests 1357s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/home 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/cache 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/system-config1:/tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/system-config2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/config 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/system-data1:/tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/system-data2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/data 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/state 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/runtime 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/system-data1/applications' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/system-data1/applications/mimeapps.list' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/data/applications' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/data/applications/myapp.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/data/applications/myapp2.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/data/applications/myapp3.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/data/applications/myapp4.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/data/applications/myapp5.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/data/applications/nosuchapp.desktop' 1357s # removing '/tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/data/applications/mimeapps.list' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/data/applications/mimeinfo.cache' 1357s ok 1 /appinfo/all 1357s # Start of mime tests 1357s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/home 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/cache 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/system-config1:/tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/system-config2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/config 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/system-data1:/tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/system-data2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/data 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/state 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/runtime 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/system-data1/applications' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/system-data1/applications/mimeapps.list' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/data/applications' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/data/applications/myapp.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/data/applications/myapp2.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/data/applications/myapp3.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/data/applications/myapp4.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/data/applications/myapp5.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/data/applications/nosuchapp.desktop' 1357s # removing '/tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/data/applications/mimeapps.list' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/data/applications/mimeinfo.cache' 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/config 1357s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_N7KLC3/appinfo/all/.dirs/config to /tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/config 1357s ok 2 /appinfo/mime/api 1357s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/home 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/cache 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/system-config1:/tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/system-config2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/config 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/system-data1:/tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/system-data2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/data 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/state 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/runtime 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/system-data1/applications' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/system-data1/applications/mimeapps.list' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/data/applications' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/data/applications/myapp.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/data/applications/myapp2.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/data/applications/myapp3.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/data/applications/myapp4.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/data/applications/myapp5.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/data/applications/nosuchapp.desktop' 1357s # removing '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/data/applications/mimeapps.list' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/data/applications/mimeinfo.cache' 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/config 1357s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_N7KLC3/appinfo/mime/api/.dirs/config to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/config 1357s ok 3 /appinfo/mime/default 1357s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/home 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/cache 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/system-config1:/tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/system-config2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/config 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/system-data1:/tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/system-data2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/data 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/state 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/runtime 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/system-data1/applications' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/system-data1/applications/mimeapps.list' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/data/applications' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/data/applications/myapp.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/data/applications/myapp2.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/data/applications/myapp3.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/data/applications/myapp4.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/data/applications/myapp5.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/data/applications/nosuchapp.desktop' 1357s # removing '/tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/data/applications/mimeapps.list' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/data/applications/mimeinfo.cache' 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/config 1357s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_N7KLC3/appinfo/mime/default/.dirs/config to /tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/config 1357s ok 4 /appinfo/mime/file 1357s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/home 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/cache 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/system-config2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/config 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/system-data2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/data 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/state 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/runtime 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/system-data1/applications' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/system-data1/applications/mimeapps.list' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/data/applications' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp2.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp3.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp4.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp5.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 1357s # removing '/tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/data/applications/mimeapps.list' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/data/applications/mimeinfo.cache' 1357s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_N7KLC3/appinfo/mime/file/.dirs/config to /tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/config 1357s ok 5 /appinfo/mime/scheme-handler 1357s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/home 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/cache 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/system-config2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/config 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/system-data2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/data 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/state 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/runtime 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/system-data1/applications' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/system-data1/applications/mimeapps.list' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/data/applications' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/data/applications/myapp.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/data/applications/myapp2.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/data/applications/myapp3.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/data/applications/myapp4.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/data/applications/myapp5.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/data/applications/nosuchapp.desktop' 1357s # removing '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/data/applications/mimeapps.list' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/data/applications/mimeinfo.cache' 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/config 1357s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_N7KLC3/appinfo/mime/scheme-handler/.dirs/config to /tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/config 1357s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/config 1357s ok 6 /appinfo/mime/default-last-used 1357s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/home 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/cache 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/system-config2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/config 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/system-data2 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/data 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/state 1357s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/runtime 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/data/applications' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 1357s # removing '/tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 1357s # creating '/tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 1357s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_N7KLC3/appinfo/mime/default-last-used/.dirs/config to /tmp/test_mimeapps_N7KLC3/appinfo/mime/ignore-nonexisting/.dirs/config 1357s ok 7 /appinfo/mime/ignore-nonexisting 1357s # End of mime tests 1357s # End of appinfo tests 1357s ok - glib/mimeapps.test 1357s # Running test: glib/fileattributematcher.test 1357s TAP version 14 1357s # random seed: R02S001893ee478a82dd81c7404cb590517a 1357s 1..3 1357s # Start of fileattributematcher tests 1357s ok 1 /fileattributematcher/exact 1357s ok 2 /fileattributematcher/equality 1357s ok 3 /fileattributematcher/subtract 1357s # End of fileattributematcher tests 1357s ok - glib/fileattributematcher.test 1357s # Running test: glib/signals-refcount2.test 1357s TAP version 14 1357s # random seed: R02Se19262cf13f35901d70ae843e101ed89 1357s 1..1 1357s # Start of gobject tests 1357s # Start of refcount tests 1357s # init 0x2aa3d1bd490 1357s # 1357s # init 0x2aa3d1b5580 1357s # 1361s # Executing: glib/signals-refcount2.test 1362s # dispose 0x2aa3d1bd490! 1362s # 1362s # dispose 0x2aa3d1b5580! 1362s # 1362s ok 1 /gobject/refcount/signals 1362s # slow test /gobject/refcount/signals executed in 5.00 secs 1362s # End of refcount tests 1362s # End of gobject tests 1362s ok - glib/signals-refcount2.test 1362s # Running test: glib/date.test 1362s TAP version 14 1362s # random seed: R02S2d304b0be86ea9094acd160bfe6e2660 1362s 1..122 1362s # Start of date tests 1362s ok 1 /date/basic 1362s ok 2 /date/empty 1362s ok 3 /date/dmy 1362s ok 4 /date/julian 1362s ok 5 /date/compare 1362s ok 6 /date/dates 1362s ok 7 /date/strftime 1362s ok 8 /date/two-digit-years 1362s ok 9 /date/parse 1362s ok 10 /date/parse_locale_change # SKIP locale th_TH not available 1362s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793550 1362s ok 11 /date/month_substring 1362s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=749206 1362s ok 12 /date/month_names # SKIP libc doesn’t support all alternative month names 1362s ok 13 /date/clamp 1362s ok 14 /date/order 1362s ok 15 /date/copy 1362s # Vector 0: 0000-00-00, invalid 1362s # Vector 1: 0001-01-01, valid 1362s # Vector 2: 0000-01-01, invalid 1362s # Vector 3: 2000-02-30, invalid 1362s # Vector 4: 2000-02-29, valid 1362s # Vector 5: 2001-02-29, invalid 1362s # Vector 6: 65535-01-01, valid 1362s ok 16 /date/valid-dmy 1362s # Considering 2000-01-01 1362s # Considering 2000-01-07 1362s # Considering 2000-01-08 1362s # Considering 2001-01-01 1362s # Considering 2001-01-07 1362s # Considering 2001-01-08 1362s # Considering 2002-01-01 1362s # Considering 2002-01-07 1362s # Considering 2002-01-08 1362s # Considering 2003-01-01 1362s # Considering 2003-01-07 1362s # Considering 2003-01-08 1362s # Considering 2004-01-01 1362s # Considering 2004-01-07 1362s # Considering 2004-01-08 1362s # Considering 2006-01-01 1362s # Considering 2006-01-07 1362s # Considering 2006-01-08 1362s # Considering 2010-01-01 1362s # Considering 2010-01-07 1362s # Considering 2010-01-08 1362s ok 17 /date/week-of-year 1362s # Start of parse tests 1362s # Test 0 1362s # Test 1 1362s ok 18 /date/parse/invalid 1362s # End of parse tests 1362s # Start of year tests 1362s ok 19 /date/year/1 1362s ok 20 /date/year/2 1362s ok 21 /date/year/3 1362s ok 22 /date/year/4 1362s ok 23 /date/year/5 1362s ok 24 /date/year/6 1362s ok 25 /date/year/7 1362s ok 26 /date/year/8 1362s ok 27 /date/year/9 1362s ok 28 /date/year/10 1362s ok 29 /date/year/11 1362s ok 30 /date/year/12 1362s ok 31 /date/year/13 1362s ok 32 /date/year/14 1362s ok 33 /date/year/98 1362s ok 34 /date/year/99 1362s ok 35 /date/year/100 1362s ok 36 /date/year/101 1362s ok 37 /date/year/102 1362s ok 38 /date/year/103 1362s ok 39 /date/year/397 1362s ok 40 /date/year/398 1362s ok 41 /date/year/399 1362s ok 42 /date/year/400 1362s ok 43 /date/year/401 1362s ok 44 /date/year/402 1362s ok 45 /date/year/403 1362s ok 46 /date/year/404 1362s ok 47 /date/year/405 1362s ok 48 /date/year/406 1362s ok 49 /date/year/1598 1362s ok 50 /date/year/1599 1362s ok 51 /date/year/1600 1362s ok 52 /date/year/1601 1362s ok 53 /date/year/1602 1362s ok 54 /date/year/1650 1362s ok 55 /date/year/1651 1362s ok 56 /date/year/1897 1362s ok 57 /date/year/1898 1362s ok 58 /date/year/1899 1362s ok 59 /date/year/1900 1362s ok 60 /date/year/1901 1362s ok 61 /date/year/1902 1362s ok 62 /date/year/1903 1362s ok 63 /date/year/1961 1362s ok 64 /date/year/1962 1362s ok 65 /date/year/1963 1362s ok 66 /date/year/1964 1362s ok 67 /date/year/1965 1362s ok 68 /date/year/1967 1362s ok 69 /date/year/1968 1362s ok 70 /date/year/1969 1362s ok 71 /date/year/1970 1362s ok 72 /date/year/1971 1362s ok 73 /date/year/1972 1362s ok 74 /date/year/1973 1362s ok 75 /date/year/1974 1362s ok 76 /date/year/1975 1362s ok 77 /date/year/1976 1362s ok 78 /date/year/1977 1362s ok 79 /date/year/1978 1362s ok 80 /date/year/1979 1362s ok 81 /date/year/1980 1362s ok 82 /date/year/1981 1362s ok 83 /date/year/1982 1362s ok 84 /date/year/1983 1362s ok 85 /date/year/1984 1362s ok 86 /date/year/1985 1362s ok 87 /date/year/1986 1362s ok 88 /date/year/1987 1362s ok 89 /date/year/1988 1362s ok 90 /date/year/1989 1362s ok 91 /date/year/1990 1362s ok 92 /date/year/1991 1362s ok 93 /date/year/1992 1362s ok 94 /date/year/1993 1362s ok 95 /date/year/1994 1362s ok 96 /date/year/1995 1362s ok 97 /date/year/1996 1362s ok 98 /date/year/1997 1362s ok 99 /date/year/1998 1362s ok 100 /date/year/1999 1362s ok 101 /date/year/2000 1362s ok 102 /date/year/2001 1362s ok 103 /date/year/2002 1362s ok 104 /date/year/2003 1362s ok 105 /date/year/2004 1362s ok 106 /date/year/2005 1362s ok 107 /date/year/2006 1362s ok 108 /date/year/2007 1362s ok 109 /date/year/2008 1362s ok 110 /date/year/2009 1362s ok 111 /date/year/2010 1362s ok 112 /date/year/2011 1362s ok 113 /date/year/2012 1362s ok 114 /date/year/3000 1362s ok 115 /date/year/3001 1362s ok 116 /date/year/3002 1362s ok 117 /date/year/3998 1362s ok 118 /date/year/3999 1362s ok 119 /date/year/4000 1362s ok 120 /date/year/4001 1362s ok 121 /date/year/4002 1362s ok 122 /date/year/4003 1362s # End of year tests 1362s # End of date tests 1362s ok - glib/date.test 1362s # Running test: glib/macros-c-11.test 1362s TAP version 14 1362s # random seed: R02Sac898bd36a704b48a5c2a480bfe00558 1362s 1..4 1362s # Start of C tests 1362s ok 1 /C/standard-11 1362s # End of C tests 1362s # Start of alignof tests 1362s ok 2 /alignof/fallback 1362s ok - glib/macros-c-11.test 1362s # End of alignof tests 1362s # Start of assert tests 1362s ok 3 /assert/static 1362s # End of assert tests 1362s # Start of struct tests 1362s ok 4 /struct/sizeof_member 1362s # End of struct tests 1362s # Running test: glib/repository.test 1362s TAP version 14 1362s # random seed: R02Sc6f5aa18196694ee22b6e28da9828c9e 1362s 1..24 1362s # Start of repository tests 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/basic/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/basic/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/basic/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/basic/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/basic/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/basic/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/basic/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/basic/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/basic/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/basic/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/basic summary: Test basic opening of a repository and requiring a typelib 1362s ok 1 /repository/basic 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/info/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/info/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/info/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/info/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/info/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/info/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/info/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/info/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/info/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/info/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/info summary: Test retrieving some basic info blobs from a typelib 1362s ok 2 /repository/info 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/dependencies/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/dependencies/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/dependencies/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/dependencies/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/dependencies/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/dependencies/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/dependencies/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/dependencies/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/dependencies/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/dependencies/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/dependencies summary: Test ensures namespace dependencies are correctly exposed 1362s ok 3 /repository/dependencies 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/arg-info/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/arg-info/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/arg-info/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/arg-info/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/arg-info/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/arg-info/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/arg-info/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/arg-info/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/arg-info/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/arg-info/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/arg-info summary: Test retrieving GIArgInfos from a typelib 1362s ok 4 /repository/arg-info 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/callable-info/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/callable-info/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/callable-info/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/callable-info/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/callable-info/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/callable-info/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/callable-info/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/callable-info/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/callable-info/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/callable-info/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/callable-info summary: Test retrieving GICallableInfos from a typelib 1362s ok 5 /repository/callable-info 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/callback-info/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/callback-info/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/callback-info/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/callback-info/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/callback-info/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/callback-info/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/callback-info/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/callback-info/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/callback-info/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/callback-info/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/callback-info summary: Test retrieving GICallbackInfos from a typelib 1362s ok 6 /repository/callback-info 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/char-types/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/char-types/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/char-types/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/char-types/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/char-types/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/char-types/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/char-types/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/char-types/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/char-types/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/char-types/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/char-types summary: Test that signed and unsigned char GITypeInfo have GITypeTag of INT8 and UINT8 respectively 1362s ok 7 /repository/char-types 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/constructor-return-type/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/constructor-return-type/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/constructor-return-type/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/constructor-return-type/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/constructor-return-type/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/constructor-return-type/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/constructor-return-type/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/constructor-return-type/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/constructor-return-type/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/constructor-return-type/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/constructor-return-type summary: Test the return type of a constructor, g_object_newv() 1362s ok 8 /repository/constructor-return-type 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/enum-info-c-identifier/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/enum-info-c-identifier/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/enum-info-c-identifier/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/enum-info-c-identifier/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/enum-info-c-identifier/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/enum-info-c-identifier/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/enum-info-c-identifier/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/enum-info-c-identifier/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/enum-info-c-identifier/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/enum-info-c-identifier/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/enum-info-c-identifier summary: Test that every enum member has a C identifier 1362s ok 9 /repository/enum-info-c-identifier 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/enum-info-static-methods/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/enum-info-static-methods/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/enum-info-static-methods/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/enum-info-static-methods/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/enum-info-static-methods/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/enum-info-static-methods/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/enum-info-static-methods/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/enum-info-static-methods/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/enum-info-static-methods/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/enum-info-static-methods/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/enum-info-static-methods summary: Test an enum with methods 1362s ok 10 /repository/enum-info-static-methods 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/error-quark/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/error-quark/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/error-quark/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/error-quark/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/error-quark/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/error-quark/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/error-quark/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/error-quark/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/error-quark/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/error-quark/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/error-quark summary: Test finding an error quark by error domain 1362s ok 11 /repository/error-quark 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/flags-info-c-identifier/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/flags-info-c-identifier/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/flags-info-c-identifier/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/flags-info-c-identifier/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/flags-info-c-identifier/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/flags-info-c-identifier/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/flags-info-c-identifier/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/flags-info-c-identifier/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/flags-info-c-identifier/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/flags-info-c-identifier/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/flags-info-c-identifier summary: Test that every flags member has a C identifier 1362s ok 12 /repository/flags-info-c-identifier 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/fundamental-ref-func/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/fundamental-ref-func/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/fundamental-ref-func/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/fundamental-ref-func/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/fundamental-ref-func/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/fundamental-ref-func/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/fundamental-ref-func/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/fundamental-ref-func/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/fundamental-ref-func/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/fundamental-ref-func/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/fundamental-ref-func summary: Test getting the ref func of a fundamental type 1362s ok 13 /repository/fundamental-ref-func 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/instance-method-ownership-transfer/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/instance-method-ownership-transfer/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/instance-method-ownership-transfer/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/instance-method-ownership-transfer/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/instance-method-ownership-transfer/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/instance-method-ownership-transfer/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/instance-method-ownership-transfer/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/instance-method-ownership-transfer/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/instance-method-ownership-transfer/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/instance-method-ownership-transfer/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/instance-method-ownership-transfer summary: Test two methods of the same object having opposite ownership transfer of the instance parameter 1362s ok 14 /repository/instance-method-ownership-transfer 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/object-gtype-interfaces/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/object-gtype-interfaces/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/object-gtype-interfaces/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/object-gtype-interfaces/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/object-gtype-interfaces/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/object-gtype-interfaces/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/object-gtype-interfaces/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/object-gtype-interfaces/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/object-gtype-interfaces/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/object-gtype-interfaces/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/object-gtype-interfaces summary: Test gi_repository_get_object_gtype_interfaces() 1362s ok 15 /repository/object-gtype-interfaces 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/signal-info-with-array-length-arg/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/signal-info-with-array-length-arg/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/signal-info-with-array-length-arg/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/signal-info-with-array-length-arg/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/signal-info-with-array-length-arg/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/signal-info-with-array-length-arg/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/signal-info-with-array-length-arg/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/signal-info-with-array-length-arg/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/signal-info-with-array-length-arg/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/signal-info-with-array-length-arg/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/signal-info-with-array-length-arg summary: Test finding the associated array length argument of an array parameter of a signal 1362s ok 16 /repository/signal-info-with-array-length-arg 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/type-info-name/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/type-info-name/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/type-info-name/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/type-info-name/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/type-info-name/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/type-info-name/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/type-info-name/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/type-info-name/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/type-info-name/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/type-info-name/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/type-info-name summary: Test that gi_base_info_get_name() returns null for GITypeInfo 1362s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/96 1362s ok 17 /repository/type-info-name 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/vfunc-info-with-no-invoker/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/vfunc-info-with-no-invoker/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/vfunc-info-with-no-invoker/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/vfunc-info-with-no-invoker/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/vfunc-info-with-no-invoker/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/vfunc-info-with-no-invoker/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/vfunc-info-with-no-invoker/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/vfunc-info-with-no-invoker/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/vfunc-info-with-no-invoker/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/vfunc-info-with-no-invoker/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/vfunc-info-with-no-invoker summary: Test vfunc with no known invoker on object, such as GObject.dispose 1362s ok 18 /repository/vfunc-info-with-no-invoker 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-interface/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-interface/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-interface/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-interface/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-interface/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-interface/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/vfunc-info-with-invoker-on-interface summary: Test vfunc with invoker on interface, such as GFile.read_async 1362s ok 19 /repository/vfunc-info-with-invoker-on-interface 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-object/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-object/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-object/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-object/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-object/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/vfunc-info-with-invoker-on-object/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/vfunc-info-with-invoker-on-object summary: Test vfunc with invoker on object, such as GAppLaunchContext.get_display 1362s ok 20 /repository/vfunc-info-with-invoker-on-object 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/find-by-gtype/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/find-by-gtype/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/find-by-gtype/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/find-by-gtype/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/find-by-gtype/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/find-by-gtype/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/find-by-gtype/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/find-by-gtype/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/find-by-gtype/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/find-by-gtype/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/find-by-gtype summary: Test finding a GType 1362s ok 21 /repository/find-by-gtype 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/loaded-namespaces/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/loaded-namespaces/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/loaded-namespaces/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/loaded-namespaces/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/loaded-namespaces/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/loaded-namespaces/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/loaded-namespaces/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/loaded-namespaces/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/loaded-namespaces/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/loaded-namespaces/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/loaded-namespaces summary: Test listing loaded namespaces 1362s ok 22 /repository/loaded-namespaces 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/dup_default/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/dup_default/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/dup_default/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/dup_default/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/dup_default/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/dup_default/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/dup_default/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/dup_default/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/dup_default/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/dup_default/.dirs/runtime 1362s ok 23 /repository/dup_default 1362s # Start of base-info tests 1362s ok - glib/repository.test 1362s # Running test: glib/gdbus-bz627724.test 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_9W62B3/repository/base-info/clear/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_9W62B3/repository/base-info/clear/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_9W62B3/repository/base-info/clear/.dirs/system-config1:/tmp/test_repository_9W62B3/repository/base-info/clear/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_9W62B3/repository/base-info/clear/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_9W62B3/repository/base-info/clear/.dirs/system-data1:/tmp/test_repository_9W62B3/repository/base-info/clear/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_9W62B3/repository/base-info/clear/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_9W62B3/repository/base-info/clear/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_9W62B3/repository/base-info/clear/.dirs/runtime 1362s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1362s # /repository/base-info/clear summary: Test calling gi_base_info_clear() on a zero-filled struct 1362s ok 24 /repository/base-info/clear 1362s # End of base-info tests 1362s # End of repository tests 1362s ok - glib/gdbus-bz627724.test 1362s # Running test: glib/basic-signals.test 1362s ok - glib/basic-signals.test 1362s # Running test: glib/thread-pool.test 1362s TAP version 14 1362s # random seed: R02Sf6cd8658c78fb90d6102b6e82abfd128 1362s 1..1 1362s # Start of gdbus tests 1362s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-bz627724_5S02B3/gdbus/bz627724/.dirs/home 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-bz627724_5S02B3/gdbus/bz627724/.dirs/cache 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-bz627724_5S02B3/gdbus/bz627724/.dirs/system-config1:/tmp/test_gdbus-bz627724_5S02B3/gdbus/bz627724/.dirs/system-config2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-bz627724_5S02B3/gdbus/bz627724/.dirs/config 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-bz627724_5S02B3/gdbus/bz627724/.dirs/system-data1:/tmp/test_gdbus-bz627724_5S02B3/gdbus/bz627724/.dirs/system-data2 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-bz627724_5S02B3/gdbus/bz627724/.dirs/data 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-bz627724_5S02B3/gdbus/bz627724/.dirs/state 1362s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-bz627724_5S02B3/gdbus/bz627724/.dirs/runtime 1362s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1362s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1362s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1362s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1362s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1362s ok 1 /gdbus/bz627724 1362s # End of gdbus tests 1362s TAP version 14 1362s # random seed: R02S2943e5f78494a4fc8ba924e78d0cb2b1 1362s 1..1 1362s # Start of gobject tests 1362s ok 1 /gobject/basic-signals 1362s # End of gobject tests 1362s TAP version 14 1362s # random seed: R02S18546f40c28b8915e081185a3efe4629 1362s 1..6 1362s # Start of thread_pool tests 1362s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3712 1362s ok 1 /thread_pool/pool_fail 1362s # /thread_pool/shared summary: Tests that a shared, non-exclusive thread pool generally works. 1362s ok 2 /thread_pool/shared 1362s # /thread_pool/exclusive summary: Tests that an exclusive thread pool generally works. 1362s ok 3 /thread_pool/exclusive 1362s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1362s # /thread_pool/create_shared_after_exclusive summary: Tests that creating a shared pool after an exclusive one works. 1362s ok 4 /thread_pool/create_shared_after_exclusive 1362s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/121 1362s ok 5 /thread_pool/create_full 1362s ok - glib/thread-pool.test 1362s # Running test: glib/gdatetime.test 1362s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1362s # /thread_pool/create_exclusive_after_shared summary: Tests that creating an exclusive pool after a shared one works. 1362s ok 6 /thread_pool/create_exclusive_after_shared 1362s # End of thread_pool tests 1362s TAP version 14 1362s # random seed: R02Sb4e08d34f64e0c29c147cdf0c30c34d6 1362s 1..68 1362s # Start of GDateTime tests 1362s # Bug Reference: http://bugzilla.gnome.org/702674 1362s ok 1 /GDateTime/invalid 1362s ok 2 /GDateTime/add_days 1362s ok 3 /GDateTime/add_full 1362s ok 4 /GDateTime/add_hours 1362s ok 5 /GDateTime/add_minutes 1362s ok 6 /GDateTime/add_months 1362s ok 7 /GDateTime/add_seconds 1362s ok 8 /GDateTime/add_weeks 1362s ok 9 /GDateTime/add_years 1362s ok 10 /GDateTime/compare 1362s ok 11 /GDateTime/diff 1362s ok 12 /GDateTime/equal 1362s ok 13 /GDateTime/get_day_of_week 1362s ok 14 /GDateTime/get_day_of_month 1362s ok 15 /GDateTime/get_day_of_year 1362s ok 16 /GDateTime/get_hour 1362s ok 17 /GDateTime/get_microsecond 1362s ok 18 /GDateTime/get_minute 1362s ok 19 /GDateTime/get_month 1362s ok 20 /GDateTime/get_second 1362s ok 21 /GDateTime/get_utc_offset 1362s ok 22 /GDateTime/get_year 1362s ok 23 /GDateTime/hash 1362s ok 24 /GDateTime/new_from_unix 1362s ok 25 /GDateTime/new_from_unix_utc 1362s ok 26 /GDateTime/new_from_timeval 1362s ok 27 /GDateTime/new_from_timeval_utc 1362s ok 28 /GDateTime/new_from_iso8601 1362s ok 29 /GDateTime/new_full 1362s ok 30 /GDateTime/now 1362s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2215 1362s ok 31 /GDateTime/test-6-days-until-end-of-the-month 1362s # %a -> expected: Sat 1362s # %a -> actual: Sat 1362s # %A -> expected: Saturday 1362s # %A -> actual: Saturday 1362s # %b -> expected: Oct 1362s # %b -> actual: Oct 1362s # %B -> expected: October 1362s # %B -> actual: October 1362s # %d -> expected: 24 1362s # %d -> actual: 24 1362s # %d -> expected: 01 1362s # %d -> actual: 01 1362s # %e -> expected: 24 1362s # %e -> actual: 24 1362s # %e -> expected:  1 1362s # %e -> actual:  1 1362s # %f -> expected: 001000 1362s # %f -> actual: 001000 1362s # %h -> expected: Oct 1362s # %h -> actual: Oct 1362s # %H -> expected: 00 1362s # %H -> actual: 00 1362s # %H -> expected: 15 1362s # %H -> actual: 15 1362s # %I -> expected: 12 1362s # %I -> actual: 12 1362s # %I -> expected: 12 1362s # %I -> actual: 12 1362s # %I -> expected: 03 1362s # %I -> actual: 03 1362s # %j -> expected: 297 1362s # %j -> actual: 297 1362s # %k -> expected:  0 1362s # %k -> actual:  0 1362s # %k -> expected: 13 1362s # %k -> actual: 13 1362s # %l -> expected: 12 1362s # %l -> actual: 12 1362s # %I -> expected: 12 1362s # %I -> actual: 12 1362s # %l -> expected:  1 1362s # %l -> actual:  1 1362s # %l -> expected: 10 1362s # %l -> actual: 10 1362s # %m -> expected: 10 1362s # %m -> actual: 10 1362s # %M -> expected: 00 1362s # %M -> actual: 00 1362s # %p -> expected: AM 1362s # %p -> actual: AM 1362s # %p -> expected: PM 1362s # %p -> actual: PM 1362s # %P -> expected: am 1362s # %P -> actual: am 1362s # %P -> expected: pm 1362s # %P -> actual: pm 1362s # %r -> expected: 12:00:00 AM 1362s # %r -> actual: 12:00:00 AM 1362s # %r -> expected: 01:13:13 PM 1362s # %r -> actual: 01:13:13 PM 1362s # %R -> expected: 00:00 1362s # %R -> actual: 00:00 1362s # %R -> expected: 13:13 1362s # %R -> actual: 13:13 1362s # %S -> expected: 00 1362s # %S -> actual: 00 1362s # %t -> expected: 1362s # %t -> actual: 1362s # %u -> expected: 6 1362s # %u -> actual: 6 1362s # %x -> expected: 10/24/09 1362s # %x -> actual: 10/24/09 1362s # %X -> expected: 00:00:00 1362s # %X -> actual: 00:00:00 1362s # %X -> expected: 13:14:15 1362s # %X -> actual: 13:14:15 1362s # %y -> expected: 09 1362s # %y -> actual: 09 1362s # %Y -> expected: 2009 1362s # %Y -> actual: 2009 1362s # %% -> expected: % 1362s # %% -> actual: % 1362s # % -> expected: 1362s # % -> actual: 1362s # %9 -> expected: (null) 1362s # %9 -> actual: (null) 1362s # %Z -> expected: UTC 1362s # %Z -> actual: UTC 1362s # %#Z %Z -> expected: utc UTC 1362s # %#Z %Z -> actual: utc UTC 1362s ok 32 /GDateTime/printf 1362s # %a -> expected: 土 1362s # %a -> actual: 土 1362s # %A -> expected: 土曜日 1362s # %A -> actual: 土曜日 1362s # %b -> expected: 10月 1362s # %b -> actual: 10月 1362s # %B -> expected: 10月 1362s # %B -> actual: 10月 1362s # %c -> expected: 2009年10月24日 00時00分00秒 1362s # %c -> actual: 2009年10月24日 00時00分00秒 1362s # %C -> expected: 20 1362s # %C -> actual: 20 1362s # %d -> expected: 24 1362s # %d -> actual: 24 1362s # %d -> expected: 01 1362s # %d -> actual: 01 1362s # %e -> expected: 24 1362s # %e -> actual: 24 1362s # %h -> expected: 10月 1362s # %h -> actual: 10月 1362s # %H -> expected: 00 1362s # %H -> actual: 00 1362s # %H -> expected: 15 1362s # %H -> actual: 15 1362s # %I -> expected: 12 1362s # %I -> actual: 12 1362s # %I -> expected: 12 1362s # %I -> actual: 12 1362s # %I -> expected: 03 1362s # %I -> actual: 03 1362s # %j -> expected: 297 1362s # %j -> actual: 297 1362s # %k -> expected:  0 1362s # %k -> actual:  0 1362s # %k -> expected: 13 1362s # %k -> actual: 13 1362s # %l -> expected: 12 1362s # %l -> actual: 12 1362s # %I -> expected: 12 1362s # %I -> actual: 12 1362s # %l -> expected:  1 1362s # %l -> actual:  1 1362s # %l -> expected: 10 1362s # %l -> actual: 10 1362s # %m -> expected: 10 1362s # %m -> actual: 10 1362s # %M -> expected: 00 1362s # %M -> actual: 00 1362s # %p -> expected: 午前 1362s # %p -> actual: 午前 1362s # %p -> expected: 午後 1362s # %p -> actual: 午後 1362s # %P -> expected: 午前 1362s # %P -> actual: 午前 1362s # %P -> expected: 午後 1362s # %P -> actual: 午後 1362s # %r -> expected: 午前12時00分00秒 1362s # %r -> actual: 午前12時00分00秒 1362s # %r -> expected: 午後01時13分13秒 1362s # %r -> actual: 午後01時13分13秒 1362s # %R -> expected: 00:00 1362s # %R -> actual: 00:00 1362s # %R -> expected: 13:13 1362s # %R -> actual: 13:13 1362s # %S -> expected: 00 1362s # %S -> actual: 00 1362s # %t -> expected: 1362s # %t -> actual: 1362s # %u -> expected: 6 1362s # %u -> actual: 6 1362s # %x -> expected: 2009年10月24日 1362s # %x -> actual: 2009年10月24日 1362s # %X -> expected: 00時00分00秒 1362s # %X -> actual: 00時00分00秒 1362s # %X -> expected: 13時14分15秒 1362s # %X -> actual: 13時14分15秒 1362s # %y -> expected: 09 1362s # %y -> actual: 09 1362s # %Y -> expected: 2009 1362s # %Y -> actual: 2009 1362s # %% -> expected: % 1362s # %% -> actual: % 1362s # % -> expected: 1362s # % -> actual: 1362s # %9 -> expected: (null) 1362s # %9 -> actual: (null) 1362s # %Ec -> expected: 2009年10月24日 00時00分00秒 1362s # %Ec -> actual: 2009年10月24日 00時00分00秒 1362s # %EC -> expected: 20 1362s # %EC -> actual: 20 1362s # %Ex -> expected: 2009年10月24日 1362s # %Ex -> actual: 2009年10月24日 1362s # %EX -> expected: 00時00分00秒 1362s # %EX -> actual: 00時00分00秒 1362s # %Ey -> expected: 09 1362s # %Ey -> actual: 09 1362s # %EY -> expected: 2009 1362s # %EY -> actual: 2009 1362s ok 33 /GDateTime/non_utf8_printf 1362s # ąśćł -> expected: ąśćł 1362s # ąśćł -> actual: ąśćł 1362s # %H∶%M -> expected: 23∶15 1362s # %H∶%M -> actual: 23∶15 1362s # %H∶%M -> expected: 23∶15 1362s # %H∶%M -> actual: 23∶15 1362s ok 34 /GDateTime/format_unrepresentable 1362s ok 35 /GDateTime/format_iso8601 1362s ok 36 /GDateTime/strftime 1362s # %d -> expected: 01 1362s # %d -> actual: 01 1362s # %_d -> expected: 1 1362s # %_d -> actual: 1 1362s # %-d -> expected: 1 1362s # %-d -> actual: 1 1362s # %0d -> expected: 01 1362s # %0d -> actual: 01 1362s # %d -> expected: 21 1362s # %d -> actual: 21 1362s # %_d -> expected: 21 1362s # %_d -> actual: 21 1362s # %-d -> expected: 21 1362s # %-d -> actual: 21 1362s # %0d -> expected: 21 1362s # %0d -> actual: 21 1362s # %e -> expected:  1 1362s # %e -> actual:  1 1362s # %_e -> expected: 1 1362s # %_e -> actual: 1 1362s # %-e -> expected: 1 1362s # %-e -> actual: 1 1362s # %0e -> expected: 01 1362s # %0e -> actual: 01 1362s # %e -> expected: 21 1362s # %e -> actual: 21 1362s # %_e -> expected: 21 1362s # %_e -> actual: 21 1362s # %-e -> expected: 21 1362s # %-e -> actual: 21 1362s # %0e -> expected: 21 1362s # %0e -> actual: 21 1362s # %a -> expected: Thu 1362s # %a -> actual: Thu 1362s # %^a -> expected: THU 1362s # %^a -> actual: THU 1362s # %#a -> expected: THU 1362s # %#a -> actual: THU 1362s # %A -> expected: Thursday 1362s # %A -> actual: Thursday 1362s # %^A -> expected: THURSDAY 1362s # %^A -> actual: THURSDAY 1362s # %#A -> expected: THURSDAY 1362s # %#A -> actual: THURSDAY 1362s # %b -> expected: Jan 1362s # %b -> actual: Jan 1362s # %^b -> expected: JAN 1362s # %^b -> actual: JAN 1362s # %#b -> expected: JAN 1362s # %#b -> actual: JAN 1362s # %B -> expected: January 1362s # %B -> actual: January 1362s # %^B -> expected: JANUARY 1362s # %^B -> actual: JANUARY 1362s # %#B -> expected: JANUARY 1362s # %#B -> actual: JANUARY 1362s # %h -> expected: Jan 1362s # %h -> actual: Jan 1362s # %^h -> expected: JAN 1362s # %^h -> actual: JAN 1362s # %#h -> expected: JAN 1362s # %#h -> actual: JAN 1362s # %Z -> expected: UTC 1362s # %Z -> actual: UTC 1362s # %^Z -> expected: UTC 1362s # %^Z -> actual: UTC 1362s # %#Z -> expected: utc 1362s # %#Z -> actual: utc 1362s # %H -> expected: 01 1362s # %H -> actual: 01 1362s # %_H -> expected: 1 1362s # %_H -> actual: 1 1362s # %-H -> expected: 1 1362s # %-H -> actual: 1 1362s # %0H -> expected: 01 1362s # %0H -> actual: 01 1362s # %H -> expected: 21 1362s # %H -> actual: 21 1362s # %_H -> expected: 21 1362s # %_H -> actual: 21 1362s # %-H -> expected: 21 1362s # %-H -> actual: 21 1362s # %0H -> expected: 21 1362s # %0H -> actual: 21 1362s # %I -> expected: 01 1362s # %I -> actual: 01 1362s # %_I -> expected: 1 1362s # %_I -> actual: 1 1362s # %-I -> expected: 1 1362s # %-I -> actual: 1 1362s # %0I -> expected: 01 1362s # %0I -> actual: 01 1362s # %I -> expected: 11 1362s # %I -> actual: 11 1362s # %_I -> expected: 11 1362s # %_I -> actual: 11 1362s # %-I -> expected: 11 1362s # %-I -> actual: 11 1362s # %0I -> expected: 11 1362s # %0I -> actual: 11 1362s # %k -> expected:  1 1362s # %k -> actual:  1 1362s # %_k -> expected: 1 1362s # %_k -> actual: 1 1362s # %-k -> expected: 1 1362s # %-k -> actual: 1 1362s # %0k -> expected: 01 1362s # %0k -> actual: 01 1362s # %l -> expected:  1 1362s # %l -> actual:  1 1362s # %_l -> expected: 1 1362s # %_l -> actual: 1 1362s # %-l -> expected: 1 1362s # %-l -> actual: 1 1362s # %0l -> expected: 01 1362s # %0l -> actual: 01 1362s # %l -> expected: 11 1362s # %l -> actual: 11 1362s # %_l -> expected: 11 1362s # %_l -> actual: 11 1362s # %-l -> expected: 11 1362s # %-l -> actual: 11 1362s # %0l -> expected: 11 1362s # %0l -> actual: 11 1362s # %p -> expected: AM 1362s # %p -> actual: AM 1362s # %^p -> expected: AM 1362s # %^p -> actual: AM 1362s # %#p -> expected: am 1362s # %#p -> actual: am 1362s # %P -> expected: am 1362s # %P -> actual: am 1362s # %^P -> expected: AM 1362s # %^P -> actual: AM 1362s # %#P -> expected: am 1362s # %#P -> actual: am 1362s # %OH -> expected: ۲۳ 1362s # %OH -> actual: ۲۳ 1362s # %OI -> expected: ۱۱ 1362s # %OI -> actual: ۱۱ 1362s # %OM -> expected: ۰۰ 1362s # %OM -> actual: ۰۰ 1362s # %Om -> expected: ۰۷ 1362s # %Om -> actual: ۰۷ 1362s # %0Om -> expected: ۰۷ 1362s # %0Om -> actual: ۰۷ 1362s # %-Om -> expected: ۷ 1362s # %-Om -> actual: ۷ 1362s # %_Om -> expected: ۷ 1362s # %_Om -> actual: ۷ 1362s # %c -> expected: thu 01 jan 2009 00:00:00 utc 1362s # %c -> actual: Thu 01 Jan 2009 00:00:00 UTC 1362s # %Ec -> expected: thu 01 jan 2009 00:00:00 utc 1362s # %Ec -> actual: Thu 01 Jan 2009 00:00:00 UTC 1362s # %C -> expected: 20 1362s # %C -> actual: 20 1362s # %EC -> expected: 20 1362s # %EC -> actual: 20 1362s # %x -> expected: 02/01/09 1362s # %x -> actual: 02/01/09 1362s # %Ex -> expected: 02/01/09 1362s # %Ex -> actual: 02/01/09 1362s # %X -> expected: 01:02:03 1362s # %X -> actual: 01:02:03 1362s # %EX -> expected: 01:02:03 1362s # %EX -> actual: 01:02:03 1362s # %y -> expected: 09 1362s # %y -> actual: 09 1362s # %Ey -> expected: 09 1362s # %Ey -> actual: 09 1362s # %Y -> expected: 2009 1362s # %Y -> actual: 2009 1362s # %EY -> expected: 2009 1362s # %EY -> actual: 2009 1362s ok 37 /GDateTime/modifiers # SKIP locale gu_IN not available, skipping O modifier tests 1362s # Bug Reference: http://bugzilla.gnome.org/749206 1362s # %B -> expected: January 1362s # %B -> actual: January 1362s # %OB -> expected: February 1362s # %OB -> actual: February 1362s # %b -> expected: Mar 1362s # %b -> actual: Mar 1362s # %Ob -> expected: Apr 1362s # %Ob -> actual: Apr 1362s # %h -> expected: May 1362s # %h -> actual: May 1362s # %Oh -> expected: Jun 1362s # %Oh -> actual: Jun 1362s # %B -> expected: Juli 1362s # %B -> actual: Juli 1362s # %OB -> expected: August 1362s # %OB -> actual: August 1362s # %b -> expected: Sep 1362s # %b -> actual: Sep 1362s # %Ob -> expected: Okt 1362s # %Ob -> actual: Okt 1362s # %h -> expected: Nov 1362s # %h -> actual: Nov 1362s # %Oh -> expected: Dez 1362s # %Oh -> actual: Dez 1362s # %B -> expected: enero 1362s # %B -> actual: enero 1362s # %OB -> expected: febrero 1362s # %OB -> actual: febrero 1362s # %b -> expected: mar 1362s # %b -> actual: mar 1362s # %Ob -> expected: abr 1362s # %Ob -> actual: abr 1362s # %h -> expected: may 1362s # %h -> actual: may 1362s # %Oh -> expected: jun 1362s # %Oh -> actual: jun 1362s # %B -> expected: juillet 1362s # %B -> actual: juillet 1362s # %OB -> expected: août 1362s # %OB -> actual: août 1362s # %b -> expected: sept. 1362s # %b -> actual: sept. 1362s # %Ob -> expected: oct. 1362s # %Ob -> actual: oct. 1362s # %h -> expected: nov. 1362s # %h -> actual: nov. 1362s # %Oh -> expected: déc. 1362s # %Oh -> actual: déc. 1362s # %B -> expected: Ιανουαρίου 1362s # %B -> actual: Ιανουαρίου 1362s # %B -> expected: Φεβρουαρίου 1362s # %B -> actual: Φεβρουαρίου 1362s # %B -> expected: Μαρτίου 1362s # %B -> actual: Μαρτίου 1362s # %OB -> expected: Απρίλιος 1362s # %OB -> actual: Απρίλιος 1362s # %OB -> expected: Μάιος 1362s # %OB -> actual: Μάιος 1362s # %OB -> expected: Ιούνιος 1362s # %OB -> actual: Ιούνιος 1362s # %b -> expected: Ιουλ 1362s # %b -> actual: Ιουλ 1362s # %Ob -> expected: Αύγ 1362s # %Ob -> actual: Αύγ 1362s # %B -> expected: svibnja 1362s # %B -> actual: svibnja 1362s # %B -> expected: lipnja 1362s # %B -> actual: lipnja 1362s # %B -> expected: srpnja 1362s # %B -> actual: srpnja 1362s # %OB -> expected: Kolovoz 1362s # %OB -> actual: kolovoz 1362s # %OB -> expected: Rujan 1362s # %OB -> actual: rujan 1362s # %OB -> expected: Listopad 1362s # %OB -> actual: listopad 1362s # %b -> expected: Stu 1362s # %b -> actual: stu 1362s # %Ob -> expected: Pro 1362s # %Ob -> actual: pro 1362s # %B -> expected: sausio 1362s # %B -> actual: sausio 1362s # %B -> expected: vasario 1362s # %B -> actual: vasario 1362s # %B -> expected: kovo 1362s # %B -> actual: kovo 1362s # %OB -> expected: balandis 1362s # %OB -> actual: balandis 1362s # %OB -> expected: gegužė 1362s # %OB -> actual: gegužė 1362s # %OB -> expected: birželis 1362s # %OB -> actual: birželis 1362s # %b -> expected: liep. 1362s # %b -> actual: liep. 1362s # %Ob -> expected: rugp. 1362s # %Ob -> actual: rugp. 1362s # %B -> expected: maja 1362s # %B -> actual: maja 1362s # %B -> expected: czerwca 1362s # %B -> actual: czerwca 1362s # %B -> expected: lipca 1362s # %B -> actual: lipca 1362s # %OB -> expected: sierpień 1362s # %OB -> actual: sierpień 1362s # %OB -> expected: wrzesień 1362s # %OB -> actual: wrzesień 1362s # %OB -> expected: październik 1362s # %OB -> actual: październik 1362s # %b -> expected: lis 1362s # %b -> actual: lis 1362s # %Ob -> expected: gru 1362s # %Ob -> actual: gru 1362s # %B -> expected: января 1362s # %B -> actual: января 1362s # %B -> expected: февраля 1362s # %B -> actual: февраля 1362s # %B -> expected: марта 1362s # %B -> actual: марта 1362s # %OB -> expected: Апрель 1362s # %OB -> actual: Апрель 1362s # %OB -> expected: Май 1362s # %OB -> actual: Май 1362s # %OB -> expected: Июнь 1362s # %OB -> actual: Июнь 1362s # %b -> expected: июл 1362s # %b -> actual: июл 1362s # %Ob -> expected: авг 1362s # %Ob -> actual: авг 1362s # %b -> expected: мая 1362s # %b -> actual: мая 1362s # %Ob -> expected: май 1362s # %Ob -> actual: май 1362s ok 38 /GDateTime/month_names 1362s ok 39 /GDateTime/to_local 1362s ok 40 /GDateTime/to_unix 1362s ok 41 /GDateTime/to_timeval 1362s ok 42 /GDateTime/to_utc 1362s ok 43 /GDateTime/now_utc 1362s ok 44 /GDateTime/dst 1362s # Bug Reference: http://bugzilla.gnome.org/642935 1362s ok 45 /GDateTime/test_z 1364s ok 46 /GDateTime/test-all-dates 1364s # slow test /GDateTime/test-all-dates executed in 1.22 secs 1364s ok 47 /GDateTime/unix_usec 1364s # Start of new_from_unix tests 1364s # Bug Reference: http://bugzilla.gnome.org/782089 1364s ok 48 /GDateTime/new_from_unix/overflow 1364s # End of new_from_unix tests 1364s # Start of new_from_timeval tests 1364s # Bug Reference: http://bugzilla.gnome.org/782089 1364s # Maximum supported GTimeVal.tv_sec = 253402300799 1364s ok 49 /GDateTime/new_from_timeval/overflow 1364s # End of new_from_timeval tests 1364s # Start of new_from_iso8601 tests 1364s # /GDateTime/new_from_iso8601/2 summary: Further parser tests for g_date_time_new_from_iso8601(), checking success and failure using test vectors. 1364s # Vector 0: 1990-11-01T10:21:17Z 1364s # Vector 1: 19901101T102117Z 1364s # Vector 2: 1970-01-01T00:00:17.12Z 1364s # Vector 3: 1970-01-01T00:00:17.1234Z 1364s # Vector 4: 1970-01-01T00:00:17.123456Z 1364s # Vector 5: 1980-02-22T12:36:00+02:00 1364s # Vector 6: 1990-12-31T15:59:60-08:00 1364s # Vector 7: 1364s # Vector 8: x 1364s # Vector 9: 123x 1364s # Vector 10: 2001-10+x 1364s # Vector 11: 1980-02-22T 1364s # Vector 12: 2001-10-08Tx 1364s # Vector 13: 2001-10-08T10:11x 1364s # Vector 14: Wed Dec 19 17:20:20 GMT 2007 1364s # Vector 15: 1980-02-22T10:36:00Zulu 1364s # Vector 16: 2T0+819855292164632335 1364s # Vector 17: 2018-08-03T14:08:05.446178377+01:00 1364s # Vector 18: 2147483648-08-03T14:08:05.446178377+01:00 1364s # Vector 19: 2018-13-03T14:08:05.446178377+01:00 1364s # Vector 20: 2018-00-03T14:08:05.446178377+01:00 1364s # Vector 21: 2018-08-00T14:08:05.446178377+01:00 1364s # Vector 22: 2018-08-32T14:08:05.446178377+01:00 1364s # Vector 23: 2018-08-03T24:08:05.446178377+01:00 1364s # Vector 24: 2018-08-03T14:60:05.446178377+01:00 1364s # Vector 25: 2018-08-03T14:08:63.446178377+01:00 1364s # Vector 26: 2018-08-03T14:08:05.446178377+100:00 1364s # Vector 27: 20180803T140805.446178377+0100 1364s # Vector 28: 21474836480803T140805.446178377+0100 1364s # Vector 29: 20181303T140805.446178377+0100 1364s # Vector 30: 20180003T140805.446178377+0100 1364s # Vector 31: 20180800T140805.446178377+0100 1364s # Vector 32: 20180832T140805.446178377+0100 1364s # Vector 33: 20180803T240805.446178377+0100 1364s # Vector 34: 20180803T146005.446178377+0100 1364s # Vector 35: 20180803T140863.446178377+0100 1364s # Vector 36: 20180803T140805.446178377+10000 1364s # Vector 37: -0005-01-01T00:00:00Z 1364s # Vector 38: 2018-08-06 1364s # Vector 39: 20180803T140805,446178377+0100 1364s # Vector 40: 2018-08-03T14:08:05.446178377-01:00 1364s # Vector 41: 2018-08-03T14:08:05.446178377 01:00 1364s # Vector 42: 1990-11-01T10:21:17 1364s # Vector 43: 1719W462 407777-07 1364s # Vector 44: 4011090 260528Z 1364s # Vector 45: 0000W011 228214-22 1364s ok 50 /GDateTime/new_from_iso8601/2 1364s # End of new_from_iso8601 tests 1364s # Start of format_mixed tests 1364s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1364s # %b -> expected: mar 1364s # %b -> actual: Mar 1364s # %B -> expected: march 1364s # %B -> actual: March 1364s ok 51 /GDateTime/format_mixed/utf8_time_non_utf8_messages 1364s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1364s # %b -> expected: mar 1364s # %b -> actual: Mar 1364s # %B -> expected: march 1364s # %B -> actual: March 1364s ok 52 /GDateTime/format_mixed/utf8_time_utf8_messages 1364s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1364s # %b -> expected: Mär 1364s # %b -> actual: Mär 1364s # %B -> expected: März 1364s # %B -> actual: März 1364s ok 53 /GDateTime/format_mixed/non_utf8_time_non_utf8_messages 1364s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1364s # %b -> expected: Mär 1364s # %b -> actual: Mär 1364s # %B -> expected: März 1364s # %B -> actual: März 1364s ok 54 /GDateTime/format_mixed/non_utf8_time_utf8_messages 1364s # End of format_mixed tests 1364s # Start of strftime tests 1364s # %r -> expected: (null) 1364s # %r -> actual: (null) 1364s ok 55 /GDateTime/strftime/error_handling 1364s # End of strftime tests 1364s # Start of eras tests 1364s ok 56 /GDateTime/eras/japan # SKIP nl_langinfo(ERA) not supported, skipping era tests 1364s ok 57 /GDateTime/eras/thailand # SKIP nl_langinfo(ERA) not supported, skipping era tests 1364s # Vector 0: 1364s # Vector 1: +:1:-543/01/01:+*:พ.ศ.:%EC %Ey 1364s # 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年 1364s # Vector 3: -:2:2020/01/01:-*:令和:%EC%Ey年 1364s # Vector 4: +:2:2020/01/01:2020/01/01:令和:%EC%Ey年 1364s # Vector 5: +:2:+2020/01/01:+*:令和:%EC%Ey年 1364s ok - glib/gdatetime.test 1364s # Running test: glib/live-g-file.test 1364s # Vector 6: .:2:2020/01/01:+*:令和:%EC%Ey年 1364s # Vector 7: +.2:2020/01/01:+*:令和:%EC%Ey年 1364s # Vector 8: + 1364s # Vector 9: +: 1364s # Vector 10: +:: 1364s # Vector 11: +:200 1364s # Vector 12: +:2nonsense 1364s # Vector 13: +:2nonsense: 1364s # Vector 14: +:2: 1364s # Vector 15: +:2:: 1364s # Vector 16: +:2:2020-01/01:+*:令和:%EC%Ey年 1364s # Vector 17: +:2:2020nonsense/01/01:+*:令和:%EC%Ey年 1364s # Vector 18: +:2:2020:+*:令和:%EC%Ey年 1364s # Vector 19: +:2:18446744073709551615/01/01:+*:令和:%EC%Ey年 1364s # Vector 20: +:2:2020/01-01:+*:令和:%EC%Ey年 1364s # Vector 21: +:2:2020/01nonsense/01:+*:令和:%EC%Ey年 1364s # Vector 22: +:2:2020/01:+*:令和:%EC%Ey年 1364s # Vector 23: +:2:2020/00/01:+*:令和:%EC%Ey年 1364s # Vector 24: +:2:2020/13/01:+*:令和:%EC%Ey年 1364s # Vector 25: +:2:2020/01/00:+*:令和:%EC%Ey年 1364s # Vector 26: +:2:2020/01/32:+*:令和:%EC%Ey年 1364s # Vector 27: +:2:2020/01/01nonsense:+*:令和:%EC%Ey年 1364s # Vector 28: +:2:2020/01/01 1364s # Vector 29: +:2:2020/01/01: 1364s # Vector 30: +:2:2020/01/01:: 1364s # Vector 31: +:2:2020/01/01:2021-01-01:令和:%EC%Ey年 1364s # Vector 32: +:2:2020/01/01:+* 1364s # Vector 33: +:2:2020/01/01:+*: 1364s # Vector 34: +:2:2020/01/01:+*:: 1364s # Vector 35: +:2:2020/01/01:+*:令和 1364s # Vector 36: +:2:2020/01/01:+*:令和: 1364s # Vector 37: +:2:2020/01/01:+*:令和:; 1364s ok 58 /GDateTime/eras/parsing 1364s # End of eras tests 1364s # End of GDateTime tests 1364s # Start of GTimeZone tests 1364s ok 59 /GTimeZone/find-interval 1364s ok 60 /GTimeZone/adjust-time 1364s ok 61 /GTimeZone/no-header 1364s ok 62 /GTimeZone/no-header-identifier 1364s ok 63 /GTimeZone/posix-parse 1364s # Bug Reference: http://bugzilla.gnome.org/697715 1364s ok 64 /GTimeZone/floating-point 1364s # System time zone identifier: Etc/UTC 1364s ok 65 /GTimeZone/identifier 1364s # Vector 0: -158400 1364s # Vector 1: -10000 1364s # Vector 2: -3600 1364s # Vector 3: -61 1364s # Vector 4: -60 1364s # Vector 5: -59 1364s # Vector 6: 0 1364s # Vector 7: 59 1364s # Vector 8: 60 1364s # Vector 9: 61 1364s # Vector 10: 3600 1364s # Vector 11: 10000 1364s # Vector 12: 158400 1364s ok 66 /GTimeZone/new-offset 1364s # /GTimeZone/parse-rfc8536 summary: Test parsing time zone files in RFC 8536 version 3 format 1364s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2129 1364s ok 67 /GTimeZone/parse-rfc8536 1364s # /GTimeZone/caching summary: GTimeZone instances are cached 1364s ok 68 /GTimeZone/caching 1364s # End of GTimeZone tests 1364s TAP version 14 1364s # random seed: R02Sa5bfad5b4a8ec09d2068384d8f72763e 1364s 1..13 1364s # Start of live-g-file tests 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_88OAC3/live-g-file/prep_clean_structure/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/prep_clean_structure/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/prep_clean_structure/.dirs/system-config1:/tmp/test_live-g-file_88OAC3/live-g-file/prep_clean_structure/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/prep_clean_structure/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/prep_clean_structure/.dirs/system-data1:/tmp/test_live-g-file_88OAC3/live-g-file/prep_clean_structure/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/prep_clean_structure/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/prep_clean_structure/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_88OAC3/live-g-file/prep_clean_structure/.dirs/runtime 1364s # Cleaning target testing structure in '/tmp/test_live-g-file_88OAC3/testdir_live-g-file'... 1364s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1364s ok 1 /live-g-file/prep_clean_structure 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_88OAC3/live-g-file/create_structure/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/create_structure/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/create_structure/.dirs/system-config1:/tmp/test_live-g-file_88OAC3/live-g-file/create_structure/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/create_structure/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/create_structure/.dirs/system-data1:/tmp/test_live-g-file_88OAC3/live-g-file/create_structure/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/create_structure/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/create_structure/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_88OAC3/live-g-file/create_structure/.dirs/runtime 1364s # 1364s # Going to create testing structure in '/tmp/test_live-g-file_88OAC3/testdir_live-g-file'... 1364s # Creating directory 'dir1'... 1364s # Creating directory 'dir1/subdir'... 1364s # Creating directory 'dir2'... 1364s # Creating directory 'dir-target'... 1364s # Creating directory 'dir_no-access'... 1364s # Creating directory 'dir_no-write'... 1364s # Creating file 'target-file'... 1364s # Creating file 'normal_file'... 1364s # Creating symlink 'normal_file-symlink' --> 'normal_file'... 1364s # Creating file 'executable_file'... 1364s # Creating file 'private_file'... 1364s # Creating file 'normal_file2'... 1364s # Creating file 'readonly_file'... 1364s # Creating file 'UTF_příliš z'... 1364s # Creating directory 'dir_příliš z'... 1364s # Creating symlink 'lost_symlink' --> 'nowhere'... 1364s # Creating directory 'dir_hidden'... 1364s # Creating file 'dir_hidden/.a-hidden-file'... 1364s # Creating file 'dir_hidden/file-in-.hidden1'... 1364s # Creating file 'dir_hidden/file-in-.hidden2'... 1364s # Creating pattern file... 1364s # done. 1364s ok 2 /live-g-file/create_structure 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_initial_structure/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_initial_structure/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_initial_structure/.dirs/system-config1:/tmp/test_live-g-file_88OAC3/live-g-file/test_initial_structure/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_initial_structure/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_initial_structure/.dirs/system-data1:/tmp/test_live-g-file_88OAC3/live-g-file/test_initial_structure/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_initial_structure/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_initial_structure/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_88OAC3/live-g-file/test_initial_structure/.dirs/runtime 1364s # Testing sample structure in '/tmp/test_live-g-file_88OAC3/testdir_live-g-file'... 1364s # Testing file 'dir1'... 1364s # Testing file 'dir1/subdir'... 1364s # Testing file 'dir2'... 1364s # Testing file 'dir-target'... 1364s # Testing file 'dir_no-access'... 1364s # Testing file 'dir_no-write'... 1364s # Testing file 'target-file'... 1364s # Testing file 'normal_file'... 1364s # Testing file 'normal_file-symlink'... 1364s # Testing file 'executable_file'... 1364s # Testing file 'private_file'... 1364s # Testing file 'normal_file2'... 1364s # Testing file 'readonly_file'... 1364s # Testing file 'UTF_příliš z'... 1364s # Testing file 'dir_příliš z'... 1364s # Testing file 'lost_symlink'... 1364s # Testing file 'dir_hidden'... 1364s # Testing file 'dir_hidden/.a-hidden-file'... 1364s # Testing file 'dir_hidden/file-in-.hidden1'... 1364s # Testing file 'dir_hidden/file-in-.hidden2'... 1364s # Testing pattern file... 1364s # read 65536 bytes, total = 65536 of 65536. 1364s ok 3 /live-g-file/test_initial_structure 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_traverse_structure/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_traverse_structure/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_traverse_structure/.dirs/system-config1:/tmp/test_live-g-file_88OAC3/live-g-file/test_traverse_structure/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_traverse_structure/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_traverse_structure/.dirs/system-data1:/tmp/test_live-g-file_88OAC3/live-g-file/test_traverse_structure/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_traverse_structure/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_traverse_structure/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_88OAC3/live-g-file/test_traverse_structure/.dirs/runtime 1364s # Traversing through the sample structure in '/tmp/test_live-g-file_88OAC3/testdir_live-g-file'... 1364s # Found file dir1, relative to root: dir1 1364s # Found file subdir, relative to root: dir1/subdir 1364s # Found file dir2, relative to root: dir2 1364s # Found file dir-target, relative to root: dir-target 1364s # Found file dir_no-access, relative to root: dir_no-access 1364s # Found file dir_no-write, relative to root: dir_no-write 1364s # Found file target-file, relative to root: target-file 1364s # Found file normal_file, relative to root: normal_file 1364s # Found file normal_file-symlink, relative to root: normal_file-symlink 1364s # Found file executable_file, relative to root: executable_file 1364s # Found file private_file, relative to root: private_file 1364s # Found file normal_file2, relative to root: normal_file2 1364s # Found file readonly_file, relative to root: readonly_file 1364s # Found file UTF_příliš z, relative to root: UTF_příliš z 1364s # Found file dir_příliš z, relative to root: dir_příliš z 1364s # Found file lost_symlink, relative to root: lost_symlink 1364s # Found file dir_hidden, relative to root: dir_hidden 1364s # Found file .a-hidden-file, relative to root: dir_hidden/.a-hidden-file 1364s # Found file file-in-.hidden1, relative to root: dir_hidden/file-in-.hidden1 1364s # Found file .hidden, relative to root: dir_hidden/.hidden 1364s # Found file file-in-.hidden2, relative to root: dir_hidden/file-in-.hidden2 1364s # Found file pattern_file, relative to root: pattern_file 1364s ok 4 /live-g-file/test_traverse_structure 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_enumerate/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_enumerate/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_enumerate/.dirs/system-config1:/tmp/test_live-g-file_88OAC3/live-g-file/test_enumerate/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_enumerate/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_enumerate/.dirs/system-data1:/tmp/test_live-g-file_88OAC3/live-g-file/test_enumerate/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_enumerate/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_enumerate/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_88OAC3/live-g-file/test_enumerate/.dirs/runtime 1364s # Test enumerate '/tmp/test_live-g-file_88OAC3/testdir_live-g-file'... 1364s # Testing file 'dir_no-access' 1364s # Testing file 'normal_file' 1364s # Testing file 'normal_file-symlink' 1364s # Testing file 'not_exists' 1364s # Testing file 'not_exists' 1364s # Testing file 'not_exists2' 1364s # Testing file 'not_exists3' 1364s # Testing file 'not_exists4' 1364s # Testing file 'dir_no-execute/file' 1364s ok 5 /live-g-file/test_enumerate 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_open/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_open/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_open/.dirs/system-config1:/tmp/test_live-g-file_88OAC3/live-g-file/test_open/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_open/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_open/.dirs/system-data1:/tmp/test_live-g-file_88OAC3/live-g-file/test_open/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_open/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_open/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_88OAC3/live-g-file/test_open/.dirs/runtime 1364s # test_open: 'dir1' 1364s # test_open: 'dir_no-access' 1364s # test_open: 'target-file' 1364s # test_open: 'normal_file-symlink' 1364s # test_open: 'executable_file' 1364s # test_open: 'private_file' 1364s # test_open: 'readonly_file' 1364s # test_open: 'UTF_příliš z' 1364s # test_open: 'pattern_file' 1364s # test_open: 'not_exists' 1364s # test_open: 'dir_no-execute/file' 1364s # test_open: 'lost_symlink' 1364s ok 6 /live-g-file/test_open 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_create/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_create/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_create/.dirs/system-config1:/tmp/test_live-g-file_88OAC3/live-g-file/test_create/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_create/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_create/.dirs/system-data1:/tmp/test_live-g-file_88OAC3/live-g-file/test_create/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_create/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_create/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_88OAC3/live-g-file/test_create/.dirs/runtime 1364s # test_create: 'dir1' 1364s # error code 3 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir1”: Is a directory 1364s # test_create: 'dir1/subdir' 1364s # error code 3 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir1/subdir”: Is a directory 1364s # test_create: 'dir2' 1364s # error code 2 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir2”: File exists 1364s # test_create: 'normal_file' 1364s # error code 2 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/normal_file”: File exists 1364s # test_create: 'executable_file' 1364s # test_create: 'private_file' 1364s # test_create: 'normal_file2' 1364s # test_create: 'UTF_příliš z' 1364s # error code 2 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/UTF_příliš z”: File exists 1364s # test_create: 'dir_příliš z' 1364s # error code 2 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_příliš z”: File exists 1364s # test_create: 'pattern_file' 1364s # test_create: 'not_exists2' 1364s # test_create: 'not_exists3' 1364s # test_create: 'not_exists4' 1364s ok 7 /live-g-file/test_create 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_copy_move/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_copy_move/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_copy_move/.dirs/system-config1:/tmp/test_live-g-file_88OAC3/live-g-file/test_copy_move/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_copy_move/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_copy_move/.dirs/system-data1:/tmp/test_live-g-file_88OAC3/live-g-file/test_copy_move/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_copy_move/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_copy_move/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_88OAC3/live-g-file/test_copy_move/.dirs/runtime 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'dir1/subdir' --> 'dir-target' 1364s # res = 0, error code 25 = Can’t recursively copy directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'dir1/subdir' --> '.' 1364s # res = 0, error code 2 = Target file exists 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'dir1/subdir' --> 'target-file' 1364s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/target-file/dir1/subdir”: Not a directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'dir1/subdir' --> 'not_exists' 1364s # res = 0, error code 25 = Can’t recursively copy directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'dir1/subdir' --> 'dir_no-access' 1364s # res = 0, error code 25 = Can’t recursively copy directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'dir1/subdir' --> 'dir_no-write' 1364s # res = 0, error code 25 = Can’t recursively copy directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'dir2' --> 'dir-target' 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'dir-target' --> 'dir-target' 1364s # res = 0, error code 25 = Can’t recursively copy directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'dir-target' --> '.' 1364s # res = 0, error code 2 = Target file exists 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'dir-target' --> 'target-file' 1364s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/target-file/dir-target”: Not a directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'dir-target' --> 'not_exists' 1364s # res = 0, error code 25 = Can’t recursively copy directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'dir-target' --> 'dir_no-access' 1364s # res = 0, error code 25 = Can’t recursively copy directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'dir-target' --> 'dir_no-write' 1364s # res = 0, error code 25 = Can’t recursively copy directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'target-file' --> 'dir-target' 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'target-file' --> '.' 1364s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/target-file”: File exists 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'target-file' --> 'target-file' 1364s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/target-file/target-file”: Not a directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'target-file' --> 'not_exists' 1364s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists/target-file”: No such file or directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'target-file' --> 'dir_no-access' 1364s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-access/target-file”: Permission denied 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'target-file' --> 'dir_no-write' 1364s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-write/target-file”: Permission denied 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'normal_file-symlink' --> 'dir-target' 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'normal_file-symlink' --> '.' 1364s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_88OAC3/testdir_live-g-file/normal_file-symlink: File exists 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'normal_file-symlink' --> 'target-file' 1364s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_88OAC3/testdir_live-g-file/target-file/normal_file-symlink: Not a directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'normal_file-symlink' --> 'not_exists' 1364s ok - glib/live-g-file.test 1364s # Running test: glib/642026.test 1364s ok - glib/642026.test 1364s # Running test: glib/flags.test 1364s ok - glib/flags.test 1364s # Running test: glib/sleepy-stream.test 1364s ok - glib/sleepy-stream.test 1364s # Running test: glib/portal-support-snap-classic.test 1364s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists/normal_file-symlink: No such file or directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'normal_file-symlink' --> 'dir_no-access' 1364s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-access/normal_file-symlink: Permission denied 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'normal_file-symlink' --> 'dir_no-write' 1364s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-write/normal_file-symlink: Permission denied 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'executable_file' --> 'dir-target' 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'executable_file' --> 'dir-target' 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'executable_file' --> '.' 1364s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/executable_file”: File exists 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'executable_file' --> 'target-file' 1364s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/target-file/executable_file”: Not a directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'executable_file' --> 'not_exists' 1364s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists/executable_file”: No such file or directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'executable_file' --> 'dir_no-access' 1364s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-access/executable_file”: Permission denied 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'executable_file' --> 'dir_no-write' 1364s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-write/executable_file”: Permission denied 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'private_file' --> 'dir-target' 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'private_file' --> 'dir-target' 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'private_file' --> '.' 1364s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/private_file”: File exists 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'private_file' --> 'target-file' 1364s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/target-file/private_file”: Not a directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'private_file' --> 'not_exists' 1364s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists/private_file”: No such file or directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'private_file' --> 'dir_no-access' 1364s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-access/private_file”: Permission denied 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'private_file' --> 'dir_no-write' 1364s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-write/private_file”: Permission denied 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'normal_file2' --> 'dir-target' 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'normal_file2' --> 'dir-target' 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'normal_file2' --> '.' 1364s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/normal_file2”: File exists 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'normal_file2' --> 'target-file' 1364s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/target-file/normal_file2”: Not a directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'normal_file2' --> 'not_exists' 1364s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists/normal_file2”: No such file or directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'normal_file2' --> 'dir_no-access' 1364s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-access/normal_file2”: Permission denied 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'normal_file2' --> 'dir_no-write' 1364s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-write/normal_file2”: Permission denied 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'UTF_příliš z' --> '.' 1364s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/UTF_příliš z”: File exists 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'UTF_příliš z' --> 'target-file' 1364s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/target-file/UTF_příliš z”: Not a directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'UTF_příliš z' --> 'not_exists' 1364s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists/UTF_příliš z”: No such file or directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'UTF_příliš z' --> 'dir_no-access' 1364s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-access/UTF_příliš z”: Permission denied 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'UTF_příliš z' --> 'dir_no-write' 1364s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-write/UTF_příliš z”: Permission denied 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'pattern_file' --> 'dir-target' 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'pattern_file' --> '.' 1364s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/pattern_file”: File exists 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'pattern_file' --> 'target-file' 1364s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/target-file/pattern_file”: Not a directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'pattern_file' --> 'not_exists' 1364s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists/pattern_file”: No such file or directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'pattern_file' --> 'dir_no-access' 1364s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-access/pattern_file”: Permission denied 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'pattern_file' --> 'dir_no-write' 1364s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-write/pattern_file”: Permission denied 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'not_exists' --> 'dir-target' 1364s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists”: No such file or directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'not_exists' --> '.' 1364s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists”: No such file or directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'not_exists' --> 'target-file' 1364s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists”: No such file or directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'not_exists' --> 'not_exists' 1364s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists”: No such file or directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'not_exists' --> 'dir_no-access' 1364s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists”: No such file or directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'not_exists' --> 'dir_no-write' 1364s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists”: No such file or directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'not_exists' --> 'dir-target' 1364s # res = 0, error code 1 = Error moving file /tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists: No such file or directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'lost_symlink' --> 'dir-target' 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'lost_symlink' --> '.' 1364s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_88OAC3/testdir_live-g-file/lost_symlink: File exists 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'lost_symlink' --> 'target-file' 1364s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_88OAC3/testdir_live-g-file/target-file/lost_symlink: Not a directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'lost_symlink' --> 'not_exists' 1364s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists/lost_symlink: No such file or directory 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'lost_symlink' --> 'dir_no-access' 1364s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-access/lost_symlink: Permission denied 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s # do_copy_move: 'lost_symlink' --> 'dir_no-write' 1364s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-write/lost_symlink: Permission denied 1364s ok 8 /live-g-file/test_copy_move 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_delete/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_delete/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_delete/.dirs/system-config1:/tmp/test_live-g-file_88OAC3/live-g-file/test_delete/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_delete/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_delete/.dirs/system-data1:/tmp/test_live-g-file_88OAC3/live-g-file/test_delete/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_delete/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_delete/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_88OAC3/live-g-file/test_delete/.dirs/runtime 1364s # Deleting dir1, path = /tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir1 1364s # result = 0, error = Error removing file /tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir1: Directory not empty 1364s # Deleting dir2, path = /tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir2 1364s # result = 0, error = Error removing file /tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir2: No such file or directory 1364s # Deleting executable_file, path = /tmp/test_live-g-file_88OAC3/testdir_live-g-file/executable_file 1364s # result = 0, error = Error trashing file /tmp/test_live-g-file_88OAC3/testdir_live-g-file/executable_file: No such file or directory 1364s # Deleting readonly_file, path = /tmp/test_live-g-file_88OAC3/testdir_live-g-file/readonly_file 1364s # Deleting dir_příliš z, path = /tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_příliš z 1364s # Deleting not_exists, path = /tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists 1364s # result = 0, error = Error removing file /tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists: No such file or directory 1364s # Deleting not_exists, path = /tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists 1364s # result = 0, error = Error trashing file /tmp/test_live-g-file_88OAC3/testdir_live-g-file/not_exists: No such file or directory 1364s # Deleting dir_no-execute/file, path = /tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-execute/file 1364s # result = 0, error = Error removing file /tmp/test_live-g-file_88OAC3/testdir_live-g-file/dir_no-execute/file: No such file or directory 1364s # Deleting lost_symlink, path = /tmp/test_live-g-file_88OAC3/testdir_live-g-file/lost_symlink 1364s ok 9 /live-g-file/test_delete 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_make_directory_with_parents/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_make_directory_with_parents/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_make_directory_with_parents/.dirs/system-config1:/tmp/test_live-g-file_88OAC3/live-g-file/test_make_directory_with_parents/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_make_directory_with_parents/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_make_directory_with_parents/.dirs/system-data1:/tmp/test_live-g-file_88OAC3/live-g-file/test_make_directory_with_parents/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_make_directory_with_parents/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_make_directory_with_parents/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_88OAC3/live-g-file/test_make_directory_with_parents/.dirs/runtime 1364s # We do not have CAP_DAC_OVERRIDE or equivalent 1364s ok 10 /live-g-file/test_make_directory_with_parents 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_88OAC3/live-g-file/final_clean/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/final_clean/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/final_clean/.dirs/system-config1:/tmp/test_live-g-file_88OAC3/live-g-file/final_clean/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/final_clean/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/final_clean/.dirs/system-data1:/tmp/test_live-g-file_88OAC3/live-g-file/final_clean/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/final_clean/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/final_clean/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_88OAC3/live-g-file/final_clean/.dirs/runtime 1364s # Cleaning target testing structure in '/tmp/test_live-g-file_88OAC3/testdir_live-g-file'... 1364s # deleting 'dir1' 1364s # deleting 'subdir' 1364s # deleting 'dir-target' 1364s # deleting 'dir2' 1364s # deleting 'target-file' 1364s # deleting 'normal_file-symlink' 1364s # deleting 'pattern_file' 1364s # deleting 'executable_file' 1364s # deleting 'private_file' 1364s # deleting 'normal_file2' 1364s # deleting 'UTF_příliš z' 1364s # deleting 'lost_symlink' 1364s # deleting 'dir_no-access' 1364s # deleting 'dir_no-write' 1364s # deleting 'target-file' 1364s # deleting 'normal_file' 1364s # deleting 'normal_file-symlink' 1364s # deleting 'executable_file~' 1364s # deleting 'private_file' 1364s # deleting 'normal_file2~' 1364s # deleting 'a' 1364s # deleting 'UTF_příliš z' 1364s # deleting 'dir_hidden' 1364s # deleting '.a-hidden-file' 1364s # deleting 'file-in-.hidden1' 1364s # deleting '.hidden' 1364s # deleting 'file-in-.hidden2' 1364s # deleting 'pattern_file' 1364s # deleting 'executable_file' 1364s # deleting 'normal_file2' 1364s # deleting 'not_exists2' 1364s # deleting 'not_exists3' 1364s # deleting 'not_exists4' 1364s ok 11 /live-g-file/final_clean 1364s # Start of test_unix_is_mountpoint tests 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config1:/tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data1:/tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/runtime 1364s ok 12 /live-g-file/test_unix_is_mountpoint/sysroot 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config1:/tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data1:/tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_88OAC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/runtime 1364s ok 13 /live-g-file/test_unix_is_mountpoint/proc 1364s # End of test_unix_is_mountpoint tests 1364s # End of live-g-file tests 1364s TAP version 14 1364s # random seed: R02Sca5032aec1e8375284b3d27776dd7bad 1364s 1..1 1364s # Start of glib tests 1364s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1364s ok 1 /glib/642026 1364s # End of glib tests 1364s TAP version 14 1364s # random seed: R02S4cf4145afbecaedb8cc1309a4164f4a1 1364s 1..1 1364s # Start of gobject tests 1364s # Start of flags tests 1364s ok 1 /gobject/flags/validate 1364s # End of flags tests 1364s # End of gobject tests 1364s TAP version 14 1364s # random seed: R02Sa6f0fffda2e0e45e5897de40ab59948a 1364s 1..2 1364s # Start of filter-stream tests 1364s ok 1 /filter-stream/input 1364s ok 2 /filter-stream/async 1364s # End of filter-stream tests 1364s TAP version 14 1364s # random seed: R02S7f64ab7bf563b719683e73ef2075c306 1364s 1..3 1364s # Start of portal-support tests 1364s # Start of snap-classic tests 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/no-snapctl/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/no-snapctl/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/no-snapctl/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/no-snapctl/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/no-snapctl/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/no-snapctl/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/no-snapctl/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/no-snapctl/.dirs/runtime 1364s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/no-snapctl: No such file or directory 1364s ok 1 /portal-support/snap-classic/no-snapctl 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/none/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/none/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/none/.dirs/system-config1:/tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/none/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/none/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/none/.dirs/system-data1:/tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/none/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/none/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/none/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/none/.dirs/runtime 1364s # Created snap.yaml in /tmp/test_portal-support-snap-classic_EQSEC3/meta/snap.yaml 1364s # Created snapctl in /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/none/.dirs/runtime/snapctl 1364s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/none: No such file or directory 1364s ok 2 /portal-support/snap-classic/none 1364s ok - glib/portal-support-snap-classic.test 1364s # Running test: glib/gvariant.test 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/all/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/all/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/all/.dirs/system-config1:/tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/all/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/all/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/all/.dirs/system-data1:/tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/all/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/all/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/all/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/all/.dirs/runtime 1364s # Created snap.yaml in /tmp/test_portal-support-snap-classic_EQSEC3/meta/snap.yaml 1364s # Created snapctl in /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/all/.dirs/runtime/snapctl 1364s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_EQSEC3/portal-support/snap-classic/all: No such file or directory 1364s ok 3 /portal-support/snap-classic/all 1364s # End of snap-classic tests 1364s # End of portal-support tests 1364s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_EQSEC3: No such file or directory 1364s TAP version 14 1364s # random seed: R02S35d1342bb790b15c2d515f5bbb1429c4 1364s 1..69 1364s # Start of gvariant tests 1364s ok 1 /gvariant/type 1364s ok 2 /gvariant/typeinfo 1364s ok 3 /gvariant/string 1364s ok 4 /gvariant/utf8 1364s ok 5 /gvariant/utf8-new-strings 1364s ok 6 /gvariant/containers 1364s ok 7 /gvariant/format-strings 1364s ok 8 /gvariant/invalid-varargs 1364s ok 9 /gvariant/varargs 1364s ok 10 /gvariant/valist 1364s ok 11 /gvariant/builder-memory 1364s ok 12 /gvariant/hashing 1364s ok 13 /gvariant/byteswap 1364s ok 14 /gvariant/parser 1364s ok 15 /gvariant/parse-failures 1364s ok 16 /gvariant/parse-positional 1364s ok 17 /gvariant/floating 1364s ok 18 /gvariant/bytestring 1364s ok 19 /gvariant/lookup-value 1364s ok 20 /gvariant/lookup 1364s ok 21 /gvariant/compare 1364s ok 22 /gvariant/equal 1364s ok 23 /gvariant/fixed-array 1364s ok 24 /gvariant/check-format-string 1364s ok 25 /gvariant/checksum-basic 1364s ok 26 /gvariant/checksum-nested 1364s ok 27 /gvariant/gbytes 1364s ok 28 /gvariant/print-context 1364s ok 29 /gvariant/error-quark 1364s ok 30 /gvariant/stack-builder-init 1364s ok 31 /gvariant/stack-builder-init-static 1364s ok 32 /gvariant/stack-builder-init-unset 1364s ok 33 /gvariant/stack-dict-init 1364s ok 34 /gvariant/unaligned-construction 1364s # Start of type tests 1364s # Start of string-scan tests 1364s # Start of recursion tests 1364s ok 35 /gvariant/type/string-scan/recursion/tuple 1364s ok 36 /gvariant/type/string-scan/recursion/array 1364s # End of recursion tests 1364s # End of string-scan tests 1364s # End of type tests 1364s # Start of serialiser tests 1365s ok 37 /gvariant/serialiser/maybe 1365s ok 38 /gvariant/serialiser/array 1365s ok 39 /gvariant/serialiser/tuple 1365s ok 40 /gvariant/serialiser/variant 1365s ok 41 /gvariant/serialiser/strings 1366s # Executing: glib/gvariant.test 1366s ok 42 /gvariant/serialiser/byteswap 1366s # slow test /gvariant/serialiser/byteswap executed in 0.73 secs 1366s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1865 1366s # /gvariant/serialiser/children summary: Test that getting a child variant before and after serialisation of the parent works 1366s ok 43 /gvariant/serialiser/children 1366s # Start of byteswap tests 1366s ok 44 /gvariant/serialiser/byteswap/zero-sized 1366s # End of byteswap tests 1366s # Start of fuzz tests 1366s ok 45 /gvariant/serialiser/fuzz/1% 1366s ok 46 /gvariant/serialiser/fuzz/5% 1366s ok 47 /gvariant/serialiser/fuzz/9% 1366s ok 48 /gvariant/serialiser/fuzz/13% 1367s ok 49 /gvariant/serialiser/fuzz/17% 1367s # End of fuzz tests 1367s # End of serialiser tests 1367s # Start of utf8 tests 1367s # Start of subprocess tests 1367s # End of subprocess tests 1367s # End of utf8 tests 1367s # Start of varargs tests 1367s # Start of subprocess tests 1367s # End of subprocess tests 1367s # End of varargs tests 1367s # Start of byteswap tests 1367s # /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. 1367s ok 50 /gvariant/byteswap/non-normal-non-aligned 1367s # End of byteswap tests 1367s # Start of parser tests 1367s ok 51 /gvariant/parser/integer-bounds 1367s ok 52 /gvariant/parser/recursion 1367s # Start of recursion tests 1367s ok 53 /gvariant/parser/recursion/typedecls 1367s # /gvariant/parser/recursion/maybes summary: Test that nested maybes are handled correctly when parsing text-form variants 1367s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2782 1367s # Text form 0: @mmmu 5 1367s # Text form 1: @mmmas ['hello'] 1367s # Text form 2: @mmmu just just nothing 1367s # Text form 3: @mmmas just just nothing 1367s ok - glib/gvariant.test 1367s # Running test: glib/refcount.test 1367s ok - glib/refcount.test 1367s # Running test: glib/repository-search-paths.test 1367s ok - glib/repository-search-paths.test 1367s # Running test: glib/deprecated-properties.test 1367s ok - glib/deprecated-properties.test 1367s # Running test: glib/performance-threaded.test 1367s # Text form 4: @mmmu just nothing 1367s # Text form 5: @mmmas just nothing 1367s # Text form 6: @mmmu nothing 1367s # Text form 7: @mmmas nothing 1367s ok 54 /gvariant/parser/recursion/maybes 1367s # End of recursion tests 1367s # End of parser tests 1367s # Start of parse tests 1367s # Start of subprocess tests 1367s # End of subprocess tests 1367s # End of parse tests 1367s # Start of normal-checking tests 1367s ok 55 /gvariant/normal-checking/tuples 1367s ok 56 /gvariant/normal-checking/array-offsets 1367s ok 57 /gvariant/normal-checking/array-offsets2 1367s ok 58 /gvariant/normal-checking/tuple-offsets 1367s ok 59 /gvariant/normal-checking/tuple-offsets2 1367s ok 60 /gvariant/normal-checking/tuple-offsets3 1367s ok 61 /gvariant/normal-checking/tuple-offsets4 1367s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2840 1367s ok 62 /gvariant/normal-checking/tuple-offsets5 1367s ok 63 /gvariant/normal-checking/empty-object-path 1367s # Start of array-offsets tests 1367s ok 64 /gvariant/normal-checking/array-offsets/overlapped 1367s ok 65 /gvariant/normal-checking/array-offsets/minimal-sized 1367s # End of array-offsets tests 1367s # Start of tuple-offsets tests 1367s ok 66 /gvariant/normal-checking/tuple-offsets/minimal-sized 1367s # End of tuple-offsets tests 1367s # End of normal-checking tests 1367s # Start of recursion-limits tests 1367s ok 67 /gvariant/recursion-limits/variant-in-variant 1367s ok 68 /gvariant/recursion-limits/array-in-variant 1367s # End of recursion-limits tests 1367s # End of gvariant tests 1367s # Start of gvarianttype tests 1367s ok 69 /gvarianttype/hash 1367s # End of gvarianttype tests 1367s TAP version 14 1367s # random seed: R02S5c687cfee41768fb1d376104e3ee571a 1367s 1..4 1367s # Start of refcount tests 1367s ok 1 /refcount/grefcount 1367s ok 2 /refcount/gatomicrefcount 1367s # Start of grefcount tests 1367s ok 3 /refcount/grefcount/saturation 1367s # End of grefcount tests 1367s # Start of gatomicrefcount tests 1367s ok 4 /refcount/gatomicrefcount/saturation 1367s # End of gatomicrefcount tests 1367s # End of refcount tests 1367s TAP version 14 1367s # random seed: R02S412e05fed0209e553fa5c99069ac4556 1367s 1..4 1367s # Start of repository tests 1367s # Start of search-paths tests 1367s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_DNS8B3/repository/search-paths/default/.dirs/home 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_DNS8B3/repository/search-paths/default/.dirs/cache 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_DNS8B3/repository/search-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_DNS8B3/repository/search-paths/default/.dirs/system-config2 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_DNS8B3/repository/search-paths/default/.dirs/config 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_DNS8B3/repository/search-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_DNS8B3/repository/search-paths/default/.dirs/system-data2 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_DNS8B3/repository/search-paths/default/.dirs/data 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_DNS8B3/repository/search-paths/default/.dirs/state 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_DNS8B3/repository/search-paths/default/.dirs/runtime 1367s ok 1 /repository/search-paths/default 1367s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_DNS8B3/repository/search-paths/prepend/.dirs/home 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_DNS8B3/repository/search-paths/prepend/.dirs/cache 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_DNS8B3/repository/search-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_DNS8B3/repository/search-paths/prepend/.dirs/system-config2 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_DNS8B3/repository/search-paths/prepend/.dirs/config 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_DNS8B3/repository/search-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_DNS8B3/repository/search-paths/prepend/.dirs/system-data2 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_DNS8B3/repository/search-paths/prepend/.dirs/data 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_DNS8B3/repository/search-paths/prepend/.dirs/state 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_DNS8B3/repository/search-paths/prepend/.dirs/runtime 1367s ok 2 /repository/search-paths/prepend 1367s # End of search-paths tests 1367s # Start of library-paths tests 1367s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_DNS8B3/repository/library-paths/default/.dirs/home 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_DNS8B3/repository/library-paths/default/.dirs/cache 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_DNS8B3/repository/library-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_DNS8B3/repository/library-paths/default/.dirs/system-config2 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_DNS8B3/repository/library-paths/default/.dirs/config 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_DNS8B3/repository/library-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_DNS8B3/repository/library-paths/default/.dirs/system-data2 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_DNS8B3/repository/library-paths/default/.dirs/data 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_DNS8B3/repository/library-paths/default/.dirs/state 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_DNS8B3/repository/library-paths/default/.dirs/runtime 1367s ok 3 /repository/library-paths/default 1367s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_DNS8B3/repository/library-paths/prepend/.dirs/home 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_DNS8B3/repository/library-paths/prepend/.dirs/cache 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_DNS8B3/repository/library-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_DNS8B3/repository/library-paths/prepend/.dirs/system-config2 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_DNS8B3/repository/library-paths/prepend/.dirs/config 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_DNS8B3/repository/library-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_DNS8B3/repository/library-paths/prepend/.dirs/system-data2 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_DNS8B3/repository/library-paths/prepend/.dirs/data 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_DNS8B3/repository/library-paths/prepend/.dirs/state 1367s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_DNS8B3/repository/library-paths/prepend/.dirs/runtime 1367s ok 4 /repository/library-paths/prepend 1367s # End of library-paths tests 1367s # End of repository tests 1367s TAP version 14 1367s # random seed: R02S1fe1f5862c17ddfd3e2aef435d57d27c 1367s 1..3 1367s # Start of deprecated-properties tests 1367s ok 1 /deprecated-properties/construct 1367s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 1367s ok 2 /deprecated-properties/default-construct 1367s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 1367s ok 3 /deprecated-properties/set 1367s # End of deprecated-properties tests 1367s Running test "liststore-is-a" 1368s 15888 runs, min/avg/max = 0.061/0.063/0.173 ms 1368s Running test "liststore-interface-peek" 1369s 19519 runs, min/avg/max = 0.050/0.051/0.168 ms 1369s Running test "liststore-interface-peek-same" 1370s 19460 runs, min/avg/max = 0.050/0.051/0.189 ms 1370s ok - glib/performance-threaded.test 1370s # Running test: glib/appmonitor.test 1370s TAP version 14 1370s # random seed: R02S17b9ca20f4a57da465395b95d17425bf 1370s 1..1 1370s # Start of monitor tests 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appmonitor_PT9CC3/monitor/app/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appmonitor_PT9CC3/monitor/app/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appmonitor_PT9CC3/monitor/app/.dirs/system-config1:/tmp/test_appmonitor_PT9CC3/monitor/app/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appmonitor_PT9CC3/monitor/app/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appmonitor_PT9CC3/monitor/app/.dirs/system-data1:/tmp/test_appmonitor_PT9CC3/monitor/app/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appmonitor_PT9CC3/monitor/app/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_appmonitor_PT9CC3/monitor/app/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appmonitor_PT9CC3/monitor/app/.dirs/runtime 1370s # Using data directory: /tmp/test_appmonitor_PT9CC3/monitor/app/.dirs/data 1370s ok 1 /monitor/app 1370s # End of monitor tests 1370s ok - glib/appmonitor.test 1370s # Running test: glib/option-context.test 1370s TAP version 14 1370s # random seed: R02S0af46fa937c30242486c3ee4b7d5925c 1370s 1..59 1370s # Start of option tests 1370s ok 1 /option/basic 1370s ok 2 /option/translate 1370s ok 3 /option/strict-posix 1370s # Testing command: program --double abc 1370s # Testing command: program --double 2e309 1370s # Testing command: program --int abc 1370s # Testing command: program --int 99999999999999999999999999999999999 1370s # Testing command: program --int64 abc 1370s # Testing command: program --int64 99999999999999999999999999999999999 1370s ok 4 /option/parsing-errors 1370s # Start of help tests 1370s ok 5 /option/help/options 1370s ok 6 /option/help/no-options 1370s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=697652 1370s ok 7 /option/help/no-help-options 1370s # Usage: 1370s # /usr/libexec/installed-tests/glib/option-context [OPTION…] blabla 1370s # 1370s # Summary 1370s # 1370s # Help Options: 1370s # -h, --help Show help options 1370s # 1370s # Application Options: 1370s # -t, --test=Argument to use in test (deprecated) Test tests 1370s # --test2 Tests also 1370s # 1370s # Description 1370s # 1370s ok 8 /option/help/deprecated 1370s # End of help tests 1370s # Start of group tests 1370s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=504142 1370s ok 9 /option/group/captions 1370s ok 10 /option/group/main 1370s ok 11 /option/group/error-hook 1370s ok 12 /option/group/parse 1370s # Start of captions tests 1370s # Start of subprocess tests 1370s # End of subprocess tests 1370s # End of captions tests 1370s # End of group tests 1370s # Start of restoration tests 1370s ok 13 /option/restoration/int 1370s ok - glib/option-context.test 1370s # Running test: glib/testfilemonitor.test 1370s ok - glib/testfilemonitor.test 1370s # Running test: glib/io-channel.test 1370s ok 14 /option/restoration/string 1370s ok 15 /option/restoration/boolean 1370s # End of restoration tests 1370s # Start of arg tests 1370s ok 16 /option/arg/reverse-string 1370s ok 17 /option/arg/optional-int 1370s # Start of repetition tests 1370s ok 18 /option/arg/repetition/int 1370s ok 19 /option/arg/repetition/string 1370s ok 20 /option/arg/repetition/filename 1370s ok 21 /option/arg/repetition/double 1370s ok 22 /option/arg/repetition/locale 1370s ok 23 /option/arg/repetition/int64 1370s # End of repetition tests 1370s # Start of array tests 1370s ok 24 /option/arg/array/string 1370s # End of array tests 1370s # Start of callback tests 1370s ok 25 /option/arg/callback/string 1370s ok 26 /option/arg/callback/count 1370s ok 27 /option/arg/callback/optional1 1370s ok 28 /option/arg/callback/optional2 1370s ok 29 /option/arg/callback/optional3 1370s ok 30 /option/arg/callback/optional4 1370s ok 31 /option/arg/callback/optional5 1370s ok 32 /option/arg/callback/optional6 1370s ok 33 /option/arg/callback/optional7 1370s ok 34 /option/arg/callback/optional8 1370s # End of callback tests 1370s # Start of remaining tests 1370s ok 35 /option/arg/remaining/callback 1370s ok 36 /option/arg/remaining/callback-false 1370s ok 37 /option/arg/remaining/non-option 1370s ok 38 /option/arg/remaining/separator 1370s ok 39 /option/arg/remaining/array 1370s # End of remaining tests 1370s # Start of ignore tests 1370s ok 40 /option/arg/ignore/long 1370s ok 41 /option/arg/ignore/short 1370s ok 42 /option/arg/ignore/arg 1370s # End of ignore tests 1370s # Start of rest tests 1370s ok 43 /option/arg/rest/non-option 1370s ok 44 /option/arg/rest/separator1 1370s ok 45 /option/arg/rest/separator2 1370s ok 46 /option/arg/rest/separator3 1370s ok 47 /option/arg/rest/separator4 1370s ok 48 /option/arg/rest/separator5 1370s # End of rest tests 1370s # End of arg tests 1370s # Start of context tests 1370s ok 49 /option/context/add 1370s ok 50 /option/context/empty2 1370s ok 51 /option/context/empty3 1370s # End of context tests 1370s # Start of bug tests 1370s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=166609 1370s ok 52 /option/bug/unknown-short 1370s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=168008 1370s ok 53 /option/bug/lonely-dash 1370s ok 54 /option/bug/triple-dash 1370s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=305576 1370s ok 55 /option/bug/missing-arg 1370s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=577638 1370s ok 56 /option/bug/dash-arg 1370s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=729563 1370s ok 57 /option/bug/short-remaining 1370s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=646926 1370s ok 58 /option/bug/double-free 1370s ok 59 /option/bug/double-zero 1370s # End of bug tests 1370s # End of option tests 1370s TAP version 14 1370s # random seed: R02S0a9eb6202334b482534bf2c696820b52 1370s 1..8 1370s # Start of monitor tests 1370s ok 1 /monitor/atomic-replace # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1370s ok 2 /monitor/file-changes # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1370s ok 3 /monitor/dir-monitor # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1370s ok 4 /monitor/dir-not-existent # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1370s ok 5 /monitor/cross-dir-moves # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1370s ok 6 /monitor/finalize-in-callback # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1370s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1370s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1370s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1370s ok 7 /monitor/root # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1370s # Start of file tests 1370s ok 8 /monitor/file/hard-links # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1370s # End of file tests 1370s # End of monitor tests 1370s ok - glib/io-channel.test 1370s # Running test: glib/keyfile.test 1370s TAP version 14 1370s # random seed: R02Sa9a18402be98c5b59fb8c5534b6a5388 1370s 1..2 1370s # Start of io-channel tests 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_I4SCC3/io-channel/read-write/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_I4SCC3/io-channel/read-write/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_I4SCC3/io-channel/read-write/.dirs/system-config1:/tmp/test_io-channel_I4SCC3/io-channel/read-write/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_I4SCC3/io-channel/read-write/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_I4SCC3/io-channel/read-write/.dirs/system-data1:/tmp/test_io-channel_I4SCC3/io-channel/read-write/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_I4SCC3/io-channel/read-write/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_I4SCC3/io-channel/read-write/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_I4SCC3/io-channel/read-write/.dirs/runtime 1370s # Line one 1370s # 1370s # Line two 1370s # 1370s # Line three 1370s # 1370s # /* Hello */ 1370s # 1370s # \x1234\x567890\x6666 1370s # 1370s # read 62 bytes, wrote 62 bytes 1370s ok 1 /io-channel/read-write 1370s # Start of read-line tests 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_I4SCC3/io-channel/read-line/embedded-nuls/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_I4SCC3/io-channel/read-line/embedded-nuls/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_I4SCC3/io-channel/read-line/embedded-nuls/.dirs/system-config1:/tmp/test_io-channel_I4SCC3/io-channel/read-line/embedded-nuls/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_I4SCC3/io-channel/read-line/embedded-nuls/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_I4SCC3/io-channel/read-line/embedded-nuls/.dirs/system-data1:/tmp/test_io-channel_I4SCC3/io-channel/read-line/embedded-nuls/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_I4SCC3/io-channel/read-line/embedded-nuls/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_I4SCC3/io-channel/read-line/embedded-nuls/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_I4SCC3/io-channel/read-line/embedded-nuls/.dirs/runtime 1370s # /io-channel/read-line/embedded-nuls summary: Test that reading a line containing embedded nuls works when using non-standard line terminators. 1370s ok 2 /io-channel/read-line/embedded-nuls 1370s # End of read-line tests 1370s # End of io-channel tests 1370s TAP version 14 1370s # random seed: R02S4e992c9f2b053d517afee791224105d0 1370s 1..36 1370s # Start of keyfile tests 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/line-ends/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/line-ends/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/line-ends/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/line-ends/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/line-ends/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/line-ends/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/line-ends/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/line-ends/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/line-ends/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/line-ends/.dirs/runtime 1370s ok 1 /keyfile/line-ends 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/whitespace/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/whitespace/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/whitespace/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/whitespace/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/whitespace/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/whitespace/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/whitespace/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/whitespace/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/whitespace/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/whitespace/.dirs/runtime 1370s ok 2 /keyfile/whitespace 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/comments/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/comments/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/comments/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/comments/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/comments/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/comments/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/comments/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/comments/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/comments/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/comments/.dirs/runtime 1370s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 1370s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/104 1370s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 1370s ok 3 /keyfile/comments 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/listing/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/listing/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/listing/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/listing/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/listing/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/listing/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/listing/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/listing/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/listing/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/listing/.dirs/runtime 1370s ok 4 /keyfile/listing 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/string/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/string/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/string/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/string/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/string/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/string/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/string/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/string/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/string/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/string/.dirs/runtime 1370s ok 5 /keyfile/string 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/boolean/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/boolean/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/boolean/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/boolean/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/boolean/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/boolean/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/boolean/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/boolean/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/boolean/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/boolean/.dirs/runtime 1370s ok 6 /keyfile/boolean 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/number/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/number/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/number/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/number/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/number/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/number/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/number/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/number/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/number/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/number/.dirs/runtime 1370s ok 7 /keyfile/number 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/locale-string/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/locale-string/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/locale-string/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/locale-string/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/locale-string/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/locale-string/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/locale-string/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/locale-string/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/locale-string/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/locale-string/.dirs/runtime 1370s ok 8 /keyfile/locale-string 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/lists/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/lists/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/lists/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/lists/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/lists/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/lists/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/lists/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/lists/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/lists/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/lists/.dirs/runtime 1370s ok 9 /keyfile/lists 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/lists-set-get/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/lists-set-get/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/lists-set-get/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/lists-set-get/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/lists-set-get/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/lists-set-get/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/lists-set-get/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/lists-set-get/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/lists-set-get/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/lists-set-get/.dirs/runtime 1370s ok 10 /keyfile/lists-set-get 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/group-remove/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/group-remove/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/group-remove/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/group-remove/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/group-remove/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/group-remove/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/group-remove/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/group-remove/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/group-remove/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/group-remove/.dirs/runtime 1370s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165887 1370s ok 11 /keyfile/group-remove 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/key-remove/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/key-remove/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/key-remove/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/key-remove/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/key-remove/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/key-remove/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/key-remove/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/key-remove/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/key-remove/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/key-remove/.dirs/runtime 1370s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165980 1370s ok 12 /keyfile/key-remove 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/groups/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/groups/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/groups/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/groups/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/groups/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/groups/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/groups/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/groups/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/groups/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/groups/.dirs/runtime 1370s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=316309 1370s ok 13 /keyfile/groups 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-keys/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-keys/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-keys/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/duplicate-keys/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-keys/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-keys/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/duplicate-keys/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-keys/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-keys/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-keys/.dirs/runtime 1370s ok 14 /keyfile/duplicate-keys 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups/.dirs/runtime 1370s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=157877 1370s ok 15 /keyfile/duplicate-groups 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups2/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups2/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups2/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups2/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups2/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups2/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups2/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups2/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups2/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/duplicate-groups2/.dirs/runtime 1370s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=385910 1370s ok 16 /keyfile/duplicate-groups2 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/group-names/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/group-names/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/group-names/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/group-names/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/group-names/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/group-names/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/group-names/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/group-names/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/group-names/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/group-names/.dirs/runtime 1370s ok 17 /keyfile/group-names 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/key-names/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/key-names/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/key-names/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/key-names/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/key-names/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/key-names/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/key-names/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/key-names/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/key-names/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/key-names/.dirs/runtime 1370s ok 18 /keyfile/key-names 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/reload/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/reload/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/reload/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/reload/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/reload/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/reload/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/reload/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/reload/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/reload/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/reload/.dirs/runtime 1370s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=420686 1370s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2927 1370s ok 19 /keyfile/reload 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/int64/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/int64/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/int64/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/int64/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/int64/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/int64/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/int64/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/int64/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/int64/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/int64/.dirs/runtime 1370s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=614864 1370s ok 20 /keyfile/int64 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/load/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/load/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/load/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/load/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/load/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/load/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/load/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/load/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/load/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/load/.dirs/runtime 1370s ok 21 /keyfile/load 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/save/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/save/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/save/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/save/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/save/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/save/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/save/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/save/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/save/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/save/.dirs/runtime 1370s ok 22 /keyfile/save 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/load-fail/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/load-fail/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/load-fail/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/load-fail/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/load-fail/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/load-fail/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/load-fail/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/load-fail/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/load-fail/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/load-fail/.dirs/runtime 1370s ok 23 /keyfile/load-fail 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/non-utf8/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/non-utf8/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/non-utf8/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/non-utf8/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/non-utf8/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/non-utf8/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/non-utf8/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/non-utf8/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/non-utf8/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/non-utf8/.dirs/runtime 1370s ok 24 /keyfile/non-utf8 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/page-boundary/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/page-boundary/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/page-boundary/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/page-boundary/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/page-boundary/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/page-boundary/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/page-boundary/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/page-boundary/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/page-boundary/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/page-boundary/.dirs/runtime 1370s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640695 1370s ok 25 /keyfile/page-boundary 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/ref/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/ref/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/ref/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/ref/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/ref/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/ref/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/ref/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/ref/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/ref/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/ref/.dirs/runtime 1370s ok 26 /keyfile/ref 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/replace-value/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/replace-value/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/replace-value/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/replace-value/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/replace-value/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/replace-value/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/replace-value/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/replace-value/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/replace-value/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/replace-value/.dirs/runtime 1370s ok 27 /keyfile/replace-value 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/list-separator/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/list-separator/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/list-separator/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/list-separator/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/list-separator/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/list-separator/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/list-separator/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/list-separator/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/list-separator/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/list-separator/.dirs/runtime 1370s ok 28 /keyfile/list-separator 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/empty-string/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/empty-string/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/empty-string/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/empty-string/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/empty-string/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/empty-string/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/empty-string/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/empty-string/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/empty-string/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/empty-string/.dirs/runtime 1370s ok 29 /keyfile/empty-string 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/limbo/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/limbo/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/limbo/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/limbo/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/limbo/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/limbo/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/limbo/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/limbo/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/limbo/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/limbo/.dirs/runtime 1370s ok 30 /keyfile/limbo 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/utf8/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/utf8/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/utf8/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/utf8/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/utf8/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/utf8/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/utf8/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/utf8/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/utf8/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/utf8/.dirs/runtime 1370s # Testing invalid encoding ‘non-UTF-8’ 1370s # Testing invalid encoding ‘UTF’ 1370s # Testing invalid encoding ‘UTF-9’ 1370s ok 31 /keyfile/utf8 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/roundtrip/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/roundtrip/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/roundtrip/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/roundtrip/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/roundtrip/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/roundtrip/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/roundtrip/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/roundtrip/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/roundtrip/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/roundtrip/.dirs/runtime 1370s ok 32 /keyfile/roundtrip 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/bytes/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/bytes/.dirs/cache 1370s ok - glib/keyfile.test 1370s # Running test: glib/strvbuilder.test 1370s ok - glib/strvbuilder.test 1370s # Running test: glib/spawn-multithreaded.test 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/bytes/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/bytes/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/bytes/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/bytes/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/bytes/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/bytes/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/bytes/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/bytes/.dirs/runtime 1370s ok 33 /keyfile/bytes 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/get-locale/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/get-locale/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/get-locale/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/get-locale/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/get-locale/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/get-locale/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/get-locale/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/get-locale/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/get-locale/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/get-locale/.dirs/runtime 1370s ok 34 /keyfile/get-locale 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/free-when-not-last-ref/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/free-when-not-last-ref/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/free-when-not-last-ref/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/free-when-not-last-ref/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/free-when-not-last-ref/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/free-when-not-last-ref/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/free-when-not-last-ref/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/free-when-not-last-ref/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/free-when-not-last-ref/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/free-when-not-last-ref/.dirs/runtime 1370s ok 35 /keyfile/free-when-not-last-ref 1370s # Start of locale-string tests 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_IOUCC3/keyfile/locale-string/multiple-loads/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/locale-string/multiple-loads/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/locale-string/multiple-loads/.dirs/system-config1:/tmp/test_keyfile_IOUCC3/keyfile/locale-string/multiple-loads/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_IOUCC3/keyfile/locale-string/multiple-loads/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_IOUCC3/keyfile/locale-string/multiple-loads/.dirs/system-data1:/tmp/test_keyfile_IOUCC3/keyfile/locale-string/multiple-loads/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_IOUCC3/keyfile/locale-string/multiple-loads/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_IOUCC3/keyfile/locale-string/multiple-loads/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_IOUCC3/keyfile/locale-string/multiple-loads/.dirs/runtime 1370s # /keyfile/locale-string/multiple-loads summary: Check that loading with translations multiple times works 1370s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2361 1370s ok 36 /keyfile/locale-string/multiple-loads 1370s # End of locale-string tests 1370s # End of keyfile tests 1370s TAP version 14 1370s # random seed: R02Sba96f010c11aba4129e9a784adfc968b 1370s 1..7 1370s # Start of strvbuilder tests 1370s ok 1 /strvbuilder/empty 1370s ok 2 /strvbuilder/add 1370s ok 3 /strvbuilder/addv 1370s ok 4 /strvbuilder/add_many 1370s ok 5 /strvbuilder/take 1370s ok 6 /strvbuilder/ref 1370s ok 7 /strvbuilder/unref_to_strv 1370s # End of strvbuilder tests 1370s TAP version 14 1370s # random seed: R02S7199f9ada5ed70fe69c2765c1f9e5485 1370s 1..4 1370s # Start of gthread tests 1371s # Executing: glib/spawn-multithreaded.test 1371s # Child 34315 (ttl 1) exited, status 0 1372s # Child 34316 (ttl 2) exited, status 0 1372s ok 1 /gthread/spawn-childs 1372s # slow test /gthread/spawn-childs executed in 2.00 secs 1372s # Created pid: 34320 (ttl 1) 1372s # Created pid: 34321 (ttl 2) 1374s # Child 34320 (ttl 1) exited, status 0 1374s ok - glib/spawn-multithreaded.test 1374s # Child 34321 (ttl 2) exited, status 0 1374s ok 2 /gthread/spawn-childs-threads 1374s # slow test /gthread/spawn-childs-threads executed in 2.00 secs 1374s ok 3 /gthread/spawn-sync 1374s ok 4 /gthread/spawn-async 1374s # End of gthread tests 1374s TAP version 14 1374s # random seed: R02S547c667178375fde43f442bbde80923c 1374s 1..1 1374s # Start of credentials tests 1374s # GCredentials:linux-ucred:pid=34339,uid=1000,gid=1000 1374s # GCredentials:linux-ucred:pid=34339,uid=0,gid=1000 1374s ok 1 /credentials/basic 1374s # End of credentials tests 1374s # Running test: glib/credentials.test 1374s ok - glib/credentials.test 1374s # Running test: glib/gdbus-connection-flush.test 1374s ok - glib/gdbus-connection-flush.test 1374s # Running test: glib/signals-refcount3.test 1374s TAP version 14 1374s # random seed: R02S108aa079a90d80e554fcf12e38895286 1374s 1..2 1374s # Start of gdbus tests 1374s # Start of connection tests 1374s # Start of flush tests 1374s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/busy/.dirs/home 1374s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/busy/.dirs/cache 1374s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/busy/.dirs/system-config1:/tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/busy/.dirs/system-config2 1374s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/busy/.dirs/config 1374s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/busy/.dirs/system-data1:/tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/busy/.dirs/system-data2 1374s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/busy/.dirs/data 1374s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/busy/.dirs/state 1374s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/busy/.dirs/runtime 1374s ok 1 /gdbus/connection/flush/busy 1374s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/idle/.dirs/home 1374s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/idle/.dirs/cache 1374s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/idle/.dirs/system-config1:/tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/idle/.dirs/system-config2 1374s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/idle/.dirs/config 1374s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/idle/.dirs/system-data1:/tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/idle/.dirs/system-data2 1374s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/idle/.dirs/data 1374s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/idle/.dirs/state 1374s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_A2JCC3/gdbus/connection/flush/idle/.dirs/runtime 1374s ok 2 /gdbus/connection/flush/idle 1374s # End of flush tests 1374s # End of connection tests 1374s # End of gdbus tests 1374s TAP version 14 1374s # random seed: R02Sc367895d3c5fc58761b9cde7b9837466 1374s 1..1 1374s # Start of gobject tests 1374s # Start of refcount tests 1374s # init 0x2aa158a6490 1374s # 1374s # init 0x2aa1589e580 1374s # 1376s # Executing: glib/signals-refcount3.test 1379s # dispose 0x2aa158a6490! 1379s # 1379s # dispose 0x2aa1589e580! 1379s # 1379s ok 1 /gobject/refcount/signals 1379s # slow test /gobject/refcount/signals executed in 5.00 secs 1379s # End of refcount tests 1379s # End of gobject tests 1379s ok - glib/signals-refcount3.test 1379s # Running test: glib/memory-monitor-psi.test 1379s TAP version 14 1379s # random seed: R02S9b525a4a3c6e056a47f6797460dfc101 1379s 1..1 1379s # Start of memory-monitor-psi tests 1379s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_memory-monitor-psi_0AFCC3/memory-monitor-psi/receive-signal/.dirs/home 1379s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_memory-monitor-psi_0AFCC3/memory-monitor-psi/receive-signal/.dirs/cache 1379s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_memory-monitor-psi_0AFCC3/memory-monitor-psi/receive-signal/.dirs/system-config1:/tmp/test_memory-monitor-psi_0AFCC3/memory-monitor-psi/receive-signal/.dirs/system-config2 1379s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_memory-monitor-psi_0AFCC3/memory-monitor-psi/receive-signal/.dirs/config 1379s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_memory-monitor-psi_0AFCC3/memory-monitor-psi/receive-signal/.dirs/system-data1:/tmp/test_memory-monitor-psi_0AFCC3/memory-monitor-psi/receive-signal/.dirs/system-data2 1379s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_memory-monitor-psi_0AFCC3/memory-monitor-psi/receive-signal/.dirs/data 1379s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_memory-monitor-psi_0AFCC3/memory-monitor-psi/receive-signal/.dirs/state 1379s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_memory-monitor-psi_0AFCC3/memory-monitor-psi/receive-signal/.dirs/runtime 1379s ok - glib/memory-monitor-psi.test 1379s # Running test: glib/strfuncs.test 1379s # GLib-GIO-DEBUG: Write trigger some 70000 2000000 1379s # GLib-GIO-DEBUG: Write trigger some 100000 2000000 1379s # GLib-GIO-DEBUG: Write trigger full 100000 2000000 1379s # GLib-GIO-DEBUG: Send low memory signal with warning level 0 1379s # GLib-GIO-DEBUG: Send low memory signal with warning level 1 1379s # GLib-GIO-DEBUG: Send low memory signal with warning level 2 1379s ok 1 /memory-monitor-psi/receive-signal 1379s # End of memory-monitor-psi tests 1379s TAP version 14 1379s # random seed: R02S33e21f6e7698f1af8046763c14a9f133 1379s 1..51 1379s # Start of strfuncs tests 1379s ok 1 /strfuncs/ascii-strcasecmp 1379s ok 2 /strfuncs/ascii_strdown 1379s ok 3 /strfuncs/ascii_strdup 1379s ok 4 /strfuncs/ascii_strtod 1379s ok 5 /strfuncs/bounds-check 1379s ok 6 /strfuncs/has-prefix 1379s ok 7 /strfuncs/has-prefix-macro 1379s ok 8 /strfuncs/has-suffix 1379s ok 9 /strfuncs/has-suffix-macro 1379s ok 10 /strfuncs/memdup 1379s ok 11 /strfuncs/memdup2 1379s ok 12 /strfuncs/set_str 1379s ok 13 /strfuncs/stpcpy 1379s ok 14 /strfuncs/str_match_string 1379s ok 15 /strfuncs/str_tokenize_and_fold 1379s ok 16 /strfuncs/strcanon 1379s ok 17 /strfuncs/strchomp 1379s ok 18 /strfuncs/strchug 1379s ok 19 /strfuncs/strcompress-strescape 1379s ok 20 /strfuncs/strconcat 1379s ok 21 /strfuncs/strdelimit 1379s ok 22 /strfuncs/strdup 1379s ok 23 /strfuncs/strdup-printf 1379s ok 24 /strfuncs/strdupv 1379s ok 25 /strfuncs/strerror 1379s ok 26 /strfuncs/strip-context 1379s ok 27 /strfuncs/strjoin 1379s ok 28 /strfuncs/strjoinv 1379s ok 29 /strfuncs/strlcat 1379s ok 30 /strfuncs/strlcpy 1379s ok 31 /strfuncs/strncasecmp 1379s ok 32 /strfuncs/strndup 1379s ok 33 /strfuncs/strnfill 1379s ok 34 /strfuncs/strreverse 1379s ok 35 /strfuncs/strsignal 1379s ok 36 /strfuncs/strsplit 1379s ok 37 /strfuncs/strsplit-set 1379s ok 38 /strfuncs/strstr 1379s ok 39 /strfuncs/strtod 1379s ok 40 /strfuncs/strtoull-strtoll 1379s ok 41 /strfuncs/strup 1379s ok 42 /strfuncs/strv-contains 1379s ok 43 /strfuncs/strv-equal 1379s ok 44 /strfuncs/strv-length 1379s ok 45 /strfuncs/test-is-to-digit 1379s ok 46 /strfuncs/transliteration 1379s # /strfuncs/str-equal summary: Test macro and function forms of g_str_equal() 1379s ok 47 /strfuncs/str-equal 1379s ok 48 /strfuncs/str-is-ascii 1379s # Start of ascii-string-to-num tests 1379s ok 49 /strfuncs/ascii-string-to-num/pathological 1379s ok 50 /strfuncs/ascii-string-to-num/usual 1379s # End of ascii-string-to-num tests 1379s # Start of strdup tests 1379s ok 51 /strfuncs/strdup/inline 1379s # End of strdup tests 1379s # End of strfuncs tests 1379s TAP version 14 1379s # random seed: R02Sc4be06cb5214a67d0145cef613892935 1379s 1..84 1379s # Start of gsubprocess tests 1379s ok 1 /gsubprocess/noop 1379s ok 2 /gsubprocess/noop-all-to-null 1379s ok - glib/strfuncs.test 1379s # Running test: glib/gsubprocess.test 1379s ok 3 /gsubprocess/noop-no-wait 1379s ok 4 /gsubprocess/noop-stdin-inherit 1379s ok 5 /gsubprocess/search-path 1379s ok 6 /gsubprocess/search-path-from-envp 1381s # Executing: glib/gsubprocess.test 1382s ok 7 /gsubprocess/signal 1382s # slow test /gsubprocess/signal executed in 2.97 secs 1382s ok 8 /gsubprocess/exit1 1382s ok 9 /gsubprocess/echo1 1382s ok 10 /gsubprocess/echo-merged 1382s ok 11 /gsubprocess/cat-utf8 1383s ok 12 /gsubprocess/cat-eof 1383s # slow test /gsubprocess/cat-eof executed in 1.00 secs 1386s # Executing: glib/gsubprocess.test 1386s ok 13 /gsubprocess/multi1 1386s # slow test /gsubprocess/multi1 executed in 3.01 secs 1386s ok 14 /gsubprocess/communicate 1389s ok 15 /gsubprocess/terminate 1389s # slow test /gsubprocess/terminate executed in 2.99 secs 1389s ok 16 /gsubprocess/fail-initialization 1389s ok 17 /gsubprocess/env 1389s ok 18 /gsubprocess/cwd 1389s ok 19 /gsubprocess/launcher-close 1389s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1389s ok 20 /gsubprocess/stdout-file 1389s ok 21 /gsubprocess/stdout-fd 1389s ok 22 /gsubprocess/child-setup 1389s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1389s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1389s ok 23 /gsubprocess/launcher-environment 1389s # Start of exit1 tests 1389s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 1389s ok 24 /gsubprocess/exit1/cancel 1389s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 1389s ok 25 /gsubprocess/exit1/cancel_in_cb 1389s # End of exit1 tests 1389s # Start of communicate tests 1389s ok 26 /gsubprocess/communicate/cancelled 1389s ok 27 /gsubprocess/communicate/async 1389s ok 28 /gsubprocess/communicate/utf8 1389s # hello world 1389s ok 29 /gsubprocess/communicate/no-pipes 1389s ok 30 /gsubprocess/communicate/separate-stderr 1389s ok 31 /gsubprocess/communicate/stdout-only 1389s # hello world 1389s ok 32 /gsubprocess/communicate/stderr-only 1389s ok 33 /gsubprocess/communicate/stdout-silence 1389s ok 34 /gsubprocess/communicate/nothing 1389s # Start of async tests 1389s ok 35 /gsubprocess/communicate/async/cancelled 1389s # hello world 1389s ok 36 /gsubprocess/communicate/async/no-pipes 1389s ok 37 /gsubprocess/communicate/async/separate-stderr 1389s ok 38 /gsubprocess/communicate/async/stdout-only 1389s # hello world 1389s ok 39 /gsubprocess/communicate/async/stderr-only 1389s ok 40 /gsubprocess/communicate/async/stdout-silence 1389s # Start of cancelled tests 1389s ok 41 /gsubprocess/communicate/async/cancelled/no-pipes 1389s ok 42 /gsubprocess/communicate/async/cancelled/separate-stderr 1389s ok 43 /gsubprocess/communicate/async/cancelled/stdout-only 1389s ok 44 /gsubprocess/communicate/async/cancelled/stderr-only 1389s ok 45 /gsubprocess/communicate/async/cancelled/stdout-silence 1389s # End of cancelled tests 1389s # End of async tests 1389s # Start of utf8 tests 1389s ok 46 /gsubprocess/communicate/utf8/cancelled 1389s ok 47 /gsubprocess/communicate/utf8/async 1389s # hello world 1389s ok 48 /gsubprocess/communicate/utf8/no-pipes 1389s ok 49 /gsubprocess/communicate/utf8/separate-stderr 1389s ok 50 /gsubprocess/communicate/utf8/stdout-only 1389s # hello world 1389s ok 51 /gsubprocess/communicate/utf8/stderr-only 1389s ok 52 /gsubprocess/communicate/utf8/stdout-silence 1389s ok 53 /gsubprocess/communicate/utf8/invalid 1389s # Start of async tests 1389s ok 54 /gsubprocess/communicate/utf8/async/cancelled 1389s # hello world 1389s ok 55 /gsubprocess/communicate/utf8/async/no-pipes 1389s ok 56 /gsubprocess/communicate/utf8/async/separate-stderr 1389s ok 57 /gsubprocess/communicate/utf8/async/stdout-only 1389s # hello world 1389s ok 58 /gsubprocess/communicate/utf8/async/stderr-only 1389s ok 59 /gsubprocess/communicate/utf8/async/stdout-silence 1389s ok 60 /gsubprocess/communicate/utf8/async/invalid 1389s # Start of cancelled tests 1389s ok 61 /gsubprocess/communicate/utf8/async/cancelled/no-pipes 1389s ok 62 /gsubprocess/communicate/utf8/async/cancelled/separate-stderr 1389s ok 63 /gsubprocess/communicate/utf8/async/cancelled/stdout-only 1389s ok 64 /gsubprocess/communicate/utf8/async/cancelled/stderr-only 1389s ok 65 /gsubprocess/communicate/utf8/async/cancelled/stdout-silence 1389s # End of cancelled tests 1389s # End of async tests 1389s # Start of cancelled tests 1389s ok 66 /gsubprocess/communicate/utf8/cancelled/no-pipes 1389s ok 67 /gsubprocess/communicate/utf8/cancelled/separate-stderr 1389s ok 68 /gsubprocess/communicate/utf8/cancelled/stdout-only 1389s ok 69 /gsubprocess/communicate/utf8/cancelled/stderr-only 1389s ok 70 /gsubprocess/communicate/utf8/cancelled/stdout-silence 1389s # End of cancelled tests 1389s # End of utf8 tests 1389s # Start of cancelled tests 1389s ok 71 /gsubprocess/communicate/cancelled/no-pipes 1389s ok 72 /gsubprocess/communicate/cancelled/separate-stderr 1389s ok 73 /gsubprocess/communicate/cancelled/stdout-only 1389s ok 74 /gsubprocess/communicate/cancelled/stderr-only 1389s ok 75 /gsubprocess/communicate/cancelled/stdout-silence 1389s # End of cancelled tests 1389s # End of communicate tests 1389s # Start of env tests 1389s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1389s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1389s ok 76 /gsubprocess/env/inherit 1389s # End of env tests 1389s # Start of pass-fd tests 1389s ok 77 /gsubprocess/pass-fd/basic 1389s ok 78 /gsubprocess/pass-fd/empty-child-setup 1389s ok 79 /gsubprocess/pass-fd/inherit-fds 1389s # End of pass-fd tests 1389s # Start of fd-conflation tests 1389s ok 80 /gsubprocess/fd-conflation/basic 1389s ok 81 /gsubprocess/fd-conflation/empty-child-setup 1389s ok 82 /gsubprocess/fd-conflation/inherit-fds 1389s ok 83 /gsubprocess/fd-conflation/child-err-report-fd 1389s # End of fd-conflation tests 1389s # Start of exit-status tests 1389s # /gsubprocess/exit-status/trapped summary: Test that exit status is reported correctly for ptrace()d child processes 1389s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3433 1389s ok 84 /gsubprocess/exit-status/trapped 1389s # End of exit-status tests 1389s # End of gsubprocess tests 1389s ok - glib/gsubprocess.test 1389s # Running test: glib/buffered-output-stream.test 1389s TAP version 14 1389s # random seed: R02S5b3cba45827ce6498baa04158f8ee92b 1389s ok - glib/buffered-output-stream.test 1389s # Running test: glib/properties-refcount4.test 1389s ok - glib/properties-refcount4.test 1389s # Running test: glib/utils-c-11.test 1389s 1..5 1389s # Start of buffered-output-stream tests 1389s ok 1 /buffered-output-stream/write 1389s ok 2 /buffered-output-stream/grow 1389s ok 3 /buffered-output-stream/seek 1389s ok 4 /buffered-output-stream/truncate 1389s # End of buffered-output-stream tests 1389s # Start of filter-output-stream tests 1389s ok 5 /filter-output-stream/close 1389s # End of filter-output-stream tests 1389s TAP version 14 1389s # random seed: R02Se01cc69301b090b8d2a54e3b8400a47e 1389s 1..1 1389s # Start of gobject tests 1389s # Start of refcount tests 1389s ok 1 /gobject/refcount/properties-4 1389s # End of refcount tests 1389s # End of gobject tests 1389s TAP version 14 1389s # random seed: R02Sf4b1cef766e3a1b043d2a91039462035 1389s 1..41 1389s # Start of utils tests 1389s ok 1 /utils/language-names 1389s # Testing locale ‘en’ 1389s # Testing locale ‘sr@latin’ 1389s # Testing locale ‘fr_BE’ 1389s # Testing locale ‘sr_SR@latin’ 1389s # Testing locale ‘sr_SR@latin.UTF-8’ 1389s # Testing locale ‘sr@latin_invalid’ 1389s # Testing locale ‘sr.UTF-8@latin’ 1389s # Testing locale ‘sr.UTF-8_latin’ 1389s # Testing locale ‘sr.UTF-8@latin_invalid’ 1389s ok 2 /utils/locale-variants 1389s ok 3 /utils/version 1389s ok 4 /utils/appname 1389s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1389s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1389s ok 5 /utils/prgname-thread-safety 1389s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1389s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1389s ok 6 /utils/tmpdir 1389s ok 7 /utils/basic_bits 1389s ok 8 /utils/bits 1389s ok 9 /utils/swap 1389s ok 10 /utils/find-program 1389s ok 11 /utils/find-program-for-path 1389s ok 12 /utils/debug 1389s ok 13 /utils/codeset 1389s ok 14 /utils/codeset2 1389s ok 15 /utils/console-charset 1389s ok 16 /utils/gettext 1389s ok 17 /utils/username 1389s ok 18 /utils/realname 1389s ok 19 /utils/hostname 1389s ok 20 /utils/xdgdirs 1389s ok 21 /utils/specialdir 1389s # NAME: Ubuntu 1389s ok 22 /utils/os-info 1389s ok 23 /utils/clear-pointer 1389s ok 24 /utils/clear-pointer-cast 1389s ok 25 /utils/take-pointer 1389s ok 26 /utils/clear-source 1389s ok 27 /utils/misc-mem 1389s # /utils/aligned-mem summary: Aligned memory allocator 1389s # Alignment must not be zero 1389s # Alignment must be a power of two 1389s # Alignment must be a multiple of sizeof(void*) 1389s ok 28 /utils/aligned-mem 1389s # /utils/free-sized summary: Check that g_free_sized() works 1389s ok 29 /utils/free-sized 1389s ok 30 /utils/nullify 1389s ok 31 /utils/atexit 1389s ok 32 /utils/check-setuid 1389s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1389s ok 33 /utils/int-limits 1389s ok 34 /utils/clear-list 1389s ok 35 /utils/clear-slist 1389s ok 36 /utils/steal-handle-id 1389s # Start of specialdir tests 1389s ok - glib/utils-c-11.test 1389s # Running test: glib/threadtests.test 1389s ok 37 /utils/specialdir/desktop 1389s # End of specialdir tests 1389s # Start of clear-pointer tests 1389s ok 38 /utils/clear-pointer/side-effects 1389s # End of clear-pointer tests 1389s # Start of aligned-mem tests 1389s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1389s ok 39 /utils/aligned-mem/alignment 1389s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1389s ok 40 /utils/aligned-mem/zeroed 1389s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1389s ok 41 /utils/aligned-mem/free-sized 1389s # Start of subprocess tests 1389s # End of subprocess tests 1389s # End of aligned-mem tests 1389s # End of utils tests 1389s TAP version 14 1389s # random seed: R02Sed43ad4841d136bb528e136e1f207c09 1389s 1..5 1389s # Start of GObject tests 1389s ok 1 /GObject/threaded-object-init 1389s ok 2 /GObject/threaded-weak-ref 1389s # slow test /GObject/threaded-weak-ref executed in 0.76 secs 1389s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 1389s # /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 1390s ok 3 /GObject/threaded-toggle-notify 1390s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 1390s # Start of threaded-weak-ref tests 1390s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1390s # /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. 1390s ok 5 /GObject/threaded-weak-ref/on-finalization 1390s # End of threaded-weak-ref tests 1390s # End of GObject tests 1390s ok - glib/threadtests.test 1390s # Running test: glib/completion.test 1390s TAP version 14 1390s # random seed: R02S4ebc8dd67d5d5896668d202da2dcee45 1390s 1..1 1390s # Start of completion tests 1390s ok 1 /completion/test-completion 1390s # End of completion tests 1390s ok - glib/completion.test 1390s # Running test: glib/portal-support-snap.test 1390s TAP version 14 1390s # random seed: R02S101fcae7c724d2f5bcd72aaee65c7bd0 1390s 1..7 1390s # Start of portal-support tests 1390s # Start of snap tests 1390s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/no-snapctl/.dirs/home 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/no-snapctl/.dirs/cache 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap_CKRAC3/portal-support/snap/no-snapctl/.dirs/system-config2 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/no-snapctl/.dirs/config 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap_CKRAC3/portal-support/snap/no-snapctl/.dirs/system-data2 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/no-snapctl/.dirs/data 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/no-snapctl/.dirs/state 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/no-snapctl/.dirs/runtime 1390s # Created snap.yaml in /tmp/test_portal-support-snap_CKRAC3/meta/snap.yaml 1390s Unable to clean up temporary directory /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/no-snapctl: No such file or directory 1390s ok 1 /portal-support/snap/no-snapctl 1390s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/none/.dirs/home 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/none/.dirs/cache 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/none/.dirs/system-config1:/tmp/test_portal-support-snap_CKRAC3/portal-support/snap/none/.dirs/system-config2 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/none/.dirs/config 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/none/.dirs/system-data1:/tmp/test_portal-support-snap_CKRAC3/portal-support/snap/none/.dirs/system-data2 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/none/.dirs/data 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/none/.dirs/state 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/none/.dirs/runtime 1390s # Created snap.yaml in /tmp/test_portal-support-snap_CKRAC3/meta/snap.yaml 1390s # Created snapctl in /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/none/.dirs/runtime/snapctl 1390s Unable to clean up temporary directory /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/none: No such file or directory 1390s ok 2 /portal-support/snap/none 1390s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/all/.dirs/home 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/all/.dirs/cache 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/all/.dirs/system-config1:/tmp/test_portal-support-snap_CKRAC3/portal-support/snap/all/.dirs/system-config2 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/all/.dirs/config 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/all/.dirs/system-data1:/tmp/test_portal-support-snap_CKRAC3/portal-support/snap/all/.dirs/system-data2 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/all/.dirs/data 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/all/.dirs/state 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/all/.dirs/runtime 1390s # Created snap.yaml in /tmp/test_portal-support-snap_CKRAC3/meta/snap.yaml 1390s # Created snapctl in /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/all/.dirs/runtime/snapctl 1390s Unable to clean up temporary directory /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/all: No such file or directory 1390s ok 3 /portal-support/snap/all 1390s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/desktop-only/.dirs/home 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/desktop-only/.dirs/cache 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/desktop-only/.dirs/system-config1:/tmp/test_portal-support-snap_CKRAC3/portal-support/snap/desktop-only/.dirs/system-config2 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/desktop-only/.dirs/config 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/desktop-only/.dirs/system-data1:/tmp/test_portal-support-snap_CKRAC3/portal-support/snap/desktop-only/.dirs/system-data2 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/desktop-only/.dirs/data 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/desktop-only/.dirs/state 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/desktop-only/.dirs/runtime 1390s # Created snap.yaml in /tmp/test_portal-support-snap_CKRAC3/meta/snap.yaml 1390s # Created snapctl in /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/desktop-only/.dirs/runtime/snapctl 1390s Unable to clean up temporary directory /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/desktop-only: No such file or directory 1390s ok 4 /portal-support/snap/desktop-only 1390s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/network-only/.dirs/home 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/network-only/.dirs/cache 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/network-only/.dirs/system-config1:/tmp/test_portal-support-snap_CKRAC3/portal-support/snap/network-only/.dirs/system-config2 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/network-only/.dirs/config 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/network-only/.dirs/system-data1:/tmp/test_portal-support-snap_CKRAC3/portal-support/snap/network-only/.dirs/system-data2 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/network-only/.dirs/data 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/network-only/.dirs/state 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/network-only/.dirs/runtime 1390s # Created snap.yaml in /tmp/test_portal-support-snap_CKRAC3/meta/snap.yaml 1390s # Created snapctl in /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/network-only/.dirs/runtime/snapctl 1390s Unable to clean up temporary directory /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/network-only: No such file or directory 1390s ok 5 /portal-support/snap/network-only 1390s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/gsettings-only/.dirs/home 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/gsettings-only/.dirs/cache 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/gsettings-only/.dirs/system-config1:/tmp/test_portal-support-snap_CKRAC3/portal-support/snap/gsettings-only/.dirs/system-config2 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/gsettings-only/.dirs/config 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/gsettings-only/.dirs/system-data1:/tmp/test_portal-support-snap_CKRAC3/portal-support/snap/gsettings-only/.dirs/system-data2 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/gsettings-only/.dirs/data 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/gsettings-only/.dirs/state 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/gsettings-only/.dirs/runtime 1390s # Created snap.yaml in /tmp/test_portal-support-snap_CKRAC3/meta/snap.yaml 1390s # Created snapctl in /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/gsettings-only/.dirs/runtime/snapctl 1390s Unable to clean up temporary directory /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/gsettings-only: No such file or directory 1390s ok 6 /portal-support/snap/gsettings-only 1390s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/home 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/cache 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/system-config1:/tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/system-config2 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/config 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/system-data1:/tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/system-data2 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/data 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/state 1390s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/runtime 1390s # Created snap.yaml in /tmp/test_portal-support-snap_CKRAC3/meta/snap.yaml 1390s # Created snapctl in /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1390s # Created snapctl in /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1390s # Created snapctl in /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1390s # Created snapctl in /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1390s # Created snapctl in /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1390s # Created snapctl in /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1390s # Created snapctl in /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1390s Unable to clean up temporary directory /tmp/test_portal-support-snap_CKRAC3/portal-support/snap/updates-dynamically: No such file or directory 1390s ok 7 /portal-support/snap/updates-dynamically 1390s # End of snap tests 1390s # End of portal-support tests 1390s Unable to clean up temporary directory /tmp/test_portal-support-snap_CKRAC3: No such file or directory 1390s TAP version 14 1390s # random seed: R02Sbf3d0ca85b8238484f268640639cbcbd 1390s 1..8 1390s # Start of scanner tests 1390s ok 1 /scanner/warn 1390s ok 2 /scanner/error 1390s ok 3 /scanner/symbols 1390s ok 4 /scanner/tokens 1390s ok 5 /scanner/multiline-comment 1390s ok 6 /scanner/int-to-float 1390s ok 7 /scanner/fd-input 1390s # Start of fd-input tests 1390s ok 8 /scanner/fd-input/rewind 1390s # End of fd-input tests 1390s # End of scanner tests 1390s TAP version 14 1390s # random seed: R02S80b2a7aca1653dbdca12998a924de1d0 1390s 1..4 1390s # Start of filter-stream tests 1390s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=568394 1390s ok 1 /filter-stream/input 1390s ok 2 /filter-stream/output 1390s ok 3 /filter-stream/async-input 1390s ok 4 /filter-stream/async-output 1390s # End of filter-stream tests 1390s ok - glib/portal-support-snap.test 1390s # Running test: glib/scannerapi.test 1390s ok - glib/scannerapi.test 1390s # Running test: glib/filter-streams.test 1390s ok - glib/filter-streams.test 1390s # SUMMARY: total=330; passed=329; skipped=1; failed=0; user=183.8s; system=41.2s; maxrss=169420 1390s autopkgtest [19:21:58]: test installed-tests: -----------------------] 1391s autopkgtest [19:21:59]: test installed-tests: - - - - - - - - - - results - - - - - - - - - - 1391s installed-tests PASS 1391s autopkgtest [19:21:59]: test closure-refcount: preparing testbed 1392s Reading package lists... 1392s Building dependency tree... 1392s Reading state information... 1392s Solving dependencies... 1392s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1392s autopkgtest [19:22:00]: test closure-refcount: [----------------------- 1393s Running test: glib/closure-refcount.test 1393s TAP version 14 1393s # random seed: R02Se37e6b84159615592a261bb76d782797 1393s 1..1 1393s # Start of closure tests 1393s # Init 0x2aa04ffedb0 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from thread1 1393s # Yielding from main thread 1393s # Yielding from thread2 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from thread1 1393s # Yielding from thread2 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from thread1 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from thread2 1393s # Yielding from thread1 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from thread1 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from thread2 1393s # Yielding from main thread 1393s # Yielding from thread1 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from thread1 1393s # Yielding from thread2 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from thread1 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from thread2 1393s # Yielding from main thread 1393s # Yielding from thread1 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from thread1 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from thread2 1393s # Yielding from thread1 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from thread2 1393s # Yielding from main thread 1393s # Yielding from thread1 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from thread1 1393s # Yielding from main thread 1393s # Yielding from thread2 1393s # Yielding from main thread 1393s # Yielding from thread1 1393s # Yielding from main thread 1393s # Yielding from thread2 1393s # Yielding from main thread 1393s # Yielding from thread1 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from thread1 1393s # Yielding from main thread 1393s # Yielding from main thread 1393s # Yielding from thread2 1393s # Yielding from main thread 1393s # Yielding from main thread 1394s # Yielding from main thread 1394s # Yielding from main thread 1394s # Yielding from thread1 1394s # Yielding from main thread 1394s # Yielding from main thread 1394s # Yielding from thread2 1394s # Yielding from main thread 1394s # Yielding from thread2 1394s # Yielding from main thread 1394s # Yielding from thread1 1394s # Yielding from main thread 1394s # Yielding from main thread 1394s # Yielding from thread1 1394s # Yielding from main thread 1394s # Yielding from thread2 1394s # Yielding from main thread 1394s # Yielding from main thread 1394s # Yielding from thread1 1394s # Yielding from thread2 1394s # Yielding from main thread 1394s # Yielding from main thread 1394s # Yielding from thread1 1394s # Yielding from main thread 1394s # Yielding from main thread 1394s # Yielding from thread2 1394s # Yielding from main thread 1394s # Yielding from thread1 1394s # Yielding from main thread 1394s # Yielding from thread2 1394s # Yielding from main thread 1394s # Yielding from thread1 1394s # Yielding from main thread 1394s # Yielding from main thread 1394s # Yielding from thread2 1394s # Yielding from thread1 1394s # Yielding from main thread 1394s # Yielding from main thread 1394s # Yielding from thread1 1394s # Yielding from main thread 1394s # Yielding from thread2 1394s # Yielding from main thread 1394s # Yielding from thread1 1394s # Yielding from main thread 1394s # Yielding from thread2 1394s # Yielding from main thread 1394s # Yielding from main thread 1394s # Yielding from main thread 1394s # Yielding from main thread 1394s # Yielding from thread1 1394s # Yielding from main thread 1394s # Yielding from thread2 1394s # Yielding from main thread 1394s # Yielding from main thread 1394s # Yielding from main thread 1394s # Yielding from thread1 1394s # Yielding from main thread 1394s # Yielding from main thread 1394s # Yielding from thread1 1394s # Yielding from thread2 1394s # Yielding from main thread 1394s # Yielding from main thread 1394s # Yielding from thread2 1394s # Yielding from main thread 1394s # Yielding from thread1 1394s # Stopping 1394s # Stopped 1394s ok 1 /closure/refcount 1394s # slow test /closure/refcount executed in 1.79 secs 1394s # End of closure tests 1394s PASS: glib/closure-refcount.test 1394s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=3.6s; system=0.0s; maxrss=3572 1395s autopkgtest [19:22:03]: test closure-refcount: -----------------------] 1395s closure-refcount PASS 1395s autopkgtest [19:22:03]: test closure-refcount: - - - - - - - - - - results - - - - - - - - - - 1395s autopkgtest [19:22:03]: test debugcontroller: preparing testbed 1396s Reading package lists... 1396s Building dependency tree... 1396s Reading state information... 1396s Solving dependencies... 1396s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1397s autopkgtest [19:22:05]: test debugcontroller: [----------------------- 1397s Running test: glib/debugcontroller.test 1397s TAP version 14 1397s # random seed: R02Sa8e9c75e2d38443c650da7289fa07e68 1397s 1..3 1397s # Start of debug-controller tests 1397s # Start of dbus tests 1397s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 1397s # GLib-GIO-DEBUG: Debug output enabled 1397s # GLib-GIO-DEBUG: Debug output disabled 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s ok 1 /debug-controller/dbus/basic 1397s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s ok 2 /debug-controller/dbus/duplicate 1397s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1397s # GLib-GIO-DEBUG: Debug output enabled 1397s # GLib-GIO-DEBUG: Debug output disabled 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1397s ok 3 /debug-controller/dbus/properties 1397s # End of dbus tests 1397s # End of debug-controller tests 1397s PASS: glib/debugcontroller.test 1397s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=6280 1397s autopkgtest [19:22:05]: test debugcontroller: -----------------------] 1397s debugcontroller PASS 1397s autopkgtest [19:22:05]: test debugcontroller: - - - - - - - - - - results - - - - - - - - - - 1398s autopkgtest [19:22:06]: test gdbus-server-auth: preparing testbed 1398s Reading package lists... 1398s Building dependency tree... 1398s Reading state information... 1398s Solving dependencies... 1398s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1399s autopkgtest [19:22:07]: test gdbus-server-auth: [----------------------- 1399s Running test: glib/gdbus-server-auth.test 1399s TAP version 14 1399s # random seed: R02Sa983780bce01fcb5814c35a2a5668e53 1399s 1..9 1399s # Start of gdbus tests 1399s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/.dirs/home 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/.dirs/cache 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/.dirs/system-config2 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/.dirs/config 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/.dirs/system-data2 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/.dirs/data 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/.dirs/state 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/.dirs/runtime 1399s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_Q5P1B3/gdbus-server-auth-JWP1B3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1399s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_Q5P1B3/gdbus-server-auth-JWP1B3/dbus-MFTI0MYG 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40068 1399s ok 1 /gdbus/server-auth 1399s # Start of server-auth tests 1399s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/abstract/.dirs/home 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/abstract/.dirs/cache 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/abstract/.dirs/system-config2 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/abstract/.dirs/config 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/abstract/.dirs/system-data2 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/abstract/.dirs/data 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/abstract/.dirs/state 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/abstract/.dirs/runtime 1399s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_Q5P1B3/gdbus-server-auth-XUF1B3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1399s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_Q5P1B3/gdbus-server-auth-XUF1B3/dbus-1b5g3NgU 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40068 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1399s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40068 1399s ok 2 /gdbus/server-auth/abstract 1399s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/tcp/.dirs/home 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/tcp/.dirs/cache 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/tcp/.dirs/system-config2 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/tcp/.dirs/config 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/tcp/.dirs/system-data2 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/tcp/.dirs/data 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/tcp/.dirs/state 1399s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/tcp/.dirs/runtime 1399s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1399s # Connectable address: tcp:host=127.0.0.1,port=43421 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1399s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1399s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1399s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1399s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1399s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1399s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1400s ok 3 /gdbus/server-auth/tcp 1400s # slow test /gdbus/server-auth/tcp executed in 1.05 secs 1400s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/.dirs/home 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/.dirs/cache 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/.dirs/system-config2 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/.dirs/config 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/.dirs/system-data2 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/.dirs/data 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/.dirs/state 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/.dirs/runtime 1400s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_Q5P1B3/gdbus-server-auth-BKF0B3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1400s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_Q5P1B3/gdbus-server-auth-BKF0B3/dbus-vds9Ex1T 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40068 1400s ok 4 /gdbus/server-auth/anonymous 1400s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/.dirs/home 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/.dirs/cache 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/.dirs/system-config2 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/.dirs/config 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/.dirs/system-data2 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/.dirs/data 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/.dirs/state 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/.dirs/runtime 1400s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_Q5P1B3/gdbus-server-auth-TY5ZB3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1400s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_Q5P1B3/gdbus-server-auth-TY5ZB3/dbus-mk2hIAJT 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1400s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40068 1400s ok 5 /gdbus/server-auth/external 1400s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/.dirs/home 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/.dirs/cache 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/.dirs/system-config2 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/.dirs/config 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/.dirs/system-data2 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/.dirs/data 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/.dirs/state 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/.dirs/runtime 1400s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_Q5P1B3/gdbus-server-auth-258ZB3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1400s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_Q5P1B3/gdbus-server-auth-258ZB3/dbus-65GRUNKV 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40068 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40068 1400s ok 6 /gdbus/server-auth/sha1 1400s # Start of anonymous tests 1400s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/tcp/.dirs/home 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/tcp/.dirs/cache 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/tcp/.dirs/config 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/tcp/.dirs/data 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/tcp/.dirs/state 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1400s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1400s # Connectable address: tcp:host=127.0.0.1,port=41247 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1400s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1401s ok 7 /gdbus/server-auth/anonymous/tcp 1401s # slow test /gdbus/server-auth/anonymous/tcp executed in 1.00 secs 1401s # End of anonymous tests 1401s # Start of external tests 1401s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/require-same-user/.dirs/home 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/require-same-user/.dirs/cache 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/require-same-user/.dirs/config 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/require-same-user/.dirs/data 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/require-same-user/.dirs/state 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/external/require-same-user/.dirs/runtime 1401s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_Q5P1B3/gdbus-server-auth-43U4B3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1401s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_Q5P1B3/gdbus-server-auth-43U4B3/dbus-u71DPhoU 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40068 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40068,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40068 1401s ok 8 /gdbus/server-auth/external/require-same-user 1401s # End of external tests 1401s # Start of sha1 tests 1401s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/tcp/.dirs/home 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/tcp/.dirs/cache 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/tcp/.dirs/config 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/tcp/.dirs/data 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/tcp/.dirs/state 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_Q5P1B3/gdbus/server-auth/sha1/tcp/.dirs/runtime 1401s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1401s # Connectable address: tcp:host=127.0.0.1,port=33167 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1402s ok 9 /gdbus/server-auth/sha1/tcp 1402s # slow test /gdbus/server-auth/sha1/tcp executed in 1.00 secs 1402s # End of sha1 tests 1402s # End of server-auth tests 1402s # End of gdbus tests 1402s PASS: glib/gdbus-server-auth.test 1402s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=8336 1403s autopkgtest [19:22:11]: test gdbus-server-auth: -----------------------] 1403s autopkgtest [19:22:11]: test gdbus-server-auth: - - - - - - - - - - results - - - - - - - - - - 1403s gdbus-server-auth PASS 1403s autopkgtest [19:22:11]: test gdbus-threading: preparing testbed 1403s Reading package lists... 1404s Building dependency tree... 1404s Reading state information... 1404s Solving dependencies... 1404s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1404s autopkgtest [19:22:12]: test gdbus-threading: [----------------------- 1404s Running test: glib/gdbus-threading.test 1405s TAP version 14 1405s # random seed: R02Sa16bf2810e9e70a53bd0da1f6e0c599d 1405s 1..3 1405s # Start of gdbus tests 1405s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_IMC9B3/gdbus/delivery-in-thread/.dirs/home 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_IMC9B3/gdbus/delivery-in-thread/.dirs/cache 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_IMC9B3/gdbus/delivery-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_IMC9B3/gdbus/delivery-in-thread/.dirs/system-config2 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_IMC9B3/gdbus/delivery-in-thread/.dirs/config 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_IMC9B3/gdbus/delivery-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_IMC9B3/gdbus/delivery-in-thread/.dirs/system-data2 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_IMC9B3/gdbus/delivery-in-thread/.dirs/data 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_IMC9B3/gdbus/delivery-in-thread/.dirs/state 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_IMC9B3/gdbus/delivery-in-thread/.dirs/runtime 1405s ok 1 /gdbus/delivery-in-thread 1405s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_IMC9B3/gdbus/method-calls-in-thread/.dirs/home 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_IMC9B3/gdbus/method-calls-in-thread/.dirs/cache 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_IMC9B3/gdbus/method-calls-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_IMC9B3/gdbus/method-calls-in-thread/.dirs/system-config2 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_IMC9B3/gdbus/method-calls-in-thread/.dirs/config 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_IMC9B3/gdbus/method-calls-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_IMC9B3/gdbus/method-calls-in-thread/.dirs/system-data2 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_IMC9B3/gdbus/method-calls-in-thread/.dirs/data 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_IMC9B3/gdbus/method-calls-in-thread/.dirs/state 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_IMC9B3/gdbus/method-calls-in-thread/.dirs/runtime 1405s ok 2 /gdbus/method-calls-in-thread 1405s # slow test /gdbus/method-calls-in-thread executed in 0.81 secs 1405s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_IMC9B3/gdbus/threaded-singleton/.dirs/home 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_IMC9B3/gdbus/threaded-singleton/.dirs/cache 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_IMC9B3/gdbus/threaded-singleton/.dirs/system-config1:/tmp/test_gdbus-threading_IMC9B3/gdbus/threaded-singleton/.dirs/system-config2 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_IMC9B3/gdbus/threaded-singleton/.dirs/config 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_IMC9B3/gdbus/threaded-singleton/.dirs/system-data1:/tmp/test_gdbus-threading_IMC9B3/gdbus/threaded-singleton/.dirs/system-data2 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_IMC9B3/gdbus/threaded-singleton/.dirs/data 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_IMC9B3/gdbus/threaded-singleton/.dirs/state 1405s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_IMC9B3/gdbus/threaded-singleton/.dirs/runtime 1406s ok 3 /gdbus/threaded-singleton 1406s # End of gdbus tests 1406s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1406s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1406s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1406s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1406s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1406s PASS: glib/gdbus-threading.test 1406s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.1s; system=0.1s; maxrss=6176 1406s autopkgtest [19:22:14]: test gdbus-threading: -----------------------] 1406s gdbus-threading PASS 1406s autopkgtest [19:22:14]: test gdbus-threading: - - - - - - - - - - results - - - - - - - - - - 1407s autopkgtest [19:22:15]: test gmenumodel: preparing testbed 1407s Reading package lists... 1407s Building dependency tree... 1407s Reading state information... 1407s Solving dependencies... 1407s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1408s autopkgtest [19:22:16]: test gmenumodel: [----------------------- 1408s Running test: glib/gmenumodel.test 1408s TAP version 14 1408s # random seed: R02Sf69942d99e89f53fccabfbd411d8f942 1408s 1..15 1408s # Start of gmenu tests 1408s ok 1 /gmenu/equality 1409s ok 2 /gmenu/random 1409s # slow test /gmenu/random executed in 0.50 secs 1409s ok 3 /gmenu/attributes 1409s ok 4 /gmenu/links 1409s ok 5 /gmenu/mutable 1409s ok 6 /gmenu/convenience 1409s ok 7 /gmenu/menuitem 1409s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1409s ok 8 /gmenu/input-validation 1409s # Start of dbus tests 1410s ok 9 /gmenu/dbus/roundtrip 1410s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 1410s ok 10 /gmenu/dbus/subscriptions 1411s ok 11 /gmenu/dbus/threaded 1411s # Start of peer tests 1412s ok 12 /gmenu/dbus/peer/roundtrip 1412s # slow test /gmenu/dbus/peer/roundtrip executed in 1.01 secs 1412s ok 13 /gmenu/dbus/peer/subscriptions 1412s # End of peer tests 1412s # Start of export tests 1412s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1412s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1412s ok 14 /gmenu/dbus/export/error-handling 1412s # End of export tests 1412s # End of dbus tests 1412s # Start of attributes tests 1412s ok 15 /gmenu/attributes/iterate 1412s # End of attributes tests 1412s # End of gmenu tests 1412s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1412s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1412s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1412s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1412s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1412s PASS: glib/gmenumodel.test 1412s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=1.8s; system=0.1s; maxrss=54396 1413s autopkgtest [19:22:21]: test gmenumodel: -----------------------] 1413s autopkgtest [19:22:21]: test gmenumodel: - - - - - - - - - - results - - - - - - - - - - 1413s gmenumodel PASS 1413s autopkgtest [19:22:21]: test mainloop: preparing testbed 1414s Reading package lists... 1414s Building dependency tree... 1414s Reading state information... 1414s Solving dependencies... 1414s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1415s autopkgtest [19:22:23]: test mainloop: [----------------------- 1415s Running test: glib/mainloop.test 1415s TAP version 14 1415s # random seed: R02S5462a80d057b7598c482f6c9861ef9b2 1415s 1..47 1415s # Start of maincontext tests 1415s ok 1 /maincontext/basic 1415s # Add same-priority sources: 13 1415s # Find each source: 1 1415s # Remove in random order: 9 1415s ok 2 /maincontext/nsources_same_priority 1415s # Add different-priority sources: 19 1415s # Find each source: 1 1415s # Remove in random order: 15 1415s ok 3 /maincontext/nsources_different_priority 1415s # Add sources from threads: 95 1415s # Remove sources from threads: 22 1415s ok 4 /maincontext/nsources_threadpool 1415s ok 5 /maincontext/source_finalization 1415s # /maincontext/idle-once summary: Test g_idle_add_once() works 1415s ok 6 /maincontext/idle-once 1415s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1415s ok 7 /maincontext/timeout-once 1415s # /maincontext/context-ref-in-source-callbackfuncs-unref summary: Tests if calling GSource API in GSourceCallbackFuncs.unref does not deadlock attempting to retrieve the relevant GMainContext. 1415s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 1415s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 1415s # Start of source_finalization_from_source tests 1415s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1415s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1415s ok 9 /maincontext/source_finalization_from_source/0 1415s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1415s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1415s ok 10 /maincontext/source_finalization_from_source/1 1415s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1415s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1415s ok 11 /maincontext/source_finalization_from_source/2 1415s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1415s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1415s ok 12 /maincontext/source_finalization_from_source/3 1415s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1415s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1415s ok 13 /maincontext/source_finalization_from_source/4 1415s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1415s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1415s ok 14 /maincontext/source_finalization_from_source/5 1415s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1415s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1415s ok 15 /maincontext/source_finalization_from_source/6 1415s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1415s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1415s ok 16 /maincontext/source_finalization_from_source/7 1415s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1415s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1415s ok 17 /maincontext/source_finalization_from_source/8 1415s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1415s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1415s ok 18 /maincontext/source_finalization_from_source/9 1415s # End of source_finalization_from_source tests 1415s # Start of source_finalization_from_dispatch tests 1415s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1415s ok 19 /maincontext/source_finalization_from_dispatch/0 1415s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1415s ok 20 /maincontext/source_finalization_from_dispatch/1 1415s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1415s ok 21 /maincontext/source_finalization_from_dispatch/2 1415s # End of source_finalization_from_dispatch tests 1415s # End of maincontext tests 1415s # Start of mainloop tests 1415s ok 22 /mainloop/basic 1415s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 1415s ok 24 /mainloop/priorities 1415s ok 25 /mainloop/invoke 1415s # slow test /mainloop/invoke executed in 0.50 secs 1417s ok 26 /mainloop/child_sources 1417s # slow test /mainloop/child_sources executed in 1.19 secs 1419s ok 27 /mainloop/recursive_child_sources 1419s # slow test /mainloop/recursive_child_sources executed in 2.18 secs 1419s ok 28 /mainloop/recursive_loop_child_sources 1419s ok 29 /mainloop/swapping_child_sources 1419s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1419s ok 30 /mainloop/blocked_child_sources 1420s Executing: glib/mainloop.test 1420s ok 31 /mainloop/source_time 1420s # slow test /mainloop/source_time executed in 1.00 secs 1420s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1420s ok 32 /mainloop/overflow 1420s ok 33 /mainloop/ready-time 1420s # slow test /mainloop/ready-time executed in 0.50 secs 1420s ok 34 /mainloop/wakeup 1420s ok 35 /mainloop/remove-invalid 1420s ok 36 /mainloop/unref-while-pending 1421s ok 37 /mainloop/unix-fd 1421s ok 38 /mainloop/unix-fd-source 1421s ok 39 /mainloop/source-unix-fd-api 1421s ok 40 /mainloop/wait 1421s ok 41 /mainloop/unix-file-poll 1421s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1421s ok 42 /mainloop/unix-fd-priority 1421s ok 43 /mainloop/nfds 1421s ok 44 /mainloop/steal-fd 1422s ok 45 /mainloop/simultaneous-source-context-destruction 1422s # slow test /mainloop/simultaneous-source-context-destruction executed in 0.63 secs 1422s # Start of ownerless-polling tests 1422s ok 46 /mainloop/ownerless-polling/attach-first 1422s ok 47 /mainloop/ownerless-polling/pop-first 1422s # End of ownerless-polling tests 1422s # End of mainloop tests 1422s PASS: glib/mainloop.test 1422s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.4s; system=1.0s; maxrss=17092 1422s autopkgtest [19:22:30]: test mainloop: -----------------------] 1422s mainloop PASS 1422s autopkgtest [19:22:30]: test mainloop: - - - - - - - - - - results - - - - - - - - - - 1423s autopkgtest [19:22:31]: test memory-monitor-dbus: preparing testbed 1423s Reading package lists... 1423s Building dependency tree... 1423s Reading state information... 1423s Solving dependencies... 1423s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1424s autopkgtest [19:22:32]: test memory-monitor-dbus: [----------------------- 1424s Running test: glib/memory-monitor-dbus.test 1424s TAP version 13 1424s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal 1424s # Received memory warning signal, level 1424s # Received memory warning signal, level 1424s # Received memory warning signal, level 1424s 1..1 1424s PASS: glib/memory-monitor-dbus.test 1424s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.1s; system=0.0s; maxrss=30484 1425s autopkgtest [19:22:33]: test memory-monitor-dbus: -----------------------] 1425s memory-monitor-dbus PASS 1425s autopkgtest [19:22:33]: test memory-monitor-dbus: - - - - - - - - - - results - - - - - - - - - - 1425s autopkgtest [19:22:33]: test socket: preparing testbed 1425s Reading package lists... 1426s Building dependency tree... 1426s Reading state information... 1426s Solving dependencies... 1426s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1426s autopkgtest [19:22:34]: test socket: [----------------------- 1427s Running test: glib/socket.test 1427s TAP version 14 1427s # random seed: R02Sf3f895aa87551280077b07ef69700a61 1427s 1..30 1427s # Start of socket tests 1428s ok 1 /socket/ipv4_sync 1428s # slow test /socket/ipv4_sync executed in 1.00 secs 1429s ok 2 /socket/ipv4_async 1429s # slow test /socket/ipv4_async executed in 1.00 secs 1429s ok 3 /socket/ipv6_sync 1429s ok 4 /socket/ipv6_async 1429s ok 5 /socket/ipv6_v4mapped 1430s ok 6 /socket/close_graceful 1430s # slow test /socket/close_graceful executed in 1.00 secs 1430s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1430s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1430s ok 8 /socket/fd_reuse 1430s ok 9 /socket/address 1430s ok 10 /socket/unix-from-fd 1430s ok 11 /socket/unix-connection 1430s ok 12 /socket/unix-connection-ancillary-data 1430s ok 13 /socket/source-postmortem 1430s ok 14 /socket/read_write 1430s ok 15 /socket/read_writev 1430s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1430s ok 16 /socket/receive_bytes 1430s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1430s ok 17 /socket/receive_bytes_from 1430s # Start of ipv4_sync tests 1430s ok 18 /socket/ipv4_sync/datagram 1430s # Start of datagram tests 1431s ok 19 /socket/ipv4_sync/datagram/timeouts 1431s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1431s # End of datagram tests 1431s # End of ipv4_sync tests 1431s # Start of ipv6_sync tests 1431s ok 20 /socket/ipv6_sync/datagram 1431s # Start of datagram tests 1432s Executing: glib/socket.test 1432s ok 21 /socket/ipv6_sync/datagram/timeouts 1432s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1432s # End of datagram tests 1432s # End of ipv6_sync tests 1432s # Start of reuse tests 1432s ok 22 /socket/reuse/tcp 1432s ok 23 /socket/reuse/udp 1432s # End of reuse tests 1432s # Start of get_available tests 1432s ok 24 /socket/get_available/datagram 1432s ok 25 /socket/get_available/stream 1432s # End of get_available tests 1432s # Start of credentials tests 1432s # Supported on this OS: GCredentials:linux-ucred:pid=0 1432s ok 26 /socket/credentials/tcp_client 1432s # Supported on this OS: GCredentials:linux-ucred:pid=0 1432s ok 27 /socket/credentials/tcp_server 1432s # Supported on this OS: GCredentials:linux-ucred:pid=66007,uid=1000,gid=1000 1432s ok 28 /socket/credentials/unix_socketpair 1432s # End of credentials tests 1432s # Start of accept tests 1432s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1432s ok 29 /socket/accept/cancelled 1432s # End of accept tests 1432s # Start of connect tests 1432s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1432s ok 30 /socket/connect/cancelled 1432s # End of connect tests 1432s # End of socket tests 1432s PASS: glib/socket.test 1432s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=5644 1432s autopkgtest [19:22:40]: test socket: -----------------------] 1433s autopkgtest [19:22:41]: test socket: - - - - - - - - - - results - - - - - - - - - - 1433s socket PASS 1433s autopkgtest [19:22:41]: test testfilemonitor: preparing testbed 1433s Reading package lists... 1433s Building dependency tree... 1433s Reading state information... 1433s Solving dependencies... 1433s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1434s autopkgtest [19:22:42]: test testfilemonitor: [----------------------- 1434s Running test: glib/testfilemonitor.test 1434s TAP version 14 1434s # random seed: R02S5297b479e5e755792d6b1fd25381cf10 1434s 1..8 1434s # Start of monitor tests 1434s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1434s # Using temporary directory: /tmp/gio-test-testfilemonitor_9RH0B3 1434s # Using GFileMonitor GInotifyFileMonitor 1436s ok 1 /monitor/atomic-replace 1436s # slow test /monitor/atomic-replace executed in 2.00 secs 1436s # Using temporary directory: /tmp/gio-test-testfilemonitor_2K6ZB3 1436s # Using GFileMonitor GInotifyFileMonitor 1439s ok 2 /monitor/file-changes 1439s # slow test /monitor/file-changes executed in 2.50 secs 1439s # Using temporary directory: /tmp/gio-test-testfilemonitor_9DXAC3 1439s # Using GFileMonitor GInotifyFileMonitor 1440s Executing: glib/testfilemonitor.test 1442s ok 3 /monitor/dir-monitor 1442s # slow test /monitor/dir-monitor executed in 3.50 secs 1442s # Using temporary directory: /tmp/gio-test-testfilemonitor_YPA0B3 1442s # Using GFileMonitor GInotifyFileMonitor 1445s Executing: glib/testfilemonitor.test 1450s Executing: glib/testfilemonitor.test 1455s Executing: glib/testfilemonitor.test 1460s Executing: glib/testfilemonitor.test 1465s Executing: glib/testfilemonitor.test 1467s ok 4 /monitor/dir-not-existent 1467s # slow test /monitor/dir-not-existent executed in 25.02 secs 1467s # Using temporary directory: /tmp/gio-test-testfilemonitor_VWSZB3 1467s # Using GFileMonitor 0 GInotifyFileMonitor 1467s # Using GFileMonitor 1 GInotifyFileMonitor 1469s ok 5 /monitor/cross-dir-moves 1469s # slow test /monitor/cross-dir-moves executed in 2.00 secs 1469s # Using temporary directory: /tmp/gio-test-testfilemonitor_RCHZB3 1469s # /monitor/finalize-in-callback summary: Test that finalization of a GFileMonitor in one of its callbacks doesn’t cause a deadlock. 1469s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1941 1469s ok 6 /monitor/finalize-in-callback 1469s # Using temporary directory: /tmp/gio-test-testfilemonitor_6QGZB3 1469s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1469s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1469s ok 7 /monitor/root 1469s # Start of file tests 1469s # Using temporary directory: /tmp/gio-test-testfilemonitor_XEGZB3 1469s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755721 1469s # Running with hard link tests 1469s # Using GFileMonitor GInotifyFileMonitor 1470s Executing: glib/testfilemonitor.test 1473s # Event 0 at expected index 7 skipped because it is marked as optional 1473s # Event 2 at expected index 11 skipped because it is marked as optional 1473s ok 8 /monitor/file/hard-links 1473s # slow test /monitor/file/hard-links executed in 3.50 secs 1473s # End of file tests 1473s # End of monitor tests 1473s PASS: glib/testfilemonitor.test 1473s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=5928 1473s autopkgtest [19:23:21]: test testfilemonitor: -----------------------] 1473s autopkgtest [19:23:21]: test testfilemonitor: - - - - - - - - - - results - - - - - - - - - - 1473s testfilemonitor PASS 1474s autopkgtest [19:23:22]: test thread-pool-slow: preparing testbed 1474s Reading package lists... 1474s Building dependency tree... 1474s Reading state information... 1474s Solving dependencies... 1474s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1475s autopkgtest [19:23:23]: test thread-pool-slow: [----------------------- 1475s Running test: glib/thread-pool-slow.test 1475s TAP version 14 1475s # random seed: R02Sfdbf90988810850938b82c3e419d929d 1475s 1..7 1475s # Start of threadpool tests 1475s ok 1 /threadpool/functions 1476s ok 2 /threadpool/stop-unused 1476s # slow test /threadpool/stop-unused executed in 0.50 secs 1476s ok 3 /threadpool/pools 1476s # [unsorted] ===> pushed new thread with id:34, number of threads:1, unprocessed:0 1476s # [unsorted] ===> pushed new thread with id:90, number of threads:2, unprocessed:1 1476s # [unsorted] ===> pushed new thread with id:9, number of threads:3, unprocessed:1 1476s # [unsorted] ===> pushed new thread with id:2, number of threads:4, unprocessed:1 1476s # [unsorted] ===> pushed new thread with id:7, number of threads:5, unprocessed:1 1476s # [unsorted] ===> pushed new thread with id:27, number of threads:6, unprocessed:1 1476s # [unsorted] ===> pushed new thread with id:31, number of threads:7, unprocessed:1 1476s # [unsorted] ===> pushed new thread with id:7, number of threads:8, unprocessed:1 1476s # [unsorted] ===> pushed new thread with id:32, number of threads:9, unprocessed:1 1476s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:1 1476s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:2 1476s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:3 1476s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:4 1476s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:5 1476s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:6 1476s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:7 1476s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:8 1476s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:9 1476s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:10 1476s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:11 1476s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:12 1476s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:13 1476s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:14 1476s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:15 1476s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:16 1476s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:17 1476s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:18 1476s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:19 1476s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:20 1476s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:21 1476s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:22 1476s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:23 1476s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:24 1476s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:25 1476s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:26 1476s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:27 1476s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:28 1476s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:29 1476s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:30 1476s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:31 1476s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:32 1476s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:33 1476s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:34 1476s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:35 1476s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:36 1476s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:37 1476s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:38 1476s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:39 1476s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:40 1476s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:41 1476s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:42 1476s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:43 1476s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:44 1476s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:45 1476s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:46 1476s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:47 1476s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:48 1476s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:49 1476s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:50 1476s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:51 1476s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:52 1476s # [unsorted] ===> pushed new thread with id:19, number of threads:10, unprocessed:53 1476s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:54 1476s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:55 1476s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:56 1476s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:57 1476s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:58 1476s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:59 1476s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:60 1476s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:61 1476s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:62 1476s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:63 1476s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:64 1476s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:65 1476s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:66 1476s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:67 1476s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:68 1476s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:69 1476s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:70 1476s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:71 1476s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:72 1476s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:73 1476s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:74 1476s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:75 1476s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:76 1476s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:77 1476s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:78 1476s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:79 1476s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:80 1476s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:81 1476s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:82 1476s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:83 1476s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:84 1476s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:85 1476s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:86 1476s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:87 1476s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:88 1476s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:89 1476s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:90 1476s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:91 1476s ok 4 /threadpool/no-sort 1476s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:1 1476s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:2 1476s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:3 1476s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:4 1476s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:5 1476s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:6 1476s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:7 1476s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:8 1476s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:9 1476s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:10 1476s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:11 1476s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:12 1476s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:13 1476s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:14 1476s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:15 1476s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:16 1476s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:17 1476s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:18 1476s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:19 1476s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:20 1476s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:21 1476s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:22 1476s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:23 1476s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:24 1476s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:25 1476s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:26 1476s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:27 1476s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:28 1476s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:29 1476s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:30 1476s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:31 1476s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:32 1476s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:33 1476s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:34 1476s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:35 1476s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:36 1476s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:37 1476s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:38 1476s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:39 1476s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:40 1476s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:41 1476s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:42 1476s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:43 1476s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:44 1476s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:45 1476s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:46 1476s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:47 1476s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:48 1476s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:49 1476s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:50 1476s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:51 1476s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:52 1476s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:53 1476s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:54 1476s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:55 1476s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:56 1476s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:57 1476s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:58 1476s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:59 1476s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:60 1476s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:61 1476s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:62 1476s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:63 1476s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:64 1476s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:65 1476s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:66 1476s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:67 1476s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:68 1476s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:69 1476s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:70 1476s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:71 1476s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:72 1476s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:73 1476s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:74 1476s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:75 1476s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:76 1476s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:77 1476s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:78 1476s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:79 1476s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:80 1476s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:81 1476s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:82 1476s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:83 1476s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:84 1476s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:85 1476s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:86 1476s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:87 1476s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:88 1476s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:89 1476s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:90 1476s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:91 1476s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:92 1476s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:93 1476s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:94 1476s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:95 1476s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:96 1476s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:97 1476s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:98 1476s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:99 1476s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:100 1476s # Starting thread pool processing 1476s ok 5 /threadpool/sort 1476s ok 6 /threadpool/stop-unused-multiple 1476s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1476s # Pool idle thread count: 0, unprocessed jobs: 50 1477s # Pool idle thread count: 0, unprocessed jobs: 0 1477s # Pool idle thread count: 0, unprocessed jobs: 0 1477s # Pool idle thread count: 10, unprocessed jobs: 0 1477s # Pool idle thread count: 10, unprocessed jobs: 0 1478s # Pool idle thread count: 10, unprocessed jobs: 0 1478s # Pool idle thread count: 10, unprocessed jobs: 0 1478s # Pool idle thread count: 10, unprocessed jobs: 0 1478s # Pool idle thread count: 10, unprocessed jobs: 0 1479s # Pool idle thread count: 10, unprocessed jobs: 0 1479s # Pool idle thread count: 10, unprocessed jobs: 0 1479s # Pool idle thread count: 10, unprocessed jobs: 0 1479s # Pool idle thread count: 10, unprocessed jobs: 0 1480s # Pool idle thread count: 10, unprocessed jobs: 0 1480s # Pool idle thread count: 10, unprocessed jobs: 0 1480s # Pool idle thread count: 10, unprocessed jobs: 0 1480s # Pool idle thread count: 10, unprocessed jobs: 0 1481s Executing: glib/thread-pool-slow.test 1481s # Pool idle thread count: 10, unprocessed jobs: 0 1481s # Pool idle thread count: 10, unprocessed jobs: 0 1481s # Pool idle thread count: 10, unprocessed jobs: 0 1481s # Pool idle thread count: 10, unprocessed jobs: 0 1482s # Pool idle thread count: 10, unprocessed jobs: 0 1482s # Pool idle thread count: 10, unprocessed jobs: 0 1483s # Pool idle thread count: 10, unprocessed jobs: 0 1483s # Pool idle thread count: 10, unprocessed jobs: 0 1483s # Pool idle thread count: 10, unprocessed jobs: 0 1483s # Pool idle thread count: 10, unprocessed jobs: 0 1483s # Pool idle thread count: 10, unprocessed jobs: 0 1483s # Pool idle thread count: 10, unprocessed jobs: 0 1484s # Pool idle thread count: 10, unprocessed jobs: 0 1484s # Pool idle thread count: 10, unprocessed jobs: 0 1484s # Pool idle thread count: 10, unprocessed jobs: 0 1484s # Pool idle thread count: 10, unprocessed jobs: 0 1485s # Pool idle thread count: 10, unprocessed jobs: 0 1485s # Pool idle thread count: 10, unprocessed jobs: 0 1485s # Pool idle thread count: 10, unprocessed jobs: 2 1485s # Pool idle thread count: 10, unprocessed jobs: 2 1485s # Pool idle thread count: 8, unprocessed jobs: 0 1485s # Pool idle thread count: 8, unprocessed jobs: 0 1486s Executing: glib/thread-pool-slow.test 1486s # Pool idle thread count: 10, unprocessed jobs: 0 1486s # Pool idle thread count: 10, unprocessed jobs: 0 1486s # Pool idle thread count: 10, unprocessed jobs: 0 1486s # Pool idle thread count: 10, unprocessed jobs: 0 1487s # Pool idle thread count: 10, unprocessed jobs: 0 1487s # Pool idle thread count: 10, unprocessed jobs: 0 1487s # Pool idle thread count: 2, unprocessed jobs: 0 1487s # Pool idle thread count: 2, unprocessed jobs: 0 1488s # Pool idle thread count: 2, unprocessed jobs: 0 1488s # Pool idle thread count: 2, unprocessed jobs: 0 1488s # Pool idle thread count: 2, unprocessed jobs: 0 1488s # Pool idle thread count: 2, unprocessed jobs: 0 1489s # Pool idle thread count: 2, unprocessed jobs: 0 1489s # Pool idle thread count: 2, unprocessed jobs: 0 1489s # Pool idle thread count: 2, unprocessed jobs: 0 1489s # Pool idle thread count: 2, unprocessed jobs: 0 1490s # Pool idle thread count: 2, unprocessed jobs: 0 1490s # Pool idle thread count: 2, unprocessed jobs: 0 1490s # Pool idle thread count: 2, unprocessed jobs: 0 1490s # Pool idle thread count: 2, unprocessed jobs: 0 1491s Executing: glib/thread-pool-slow.test 1491s # Pool idle thread count: 2, unprocessed jobs: 0 1491s # Pool idle thread count: 2, unprocessed jobs: 0 1491s # Pool idle thread count: 2, unprocessed jobs: 0 1491s # Pool idle thread count: 2, unprocessed jobs: 0 1492s # Pool idle thread count: 2, unprocessed jobs: 0 1492s # Pool idle thread count: 2, unprocessed jobs: 0 1492s # Pool idle thread count: 2, unprocessed jobs: 0 1492s # Pool idle thread count: 2, unprocessed jobs: 0 1493s # Pool idle thread count: 2, unprocessed jobs: 0 1493s # Pool idle thread count: 2, unprocessed jobs: 0 1493s # Pool idle thread count: 2, unprocessed jobs: 0 1493s # Pool idle thread count: 2, unprocessed jobs: 0 1494s # Pool idle thread count: 2, unprocessed jobs: 0 1494s # Pool idle thread count: 2, unprocessed jobs: 0 1494s # Pool idle thread count: 2, unprocessed jobs: 0 1494s # Pool idle thread count: 2, unprocessed jobs: 0 1495s # Pool idle thread count: 2, unprocessed jobs: 0 1495s # Pool idle thread count: 2, unprocessed jobs: 0 1495s # Pool idle thread count: 2, unprocessed jobs: 0 1495s # Pool idle thread count: 2, unprocessed jobs: 0 1496s Executing: glib/thread-pool-slow.test 1496s ok 7 /threadpool/idle-time 1496s # slow test /threadpool/idle-time executed in 19.52 secs 1496s # End of threadpool tests 1496s PASS: glib/thread-pool-slow.test 1496s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.0s; maxrss=3608 1496s autopkgtest [19:23:44]: test thread-pool-slow: -----------------------] 1496s autopkgtest [19:23:44]: test thread-pool-slow: - - - - - - - - - - results - - - - - - - - - - 1496s thread-pool-slow PASS 1497s autopkgtest [19:23:45]: test threadtests: preparing testbed 1497s Reading package lists... 1497s Building dependency tree... 1497s Reading state information... 1497s Solving dependencies... 1497s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1498s autopkgtest [19:23:46]: test threadtests: [----------------------- 1498s Running test: glib/threadtests.test 1498s TAP version 14 1498s # random seed: R02S5e727fe8b164fb23c1c0f0ebb39d501d 1498s 1..5 1498s # Start of GObject tests 1498s ok 1 /GObject/threaded-object-init 1499s ok 2 /GObject/threaded-weak-ref 1499s # slow test /GObject/threaded-weak-ref executed in 0.75 secs 1499s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 1499s # /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 1499s ok 3 /GObject/threaded-toggle-notify 1499s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 1499s # Start of threaded-weak-ref tests 1499s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1499s # /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. 1499s ok 5 /GObject/threaded-weak-ref/on-finalization 1499s # End of threaded-weak-ref tests 1499s # End of GObject tests 1499s PASS: glib/threadtests.test 1499s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=0.2s; maxrss=3580 1499s autopkgtest [19:23:47]: test threadtests: -----------------------] 1500s autopkgtest [19:23:48]: test threadtests: - - - - - - - - - - results - - - - - - - - - - 1500s threadtests PASS 1500s autopkgtest [19:23:48]: test timeout: preparing testbed 1500s Reading package lists... 1500s Building dependency tree... 1500s Reading state information... 1500s Solving dependencies... 1501s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1501s autopkgtest [19:23:49]: test timeout: [----------------------- 1501s Running test: glib/timeout.test 1501s TAP version 14 1501s # random seed: R02Scc136c8429e1cdffbe131d2d0fd3ad66 1501s 1..5 1501s # Start of timeout tests 1501s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1503s ok 1 /timeout/seconds 1503s # slow test /timeout/seconds executed in 2.10 secs 1506s ok 2 /timeout/seconds-once 1506s # slow test /timeout/seconds-once executed in 2.10 secs 1506s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1507s Executing: glib/timeout.test 1508s ok 3 /timeout/weeks-overflow 1508s # slow test /timeout/weeks-overflow executed in 2.10 secs 1508s ok 4 /timeout/far-future-ready-time 1512s Executing: glib/timeout.test 1517s Executing: glib/timeout.test 1518s ok 5 /timeout/rounding 1518s # slow test /timeout/rounding executed in 9.99 secs 1518s # End of timeout tests 1518s PASS: glib/timeout.test 1518s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2960 1518s autopkgtest [19:24:06]: test timeout: -----------------------] 1518s timeout PASS 1518s autopkgtest [19:24:06]: test timeout: - - - - - - - - - - results - - - - - - - - - - 1519s autopkgtest [19:24:07]: test timer: preparing testbed 1519s Reading package lists... 1519s Building dependency tree... 1519s Reading state information... 1519s Solving dependencies... 1519s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1520s autopkgtest [19:24:08]: test timer: [----------------------- 1520s Running test: glib/timer.test 1520s TAP version 14 1520s # random seed: R02Sd5f4dcaeef6f4c4477510227b3eb7f64 1520s 1..10 1520s # Start of timer tests 1520s ok 1 /timer/basic 1520s ok 2 /timer/stop 1520s ok 3 /timer/continue 1520s ok 4 /timer/reset 1520s ok 5 /timer/is_active 1520s # End of timer tests 1520s # Start of timeval tests 1520s ok 6 /timeval/add 1520s ok 7 /timeval/from-iso8601 1520s ok 8 /timeval/to-iso8601 1520s # Start of to-iso8601 tests 1520s ok 9 /timeval/to-iso8601/overflow 1520s # End of to-iso8601 tests 1520s # End of timeval tests 1520s # Start of usleep tests 1520s ok 10 /usleep/with-zero-wait 1520s # End of usleep tests 1520s PASS: glib/timer.test 1520s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2968 1520s autopkgtest [19:24:08]: test timer: -----------------------] 1521s autopkgtest [19:24:09]: test timer: - - - - - - - - - - results - - - - - - - - - - 1521s timer PASS 1521s autopkgtest [19:24:09]: test 1065022-futureproofing: preparing testbed 1541s Creating nova instance adt-questing-s390x-glib2.0-20250904-172803-juju-7f2275-prod-proposed-migration-environment-20-41c6da5a-6f73-4977-a243-a489171730c5 from image adt/ubuntu-questing-s390x-server-20250904.img (UUID 7ac7c447-3049-4f71-b62b-46468f662d6e)... 1620s autopkgtest [19:25:48]: testbed dpkg architecture: s390x 1621s autopkgtest [19:25:49]: testbed apt version: 3.1.5ubuntu1 1621s autopkgtest [19:25:49]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1621s autopkgtest [19:25:49]: testbed release detected to be: questing 1622s autopkgtest [19:25:50]: updating testbed package index (apt update) 1622s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [265 kB] 1623s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 1623s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 1623s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 1623s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [14.1 kB] 1623s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/restricted Sources [3848 B] 1623s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [59.4 kB] 1623s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [234 kB] 1623s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/main s390x Packages [95.4 kB] 1623s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main s390x c-n-f Metadata [3688 B] 1623s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/restricted s390x Packages [728 B] 1623s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/restricted s390x c-n-f Metadata [120 B] 1623s Get:13 http://ftpmaster.internal/ubuntu questing-proposed/universe s390x Packages [213 kB] 1624s Get:14 http://ftpmaster.internal/ubuntu questing-proposed/universe s390x c-n-f Metadata [6332 B] 1624s Get:15 http://ftpmaster.internal/ubuntu questing-proposed/multiverse s390x Packages [4208 B] 1624s Get:16 http://ftpmaster.internal/ubuntu questing-proposed/multiverse s390x c-n-f Metadata [300 B] 1624s Fetched 900 kB in 2s (471 kB/s) 1625s Reading package lists... 1626s autopkgtest [19:25:54]: upgrading testbed (apt dist-upgrade and autopurge) 1626s Reading package lists... 1626s Building dependency tree... 1626s Reading state information... 1626s Calculating upgrade... 1626s The following packages will be upgraded: 1626s bpftrace cron cron-daemon-common cryptsetup-bin dash libbrotli1 1626s libcryptsetup12 1626s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1626s Need to get 3001 kB of archives. 1626s After this operation, 4096 B of additional disk space will be used. 1626s Get:1 http://ftpmaster.internal/ubuntu questing/main s390x dash s390x 0.5.12-12ubuntu2 [100 kB] 1626s Get:2 http://ftpmaster.internal/ubuntu questing/main s390x cron s390x 3.0pl1-196ubuntu2 [89.5 kB] 1627s Get:3 http://ftpmaster.internal/ubuntu questing/main s390x libcryptsetup12 s390x 2:2.8.0-1ubuntu2 [273 kB] 1627s Get:4 http://ftpmaster.internal/ubuntu questing/main s390x cron-daemon-common all 3.0pl1-196ubuntu2 [15.3 kB] 1627s Get:5 http://ftpmaster.internal/ubuntu questing/main s390x bpftrace s390x 0.23.5-1ubuntu1 [1917 kB] 1629s Get:6 http://ftpmaster.internal/ubuntu questing/main s390x cryptsetup-bin s390x 2:2.8.0-1ubuntu2 [227 kB] 1629s Get:7 http://ftpmaster.internal/ubuntu questing/main s390x libbrotli1 s390x 1.1.0-2build5 [379 kB] 1630s Preconfiguring packages ... 1630s Fetched 3001 kB in 4s (846 kB/s) 1630s (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 ... 85685 files and directories currently installed.) 1630s Preparing to unpack .../dash_0.5.12-12ubuntu2_s390x.deb ... 1630s Unpacking dash (0.5.12-12ubuntu2) over (0.5.12-12ubuntu1) ... 1630s Setting up dash (0.5.12-12ubuntu2) ... 1630s (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 ... 85685 files and directories currently installed.) 1630s Preparing to unpack .../0-cron_3.0pl1-196ubuntu2_s390x.deb ... 1630s Unpacking cron (3.0pl1-196ubuntu2) over (3.0pl1-196ubuntu1) ... 1630s Preparing to unpack .../1-libcryptsetup12_2%3a2.8.0-1ubuntu2_s390x.deb ... 1630s Unpacking libcryptsetup12:s390x (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 1630s Preparing to unpack .../2-cron-daemon-common_3.0pl1-196ubuntu2_all.deb ... 1630s Unpacking cron-daemon-common (3.0pl1-196ubuntu2) over (3.0pl1-196ubuntu1) ... 1630s Preparing to unpack .../3-bpftrace_0.23.5-1ubuntu1_s390x.deb ... 1630s Unpacking bpftrace (0.23.5-1ubuntu1) over (0.23.2-1ubuntu2) ... 1630s Preparing to unpack .../4-cryptsetup-bin_2%3a2.8.0-1ubuntu2_s390x.deb ... 1630s Unpacking cryptsetup-bin (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 1630s Preparing to unpack .../5-libbrotli1_1.1.0-2build5_s390x.deb ... 1630s Unpacking libbrotli1:s390x (1.1.0-2build5) over (1.1.0-2build4) ... 1630s Setting up bpftrace (0.23.5-1ubuntu1) ... 1630s Setting up libbrotli1:s390x (1.1.0-2build5) ... 1630s Setting up libcryptsetup12:s390x (2:2.8.0-1ubuntu2) ... 1630s Setting up cron-daemon-common (3.0pl1-196ubuntu2) ... 1630s Setting up cryptsetup-bin (2:2.8.0-1ubuntu2) ... 1630s Setting up cron (3.0pl1-196ubuntu2) ... 1631s Processing triggers for debianutils (5.23.2) ... 1631s Processing triggers for libc-bin (2.42-0ubuntu1) ... 1631s Processing triggers for man-db (2.13.1-1) ... 1632s Reading package lists... 1632s Building dependency tree... 1632s Reading state information... 1632s Solving dependencies... 1632s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1632s autopkgtest [19:26:00]: rebooting testbed after setup commands that affected boot 1654s Reading package lists... 1655s Building dependency tree... 1655s Reading state information... 1655s Solving dependencies... 1655s The following NEW packages will be installed: 1655s dconf-gsettings-backend dconf-service dpkg-repack gsettings-desktop-schemas 1655s libdconf1 1655s 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 1655s Need to get 140 kB of archives. 1655s After this operation, 635 kB of additional disk space will be used. 1655s Get:1 http://ftpmaster.internal/ubuntu questing/main s390x libdconf1 s390x 0.40.0-5willsync1 [40.0 kB] 1655s Get:2 http://ftpmaster.internal/ubuntu questing/main s390x dconf-service s390x 0.40.0-5willsync1 [28.0 kB] 1655s Get:3 http://ftpmaster.internal/ubuntu questing/main s390x dconf-gsettings-backend s390x 0.40.0-5willsync1 [22.6 kB] 1655s Get:4 http://ftpmaster.internal/ubuntu questing/main s390x dpkg-repack all 1.54 [11.2 kB] 1655s Get:5 http://ftpmaster.internal/ubuntu questing/main s390x gsettings-desktop-schemas all 49~alpha-0ubuntu1 [37.8 kB] 1655s Fetched 140 kB in 0s (284 kB/s) 1655s Selecting previously unselected package libdconf1:s390x. 1656s (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 ... 85685 files and directories currently installed.) 1656s Preparing to unpack .../libdconf1_0.40.0-5willsync1_s390x.deb ... 1656s Unpacking libdconf1:s390x (0.40.0-5willsync1) ... 1656s Selecting previously unselected package dconf-service. 1656s Preparing to unpack .../dconf-service_0.40.0-5willsync1_s390x.deb ... 1656s Unpacking dconf-service (0.40.0-5willsync1) ... 1656s Selecting previously unselected package dconf-gsettings-backend:s390x. 1656s Preparing to unpack .../dconf-gsettings-backend_0.40.0-5willsync1_s390x.deb ... 1656s Unpacking dconf-gsettings-backend:s390x (0.40.0-5willsync1) ... 1656s Selecting previously unselected package dpkg-repack. 1656s Preparing to unpack .../dpkg-repack_1.54_all.deb ... 1656s Unpacking dpkg-repack (1.54) ... 1656s Selecting previously unselected package gsettings-desktop-schemas. 1656s Preparing to unpack .../gsettings-desktop-schemas_49~alpha-0ubuntu1_all.deb ... 1656s Unpacking gsettings-desktop-schemas (49~alpha-0ubuntu1) ... 1656s Setting up dpkg-repack (1.54) ... 1656s Setting up libdconf1:s390x (0.40.0-5willsync1) ... 1656s Setting up dconf-service (0.40.0-5willsync1) ... 1656s Setting up dconf-gsettings-backend:s390x (0.40.0-5willsync1) ... 1656s Setting up gsettings-desktop-schemas (49~alpha-0ubuntu1) ... 1656s Processing triggers for man-db (2.13.1-1) ... 1656s Processing triggers for libglib2.0-0t64:s390x (2.85.3-1) ... 1656s Processing triggers for libc-bin (2.42-0ubuntu1) ... 1668s autopkgtest [19:26:36]: test 1065022-futureproofing: [----------------------- 1669s + export DEBIAN_FRONTEND=noninteractive 1669s + n=0 1669s + failed=0 1669s + binary_package=libglib2.0-0t64 1669s + future_binary_package=libglib2.0-0xyz 1669s + pwd 1669s + srcdir=/tmp/autopkgtest.v67oQT/build.t69/src 1669s + mktemp -d 1669s + tmpdir=/tmp/tmp.Y5LH9B6rrw 1669s + cd /tmp/tmp.Y5LH9B6rrw 1669s + exec 1669s + [ -e /tmp/autopkgtest.v67oQT/build.t69/src/debian/tests/manual/local-1065022.sources ] 1669s + dpkg-query -W dpkg-repack 1669s dpkg-repack 1.54 1669s + dpkg-query -s libglib2.0-0t64 1669s Package: libglib2.0-0t64 1669s Status: install ok installed 1669s Priority: important 1669s Section: libs 1669s Installed-Size: 4584 1669s Maintainer: Ubuntu Developers 1669s Architecture: s390x 1669s Multi-Arch: same 1669s Source: glib2.0 1669s Version: 2.85.3-1 1669s Replaces: libglib2.0-0 (<< 2.80.0-7~) 1669s Provides: libgio-2.0-0 (= 2.85.3-1), libglib-2.0-0 (= 2.85.3-1), libglib2.0-0 (= 2.85.3-1), libgmodule-2.0-0 (= 2.85.3-1), libgobject-2.0-0 (= 2.85.3-1), libgthread-2.0-0 (= 2.85.3-1) 1669s Depends: libatomic1 (>= 4.8), libc6 (>= 2.38), libffi8 (>= 3.4), libmount1 (>= 2.40~rc2), libpcre2-8-0 (>= 10.22), libselinux1 (>= 3.1~), zlib1g (>= 1:1.2.2) 1669s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 1669s Suggests: low-memory-monitor 1669s Breaks: glib-networking-tests (<< 2.70.0~), gnome-keyring (<< 40.0-3~), gnome-shell (<< 44.9-2~), libedataserver-1.2-26 (<< 3.44.3-2~), libgladeui-2-6 (<< 3.22.2), libglib2.0-0 (<< 2.80.0-7~), libsoup2.4-tests (<< 2.72.0-3~) 1669s Description: GLib library of C routines 1669s GLib is a library containing many useful C routines for things such 1669s as trees, hashes, lists, and strings. It is a useful general-purpose 1669s C library used by projects such as GTK+, GIMP, and GNOME. 1669s . 1669s This package contains the shared libraries. 1669s Original-Maintainer: Debian GNOME Maintainers 1669s Homepage: https://gitlab.gnome.org/GNOME/glib 1669s + dpkg-query -W -f ${Version} libglib2.0-0t64 1669s + binary_version=2.85.3-1 1669s + dpkg-repack --generate libglib2.0-0t64 1669s dpkg-repack: warning: unknown information field 'Original-Maintainer' in input data in stanza in dpkg's status file 1669s dpkg-repack: info: created dpkg-repack.libglib2.0-0t64.fOzxJY for libglib2.0-0t64 1669s dpkg-repack: info: to build use: "dpkg-deb --build dpkg-repack.libglib2.0-0t64.fOzxJY ." 1669s + grep -q ^Breaks: dpkg-repack.libglib2.0-0t64.fOzxJY/DEBIAN/control 1669s + grep -q ^Provides: dpkg-repack.libglib2.0-0t64.fOzxJY/DEBIAN/control 1669s + grep -q ^Replaces: dpkg-repack.libglib2.0-0t64.fOzxJY/DEBIAN/control 1669s + env binary_package=libglib2.0-0t64 binary_version=2.85.3-1 future_binary_package=libglib2.0-0xyz perl -p -i -e s/^Package:.*$/Package: $ENV{future_binary_package}/; -e s/^(Breaks:.*)$/$1, $ENV{binary_package}/; -e s/^(Provides:.*)$/$1, $ENV{binary_package} (= $ENV{binary_version})/; -e s/^(Replaces:.*)$/$1, $ENV{binary_package}/; dpkg-repack.libglib2.0-0t64.fOzxJY/DEBIAN/control 1669s + dpkg-deb --build dpkg-repack.libglib2.0-0t64.fOzxJY libglib2.0-0xyz.deb 1669s dpkg-deb: building package 'libglib2.0-0xyz' in 'libglib2.0-0xyz.deb'. 1670s + dpkg-deb --info libglib2.0-0xyz.deb 1670s new Debian package, version 2.0. 1670s size 1598474 bytes: control archive=25911 bytes. 1670s 1381 bytes, 24 lines control 1670s 1136 bytes, 14 lines md5sums 1670s 1280 bytes, 44 lines * postinst #!/bin/sh 1670s 2576 bytes, 87 lines * postrm #!/bin/sh 1670s 2408 bytes, 53 lines * preinst #!/bin/sh 1670s 466 bytes, 10 lines shlibs 1670s 172677 bytes, 4529 lines symbols 1670s 172 bytes, 4 lines triggers 1670s Package: libglib2.0-0xyz 1670s Source: glib2.0 1670s Version: 2.85.3-1 1670s Architecture: s390x 1670s Maintainer: Ubuntu Developers 1670s Installed-Size: 4584 1670s Depends: libatomic1 (>= 4.8), libc6 (>= 2.38), libffi8 (>= 3.4), libmount1 (>= 2.40~rc2), libpcre2-8-0 (>= 10.22), libselinux1 (>= 3.1~), zlib1g (>= 1:1.2.2) 1670s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 1670s Suggests: low-memory-monitor 1670s Breaks: glib-networking-tests (<< 2.70.0~), gnome-keyring (<< 40.0-3~), gnome-shell (<< 44.9-2~), libedataserver-1.2-26 (<< 3.44.3-2~), libgladeui-2-6 (<< 3.22.2), libglib2.0-0 (<< 2.80.0-7~), libsoup2.4-tests (<< 2.72.0-3~), libglib2.0-0t64 1670s Replaces: libglib2.0-0 (<< 2.80.0-7~), libglib2.0-0t64 1670s Provides: libgio-2.0-0 (= 2.85.3-1), libglib-2.0-0 (= 2.85.3-1), libglib2.0-0 (= 2.85.3-1), libgmodule-2.0-0 (= 2.85.3-1), libgobject-2.0-0 (= 2.85.3-1), libgthread-2.0-0 (= 2.85.3-1), libglib2.0-0t64 (= 2.85.3-1) 1670s Section: libs 1670s Priority: important 1670s Multi-Arch: same 1670s Homepage: https://gitlab.gnome.org/GNOME/glib 1670s Description: GLib library of C routines 1670s GLib is a library containing many useful C routines for things such 1670s as trees, hashes, lists, and strings. It is a useful general-purpose 1670s C library used by projects such as GTK+, GIMP, and GNOME. 1670s . 1670s This package contains the shared libraries. 1670s . 1670s (Repackaged on Thu, 04 Sep 2025 19:26:37 +0000 by dpkg-repack.) 1670s + dpkg-deb --contents libglib2.0-0xyz.deb 1670s drwxr-xr-x root/root 0 2025-09-04 19:26 ./ 1670s drwxr-xr-x root/root 0 2025-09-04 19:26 ./usr/ 1670s drwxr-xr-x root/root 0 2025-09-04 19:26 ./usr/lib/ 1670s drwxr-xr-x root/root 0 2025-09-04 19:26 ./usr/lib/s390x-linux-gnu/ 1670s drwxr-xr-x root/root 0 2025-09-04 19:26 ./usr/lib/s390x-linux-gnu/gio/ 1670s drwxr-xr-x root/root 0 2025-09-04 19:26 ./usr/lib/s390x-linux-gnu/gio/modules/ 1670s drwxr-xr-x root/root 0 2025-09-04 19:26 ./usr/lib/s390x-linux-gnu/glib-2.0/ 1670s -rwxr-xr-x root/root 10408 2025-08-18 19:00 ./usr/lib/s390x-linux-gnu/glib-2.0/gio-launch-desktop 1670s -rwxr-xr-x root/root 14504 2025-08-18 19:00 ./usr/lib/s390x-linux-gnu/glib-2.0/gio-querymodules 1670s -rwxr-xr-x root/root 51408 2025-08-18 19:00 ./usr/lib/s390x-linux-gnu/glib-2.0/glib-compile-schemas 1670s -rw-r--r-- root/root 2117104 2025-08-18 19:00 ./usr/lib/s390x-linux-gnu/libgio-2.0.so.0.8503.0 1670s -rw-r--r-- root/root 1494504 2025-08-18 19:00 ./usr/lib/s390x-linux-gnu/libglib-2.0.so.0.8503.0 1670s -rw-r--r-- root/root 14376 2025-08-18 19:00 ./usr/lib/s390x-linux-gnu/libgmodule-2.0.so.0.8503.0 1670s -rw-r--r-- root/root 420056 2025-08-18 19:00 ./usr/lib/s390x-linux-gnu/libgobject-2.0.so.0.8503.0 1670s -rw-r--r-- root/root 6152 2025-08-18 19:00 ./usr/lib/s390x-linux-gnu/libgthread-2.0.so.0.8503.0 1670s drwxr-xr-x root/root 0 2025-09-04 19:26 ./usr/share/ 1670s drwxr-xr-x root/root 0 2025-09-04 19:26 ./usr/share/doc/ 1670s drwxr-xr-x root/root 0 2025-09-04 19:26 ./usr/share/doc/libglib2.0-0t64/ 1670s -rw-r--r-- root/root 255551 2025-08-08 16:09 ./usr/share/doc/libglib2.0-0t64/NEWS.gz 1670s -rw-r--r-- root/root 1703 2025-08-18 19:00 ./usr/share/doc/libglib2.0-0t64/README.Debian 1670s -rw-r--r-- root/root 3248 2025-08-08 16:09 ./usr/share/doc/libglib2.0-0t64/README.md 1670s -rw-r--r-- root/root 36799 2025-08-18 19:00 ./usr/share/doc/libglib2.0-0t64/changelog.Debian.gz 1670s -rw-r--r-- root/root 55103 2025-08-18 19:00 ./usr/share/doc/libglib2.0-0t64/copyright 1670s drwxr-xr-x root/root 0 2025-09-04 19:26 ./usr/share/glib-2.0/ 1670s drwxr-xr-x root/root 0 2025-09-04 19:26 ./usr/share/glib-2.0/schemas/ 1670s drwxr-xr-x root/root 0 2025-09-04 19:26 ./usr/share/lintian/ 1670s drwxr-xr-x root/root 0 2025-09-04 19:26 ./usr/share/lintian/overrides/ 1670s -rw-r--r-- root/root 520 2025-08-18 19:00 ./usr/share/lintian/overrides/libglib2.0-0t64 1670s lrwxrwxrwx root/root 0 2025-08-18 19:00 ./usr/lib/s390x-linux-gnu/libgio-2.0.so.0 -> libgio-2.0.so.0.8503.0 1670s lrwxrwxrwx root/root 0 2025-08-18 19:00 ./usr/lib/s390x-linux-gnu/libglib-2.0.so.0 -> libglib-2.0.so.0.8503.0 1670s lrwxrwxrwx root/root 0 2025-08-18 19:00 ./usr/lib/s390x-linux-gnu/libgmodule-2.0.so.0 -> libgmodule-2.0.so.0.8503.0 1670s lrwxrwxrwx root/root 0 2025-08-18 19:00 ./usr/lib/s390x-linux-gnu/libgobject-2.0.so.0 -> libgobject-2.0.so.0.8503.0 1670s lrwxrwxrwx root/root 0 2025-08-18 19:00 ./usr/lib/s390x-linux-gnu/libgthread-2.0.so.0 -> libgthread-2.0.so.0.8503.0 1670s + apt-get -y install ./libglib2.0-0xyz.deb dconf-gsettings-backend gsettings-desktop-schemas 1670s Reading package lists... 1670s Building dependency tree... 1670s Reading state information... 1670s dconf-gsettings-backend is already the newest version (0.40.0-5willsync1). 1670s gsettings-desktop-schemas is already the newest version (49~alpha-0ubuntu1). 1670s Solving dependencies... 1670s The following additional packages will be installed: 1670s xdg-user-dirs 1670s Suggested packages: 1670s low-memory-monitor 1670s The following packages will be REMOVED: 1670s libglib2.0-0t64 1670s The following NEW packages will be installed: 1670s libglib2.0-0xyz xdg-user-dirs 1670s 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded. 1670s Need to get 20.0 kB/1618 kB of archives. 1670s After this operation, 168 kB of additional disk space will be used. 1670s Get:1 /tmp/tmp.Y5LH9B6rrw/libglib2.0-0xyz.deb libglib2.0-0xyz s390x 2.85.3-1 [1598 kB] 1670s Get:2 http://ftpmaster.internal/ubuntu questing/main s390x xdg-user-dirs s390x 0.18-3 [20.0 kB] 1671s Fetched 20.0 kB in 0s (83.3 kB/s) 1671s dpkg: libglib2.0-0t64:s390x: dependency problems, but removing anyway as you requested: 1671s udisks2 depends on libglib2.0-0t64 (>= 2.80.0). 1671s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0). 1671s s390-tools depends on libglib2.0-0t64 (>= 2.32.0). 1671s python3-gi depends on libglib2.0-0t64 (>= 2.78.0). 1671s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0). 1671s netplan.io depends on libglib2.0-0t64 (>= 2.70.0). 1671s netplan-generator depends on libglib2.0-0t64 (>= 2.70.0). 1671s libxmlb2:s390x depends on libglib2.0-0t64 (>= 2.54.0). 1671s libvolume-key1:s390x depends on libglib2.0-0t64 (>= 2.18.0). 1671s libudisks2-0:s390x depends on libglib2.0-0t64 (>= 2.83.0). 1671s libqrtr-glib0:s390x depends on libglib2.0-0t64 (>= 2.56). 1671s libqmi-proxy depends on libglib2.0-0t64 (>= 2.30.0). 1671s libqmi-glib5:s390x depends on libglib2.0-0t64 (>= 2.54.0). 1671s libpolkit-gobject-1-0:s390x depends on libglib2.0-0t64 (>= 2.80.0). 1671s libpolkit-agent-1-0:s390x depends on libglib2.0-0t64 (>= 2.80.0). 1671s libnetplan1:s390x depends on libglib2.0-0t64 (>= 2.76.0). 1671s libmm-glib0:s390x depends on libglib2.0-0t64 (>= 2.62.0). 1671s libmbim-proxy depends on libglib2.0-0t64 (>= 2.56). 1671s libmbim-glib4:s390x depends on libglib2.0-0t64 (>= 2.56). 1671s libjson-glib-1.0-0:s390x depends on libglib2.0-0t64 (>= 2.80.0). 1671s libjcat1:s390x depends on libglib2.0-0t64 (>= 2.80.0). 1671s libgudev-1.0-0:s390x depends on libglib2.0-0t64 (>= 2.80.0). 1671s libgirepository-1.0-1:s390x depends on libglib2.0-0t64 (>= 2.82.0). 1671s libfwupd3:s390x depends on libglib2.0-0t64 (>= 2.80.0). 1671s libdconf1:s390x depends on libglib2.0-0t64 (>= 2.80.0). 1671s libblockdev3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 1671s libblockdev-utils3:s390x depends on libglib2.0-0t64 (>= 2.76.0). 1671s libblockdev-swap3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 1671s libblockdev-part3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 1671s libblockdev-nvme3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 1671s libblockdev-mdraid3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 1671s libblockdev-loop3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 1671s libblockdev-fs3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 1671s libblockdev-crypto3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 1671s gir1.2-glib-2.0:s390x depends on libglib2.0-0t64 (= 2.85.3-1). 1671s fwupd depends on libglib2.0-0t64 (>= 2.80.0). 1671s dconf-service depends on libglib2.0-0t64 (>= 2.83.0). 1671s dconf-gsettings-backend:s390x depends on libglib2.0-0t64 (>= 2.80.0). 1671s bolt depends on libglib2.0-0t64 (>= 2.79.0). 1671s 1671s (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 ... 85752 files and directories currently installed.) 1671s Removing libglib2.0-0t64:s390x (2.85.3-1) ... 1671s Selecting previously unselected package libglib2.0-0xyz:s390x. 1671s (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 ... 85733 files and directories currently installed.) 1671s Preparing to unpack .../libglib2.0-0xyz.deb ... 1671s Unpacking libglib2.0-0xyz:s390x (2.85.3-1) ... 1671s Selecting previously unselected package xdg-user-dirs. 1671s Preparing to unpack .../xdg-user-dirs_0.18-3_s390x.deb ... 1671s Unpacking xdg-user-dirs (0.18-3) ... 1671s Setting up xdg-user-dirs (0.18-3) ... 1671s Created symlink '/etc/systemd/user/graphical-session-pre.target.wants/xdg-user-dirs.service' → '/usr/lib/systemd/user/xdg-user-dirs.service'. 1671s Setting up libglib2.0-0xyz:s390x (2.85.3-1) ... 1671s Processing triggers for libc-bin (2.42-0ubuntu1) ... 1671s Processing triggers for man-db (2.13.1-1) ... 1672s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1672s + n=1 1672s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1672s + echo ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1672s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1672s + n=2 1672s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1672s + echo ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1672s ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1672s ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1672s + assert test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1672s + n=3 1672s + test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1672s ok 3 - test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1672s ok 4 - test -s /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1672s ok 5 - test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1672s ok 6 - test -s /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1672s + echo ok 3 - test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1672s + assert test -s /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1672s + n=4 1672s + test -s /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1672s + echo ok 4 - test -s /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1672s + assert test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1672s + n=5 1672s + test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1672s + echo ok 5 - test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1672s + assert test -s /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1672s + n=6 1672s + test -s /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1672s + echo ok 6 - test -s /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1672s + apt-get -y purge libglib2.0-0t64 1672s Reading package lists... 1672s Building dependency tree... 1672s Reading state information... 1672s Solving dependencies... 1672s The following packages will be REMOVED: 1672s libglib2.0-0t64* 1672s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1672s After this operation, 0 B of additional disk space will be used. 1672s (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 ... 85767 files and directories currently installed.) 1672s Purging configuration files for libglib2.0-0t64:s390x (2.85.3-1) ... 1672s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1672s + n=7 1672s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1672s + echo ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1672s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1672s + n=8 1672s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1672s + echo ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1672s + assert test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1672s + n=9 1672s + test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1672s + echo ok 9 - test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1672s + assert test -s /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1672s + n=10 1672s + test -s /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1672s + echo ok 10 - test -s /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1672s ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1672s ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1672s ok 9 - test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1672s ok 10 - test -s /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1672s + assert test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1672s + n=11 1672s + test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1672s + echo ok 11 - test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1672s + assert test -s /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1672s + n=12 1672s + test -s /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1672s + echo ok 12 - test -s /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1672s + apt-get -y purge libglib2.0-0xyz 1672s ok 11 - test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1672s ok 12 - test -s /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1672s Reading package lists... 1672s Building dependency tree... 1672s Reading state information... 1672s Solving dependencies... 1673s The following additional packages will be installed: 1673s libglib2.0-0t64 1673s Suggested packages: 1673s low-memory-monitor 1673s The following packages will be REMOVED: 1673s libglib2.0-0xyz* 1673s The following NEW packages will be installed: 1673s libglib2.0-0t64 1673s 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. 1673s Need to get 1598 kB of archives. 1673s After this operation, 0 B of additional disk space will be used. 1673s Get:1 http://ftpmaster.internal/ubuntu questing/main s390x libglib2.0-0t64 s390x 2.85.3-1 [1598 kB] 1675s Fetched 1598 kB in 2s (659 kB/s) 1675s dpkg: libglib2.0-0xyz:s390x: dependency problems, but removing anyway as you requested: 1675s udisks2 depends on libglib2.0-0t64 (>= 2.80.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s s390-tools depends on libglib2.0-0t64 (>= 2.32.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s python3-gi depends on libglib2.0-0t64 (>= 2.78.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s netplan.io depends on libglib2.0-0t64 (>= 2.70.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s netplan-generator depends on libglib2.0-0t64 (>= 2.70.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libxmlb2:s390x depends on libglib2.0-0t64 (>= 2.54.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libvolume-key1:s390x depends on libglib2.0-0t64 (>= 2.18.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libudisks2-0:s390x depends on libglib2.0-0t64 (>= 2.83.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libqrtr-glib0:s390x depends on libglib2.0-0t64 (>= 2.56); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libqmi-proxy depends on libglib2.0-0t64 (>= 2.30.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libqmi-glib5:s390x depends on libglib2.0-0t64 (>= 2.54.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libpolkit-gobject-1-0:s390x depends on libglib2.0-0t64 (>= 2.80.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libpolkit-agent-1-0:s390x depends on libglib2.0-0t64 (>= 2.80.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libnetplan1:s390x depends on libglib2.0-0t64 (>= 2.76.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libmm-glib0:s390x depends on libglib2.0-0t64 (>= 2.62.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libmbim-proxy depends on libglib2.0-0t64 (>= 2.56); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libmbim-glib4:s390x depends on libglib2.0-0t64 (>= 2.56); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libjson-glib-1.0-0:s390x depends on libglib2.0-0t64 (>= 2.80.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libjcat1:s390x depends on libglib2.0-0t64 (>= 2.80.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libgudev-1.0-0:s390x depends on libglib2.0-0t64 (>= 2.80.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libgirepository-1.0-1:s390x depends on libglib2.0-0t64 (>= 2.82.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libfwupd3:s390x depends on libglib2.0-0t64 (>= 2.80.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libdconf1:s390x depends on libglib2.0-0t64 (>= 2.80.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libblockdev3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libblockdev-utils3:s390x depends on libglib2.0-0t64 (>= 2.76.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libblockdev-swap3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libblockdev-part3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libblockdev-nvme3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libblockdev-mdraid3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libblockdev-loop3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libblockdev-fs3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s libblockdev-crypto3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s gir1.2-glib-2.0:s390x depends on libglib2.0-0t64 (= 2.85.3-1); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s fwupd depends on libglib2.0-0t64 (>= 2.80.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s dconf-service depends on libglib2.0-0t64 (>= 2.83.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s dconf-gsettings-backend:s390x depends on libglib2.0-0t64 (>= 2.80.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s bolt depends on libglib2.0-0t64 (>= 2.79.0); however: 1675s Package libglib2.0-0t64 is not installed. 1675s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 1675s 1675s (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 ... 85767 files and directories currently installed.) 1675s Removing libglib2.0-0xyz:s390x (2.85.3-1) ... 1675s Selecting previously unselected package libglib2.0-0t64:s390x. 1675s (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 ... 85748 files and directories currently installed.) 1675s Preparing to unpack .../libglib2.0-0t64_2.85.3-1_s390x.deb ... 1675s Unpacking libglib2.0-0t64:s390x (2.85.3-1) ... 1675s Setting up libglib2.0-0t64:s390x (2.85.3-1) ... 1675s Processing triggers for libc-bin (2.42-0ubuntu1) ... 1675s (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 ... 85767 files and directories currently installed.) 1675s Purging configuration files for libglib2.0-0xyz:s390x (2.85.3-1) ... 1676s + assert_not test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1676s + n=13 1676s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1676s + echo not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1676s + failed=1 1676s + assert_not test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1676s + n=14 1676s + test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1676s + echo not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1676s + failed=1 1676s + assert_not test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1676s + n=15 1676s + test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1676s + echo not ok 15 - should not have succeeded: test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1676s + failed=1 1676s + assert_not test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1676s + n=16 1676s + test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1676s + echo not ok 16 - should not have succeeded: test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1676s + failed=1 1676s + echo 1..16 1676s + exit 1 1676s not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1676s not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1676s not ok 15 - should not have succeeded: test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 1676s not ok 16 - should not have succeeded: test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 1676s 1..16 1676s autopkgtest [19:26:44]: test 1065022-futureproofing: -----------------------] 1676s 1065022-futureproofing FLAKY non-zero exit status 1 1676s autopkgtest [19:26:44]: test 1065022-futureproofing: - - - - - - - - - - results - - - - - - - - - - 1677s autopkgtest [19:26:45]: @@@@@@@@@@@@@@@@@@@@ summary 1677s build PASS (superficial) 1677s build-static PASS (superficial) 1677s girepository-tools PASS (superficial) 1677s libgio-2.0-dev-bin PASS (superficial) 1677s libglib2.0-dev PASS (superficial) 1677s installed-tests PASS 1677s closure-refcount PASS 1677s debugcontroller PASS 1677s gdbus-server-auth PASS 1677s gdbus-threading PASS 1677s gmenumodel PASS 1677s mainloop PASS 1677s memory-monitor-dbus PASS 1677s socket PASS 1677s testfilemonitor PASS 1677s thread-pool-slow PASS 1677s threadtests PASS 1677s timeout PASS 1677s timer PASS 1677s 1065022-futureproofing FLAKY non-zero exit status 1